details:   https://code.openbravo.com/erp/devel/pi/rev/b3ed61a03415
changeset: 16720:b3ed61a03415
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Thu May 31 18:02:19 2012 +0200
summary:   Fixes issue 20507: Fix now uses translations

The 'Yes' and 'No' strings have been replaced with 
OB.I18N.labels['OBUIAPP_Yes'] and OB.I18N.labels['OBUIAPP_No'], which take 
their value from the selected translation.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js
 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 4fb6b5e956f0 -r b3ed61a03415 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js
       Wed May 16 15:00:34 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js
       Thu May 31 18:02:19 2012 +0200
@@ -59,9 +59,9 @@
   
   getCriterion: function() {
          var criterion = this.Super('getCriterion', arguments);
-         if (criterion && criterion.value && (criterion.value === 'Yes' || 
criterion.value === 'yes')) {
+         if (criterion && criterion.value && criterion.value === 
OB.I18N.labels.OBUIAPP_Yes) {
                  criterion.value = true;
-         } else if (criterion && criterion.value && (criterion.value === 'No' 
|| criterion.value === 'no')) {
+         } else if (criterion && criterion.value && criterion.value === 
OB.I18N.labels.OBUIAPP_No) {
                  criterion.value = false;
          }
          return criterion;

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to