Pman.I18n.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 02:48:44 +0000 (10:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 02:48:44 +0000 (10:48 +0800)
Pman.I18n.js

index 4ecd873..b8878f5 100644 (file)
@@ -16,7 +16,7 @@
 * includes standard pulldowns.
 */
 
-Pmnan.on('load', Pman.I18n.onReady, this)
+
 
 Pman.I18n = {
     
@@ -33,7 +33,18 @@ Pman.I18n = {
     onReady : function()
     {
         var d = this.Data;
+        var lang = Pman.Login.authUser.lang;
         
+        var types = ['l','c'];
+        Roo.each(types, function(t) {
+            Roo.each(d[lang][t],function(v,i) {
+                if (v['code'] == '**') {
+                    d[lang][t][i]['title'] = "Other";
+                }
+                
+            });
+            
+        });
         
         
         
@@ -460,4 +471,5 @@ Pman.I18n = {
     
 };
 
+Pmnan.on('load', Pman.I18n.onReady, Pman.I18n);