[open-ils-commits] r16112 - trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 2 16:21:26 EDT 2010
Author: phasefx
Date: 2010-04-02 16:21:20 -0400 (Fri, 02 Apr 2010)
New Revision: 16112
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Log:
localized bool values for display
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js 2010-04-02 20:21:20 UTC (rev 16111)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js 2010-04-02 20:21:20 UTC (rev 16112)
@@ -358,6 +358,11 @@
if (a) return true; else return false;
}
+ function get_localized_bool(a) {
+ var Strings = $('offlineStrings') || $('commonStrings');
+ return get_bool(a) ? Strings.getString('common.yes') : Strings.getString('common.no');
+ }
+
function get_db_true() {
return 't';
}
More information about the open-ils-commits
mailing list