From 10c6aa765cf30e136bcba123da97bf0add2a7e28 Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 18 Aug 2007 09:01:23 +0000 Subject: [PATCH] * 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 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 74 ++++++++++++-------- .../content/OpenILS/util_overlay_offline.xul | 4 +- .../chrome/content/circ/offline_checkin.js | 6 +- .../chrome/content/circ/offline_checkin.xul | 16 ++--- .../chrome/content/circ/offline_checkout.js | 21 +++--- .../chrome/content/circ/offline_checkout.xul | 36 +++++----- .../chrome/content/circ/offline_in_house_use.js | 16 +++-- .../chrome/content/circ/offline_in_house_use.xul | 37 +++++----- .../chrome/content/circ/offline_register.js | 79 ++++++++++++---------- .../chrome/content/circ/offline_register.xul | 45 ++++++------ .../chrome/content/circ/offline_renew.xul | 53 ++++++++------- .../staff_client/chrome/content/main/bindings.xml | 53 ++++++++++++++- .../chrome/locale/en-US/cat.properties | 4 +- .../chrome/locale/en-US/circ.properties | 34 ++++++++-- .../chrome/locale/en-US/common.properties | 9 ++- 15 files changed, 302 insertions(+), 185 deletions(-) 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 @@