From: miker Date: Sat, 18 Aug 2007 09:01:23 +0000 (+0000) Subject: * Big messagecatalog-ization for offline mode (Dan Scott) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=10c6aa765cf30e136bcba123da97bf0add2a7e28;p=Evergreen.git * Big messagecatalog-ization for offline mode (Dan Scott) * Inline comment support for messagecatalog properties fields (miker) * Attempt at replacing escaped characters in getFormattedString() (miker) git-svn-id: svn://svn.open-ils.org/ILS/trunk@7706 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index be392db87c..ce4b84d78c 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2,8 +2,17 @@ - + + + + + + + + + + @@ -18,6 +27,15 @@ + + + + + + + + + @@ -319,40 +337,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul b/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul index a47d4b3a7f..4b9b9364dc 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul @@ -4,7 +4,7 @@ - + + diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js index a75ee826e5..f7b784778b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js @@ -3,8 +3,8 @@ var circStrings; function my_init() { try { - commonStrings = document.getElementById('commonStrings'); - circStrings = document.getElementById('circStrings'); + commonStrings = $('commonStrings'); + circStrings = $('circStrings'); netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (typeof JSAN == 'undefined') { throw(commonStrings.getString('common.jsan.missing')); } @@ -40,7 +40,7 @@ function my_init() { if (file._file.exists()) { g.delta = file.get_object()[0]; file.close(); } else { g.delta = 0; } } catch(E) { - var err_msg = commonStrings.getFormattedMessage('common.exception', ["circ/offline_checkin.xul", E]); + var err_msg = commonStrings.getFormattedString('common.exception', ["circ/offline_checkin.xul", E]); try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); } alert(err_msg); } diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.xul b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.xul index 93e435d6de..8211c2f7c0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.xul +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.xul @@ -29,22 +29,20 @@