[open-ils-commits] r8609 - in
trunk/Open-ILS/xul/staff_client/chrome: content/main locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 4 13:45:22 EST 2008
Author: dbs
Date: 2008-02-04 13:17:10 -0500 (Mon, 04 Feb 2008)
New Revision: 8609
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/JSAN.js
trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
Bring i18n to JSAN error messages
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/JSAN.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/JSAN.js 2008-02-04 17:48:50 UTC (rev 8608)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/JSAN.js 2008-02-04 18:17:10 UTC (rev 8609)
@@ -246,7 +246,7 @@
try {
return JSAN._makeNamespace(js, pkg);
} catch (e) {
- JSAN._handleError("Could not create namespace[" + pkg + "]: " + e);
+ JSAN._handleError(document.getElementById('offlineStrings').getFormattedString('jsan.namespace.creation.error', [pkg, e]));
}
return null;
}
@@ -276,11 +276,11 @@
if (this._req.status == 200 || this._req.status == 0)
return this._req.responseText;
} catch (e) {
- JSAN._handleError("File not found: " + url);
+ JSAN._handleError(document.getElementById('offlineStrings').getFormattedString('jsan.file_not_found.error', [url]));
return null;
};
- JSAN._handleError("File not found: " + url);
+ JSAN._handleError(document.getElementById('offlineStrings').getFormattedString('jsan.file_not_found.error', [url]));
return null;
}
};
Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-02-04 17:48:50 UTC (rev 8608)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-02-04 18:17:10 UTC (rev 8609)
@@ -68,3 +68,5 @@
circ.offline_register.missing.id.type.list=Missing identification type list.
circ.offline_register.missing.required.surveys=Missing required surveys.
circ.offline_register.missing.files.error=ERROR: Offline patron registration requires some server-generated files. Please login periodically to retrieve these files.
+jsan.file_not_found.error=File not found: %1$s
+jsan.namespace.creation.error=Could not create namespace[%1$s]: %2$s
More information about the open-ils-commits
mailing list