localized bool values for display
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 2 Apr 2010 20:21:20 +0000 (20:21 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 2 Apr 2010 20:21:20 +0000 (20:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16112 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js

index aa06e10..e4b1b85 100644 (file)
         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';
     }