projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
60678f4
)
Pman.I18n.js
author
Edward
<edward@roojs.com>
Thu, 28 May 2015 04:53:40 +0000
(12:53 +0800)
committer
Edward
<edward@roojs.com>
Thu, 28 May 2015 04:53:40 +0000
(12:53 +0800)
Pman.I18n.js
patch
|
blob
|
history
diff --git
a/Pman.I18n.js
b/Pman.I18n.js
index
5419a2e
..
a47f072
100644
(file)
--- a/
Pman.I18n.js
+++ b/
Pman.I18n.js
@@
-47,7
+47,7
@@
Pman.I18n = {
toName: function(type, code)
{
var ret = code;
- var lang =
Pman.Login.authUser.lang || 'en'
;
+ var lang =
typeof(Pman.Login.authUser.lang) == 'undefined' ? 'en' : Pman.Login.authUser.lang
;
if (code.indexOf('_') > -1) {
var clang = code.split('_').shift();
var cc = code.split('_').pop();