Some hamfisted attempts to fix the current unhappy network.js i18n;
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 7 Dec 2008 20:34:23 +0000 (20:34 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 7 Dec 2008 20:34:23 +0000 (20:34 +0000)
we are now placing a copy of chrome message catalogs on the server for server XUL to eat.

This does resolve the exception that was being thrown at check out.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@11442 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/Makefile.am
Open-ILS/xul/staff_client/server/patron/display.xul

index 3746816..b4a7e29 100644 (file)
@@ -5,10 +5,11 @@
 
 export STAFF_CLIENT_BUILD_ID = $$(/bin/cat build/BUILD_ID)
 OPENSRF_JSLIBS = "$(OPENSRF_LIBS)/javascript"
+CHROME_LOCALES = $$(ls server/locale)
 
 install-exec-local: build
 
-build: build_dir generated open-ils stamp
+build: build_dir chrome2remote generated open-ils stamp
        @echo To test the staff client:
        @echo "  cd build/"
        @echo "  xulrunner application.ini"
@@ -30,6 +31,14 @@ build_dir:
        cp build/chrome/content/OpenILS/global_util.js build/server/OpenILS/global_util.js
        external/prune_dirs.sh build/
 
+# Convert chrome to remote for server localization
+chrome2remote:
+       sed -i 's/chrome:\/\/open_ils_staff_client\/locale\//\/xul\/server\/locale\/<\!--#echo var=locale-->\//' build/server/auth/verify_credentials.xul
+       sed -i 's/chrome:\/\/open_ils_staff_client\/locale\//\/xul\/server\/locale\/<\!--#echo var=locale-->\//' build/server/main/simple_auth.xul
+       @for loc in $(CHROME_LOCALES); do \
+               cp -r chrome/locale/$$loc build/server/locale/. ; \
+       done;
+
 stamp:
        @/bin/date +"%Y%m%d.%H%M%S" > build/BUILD_ID
        @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then ( echo "Stamping with Build ID: ${STAFF_CLIENT_BUILD_ID}" ; echo ${STAFF_CLIENT_BUILD_ID} > build/BUILD_ID ) ; fi
index 7e19712..4d5e1fa 100644 (file)
@@ -88,6 +88,7 @@
 
        <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
        <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
+       <messagecatalog id="offlineStrings" src="/xul/server/locale/<!--#echo var='locale'-->/offline.properties" />
 
        <commandset id="patron_display_cmds">
                <command id="cmd_patron_refresh" />