From 3bfe4e7422b468683a052dcc2c623593e14c5322 Mon Sep 17 00:00:00 2001
From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Fri, 2 Apr 2010 20:21:20 +0000
Subject: [PATCH] localized bool values for display

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 | 5 +++++
 1 file changed, 5 insertions(+)

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';
     }
-- 
2.11.0