]> git.evergreen-ils.org Git - Evergreen.git/commit
Patch from Dan Scott which starts the process of proper staff client internationaliza...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Aug 2007 15:36:56 +0000 (15:36 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Aug 2007 15:36:56 +0000 (15:36 +0000)
commit7550285514ce3f7e14d96af7a1e6373fd8d1eecc
tree57d1efbb07c00bbe39b09d0edca558726132552d
parentabe12b8407b183f8b1afba31906606213ecb6b30
Patch from Dan Scott which starts the process of proper staff client internationalization:

As documented at
http://developer.mozilla.org/en/docs/XUL_Tutorial:Property_Files ,
string bundles are the normal method for holding translatable text
from Javascript files in XULRunner applications. The staff client
currently does not use string bundles; it currently uses a mix of
hardcoded strings, with reliance on some of the strings that are
converted from lang.dtd into the massive hash that is lang.js.

This patch hopes to start changing that, by introducing string bundles
for a few small parts of the staff client -- hopefully paving the way
for conversion of more of the client to stringbundles and i18n glory.

1) We create one .properties file per chrome/content/ subdirectory
that we're converting to string bundles, plus a common.properties file
for common strings like error messages. In this patch, I address the
chrome/content/admin/ and chrome/content/cat/ directories; therefore,
I add:
 * Open-ILS/xul/staff_client/chrome/locale/en-US/admin.properties
 * Open-ILS/xul/staff_client/chrome/locale/en-US/cat.properties
 * Open-ILS/xul/staff_client/chrome/locale/en-US/common.properties

2) Note that the files are being added to a directory that does not
currently exist in the Subversion repository. It doesn't make sense to
serve the properties files remotely from the web/locale/en-US/
directory, as their real home is the chrome. So that's where I've
stuck them. Accordingly, the xul/staff_client/Makefile has been
modified to no longer make this directory.

3) chrome/content/cat/opac.xul has been converted to a fully i18n-ized
file, by adding XML entities to web/opac/locale/en-US/lang.dtd and
converting hardcoded strings in the Javascript to stringbundle calls
that pull in the properties defined in cat.properties and
common.properties.

4) chrome/content/admin/survey* have also been given the entity &
stringbundle treatment.

I have tested the opac and survey screens in the client and nothing
seems to be going wrong, so I'm taking that as a good sign :)

git-svn-id: svn://svn.open-ils.org/ILS/trunk@7629 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/Makefile
Open-ILS/xul/staff_client/chrome/content/admin/survey.js
Open-ILS/xul/staff_client/chrome/content/admin/survey_overlay.xul
Open-ILS/xul/staff_client/chrome/content/admin/survey_wizard.xul
Open-ILS/xul/staff_client/chrome/content/cat/opac.xul