projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
67a8102
)
Pman.I18n.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 20 Jul 2010 03:59:48 +0000
(11:59 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 20 Jul 2010 03:59:48 +0000
(11:59 +0800)
Pman.I18n.js
patch
|
blob
|
history
diff --git
a/Pman.I18n.js
b/Pman.I18n.js
index
2469ecb
..
bd47d24
100644
(file)
--- a/
Pman.I18n.js
+++ b/
Pman.I18n.js
@@
-43,7
+43,8
@@
Pman.I18n = {
toName: function(type, code)
{
var ret = code;
toName: function(type, code)
{
var ret = code;
- Roo.each(Pman.Login.authUser.i18n[type], function(d) {
+ var lang = Pman.Login.authUser.lang || 'en'
+ Roo.each(Pman.I18N.Data[lang], function(d) {
if (d.code == code) {
ret = d.title;
return false;
if (d.code == code) {
ret = d.title;
return false;
@@
-86,7
+87,7
@@
Pman.I18n = {
'title'
]
},
'title'
]
},
-
+ // DEPRECIATED...
countryStore : function() { return {
// load using HTTP
countryStore : function() { return {
// load using HTTP
@@
-109,6
+110,7
@@
Pman.I18n = {
}
}},
}
}},
+ // DEPRECIATED...
languageStore: function() {return{
// load using HTTP
xtype: 'Store',
languageStore: function() {return{
// load using HTTP
xtype: 'Store',
@@
-129,6
+131,7
@@
Pman.I18n = {
field: 'title', direction: 'ASC'
}
}},
field: 'title', direction: 'ASC'
}
}},
+ // DEPRECIATED...
currencyStore: function() {return{
// load using HTTP
xtype: 'Store',
currencyStore: function() {return{
// load using HTTP
xtype: 'Store',
@@
-149,7
+152,7
@@
Pman.I18n = {
field: 'title', direction: 'ASC'
}
}},
field: 'title', direction: 'ASC'
}
}},
-
+ // DEPRECIATED...
country: function(cfg) {
var _this = this;
cfg = cfg || {};
country: function(cfg) {
var _this = this;
cfg = cfg || {};
@@
-180,6
+183,7
@@
Pman.I18n = {
}, cfg);
},
}, cfg);
},
+ // DEPRECIATED...
language: function(cfg) {
var _this = this;
cfg = cfg || {};
language: function(cfg) {
var _this = this;
cfg = cfg || {};
@@
-212,7
+216,7
@@
Pman.I18n = {
}, cfg);
},
}, cfg);
},
-
+ // DEPRECIATED...
currency: function(cfg) {
var _this = this;
cfg = cfg || {};
currency: function(cfg) {
var _this = this;
cfg = cfg || {};
@@
-248,7
+252,7
@@
Pman.I18n = {
}, cfg);
},
}, cfg);
},
-
+ // DEPRECIATED...
languageList : function(cfg) {
cfg = cfg || {};
languageList : function(cfg) {
cfg = cfg || {};
@@
-309,6
+313,7
@@
Pman.I18n = {
}, cfg);
},
}, cfg);
},
+ // DEPRECIATED...
countryList : function(cfg) {
cfg = cfg || {};
countryList : function(cfg) {
cfg = cfg || {};