From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Fri, 2 Apr 2010 20:21:20 +0000 (+0000)
Subject: localized bool values for display
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3bfe4e7422b468683a052dcc2c623593e14c5322;p=contrib%2FConifer.git

localized bool values for display

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16112 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
index aa06e10343..e4b1b85ffc 100644
--- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
+++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
@@ -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';
     }