-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathlang.js
113 lines (111 loc) · 2.4 KB
/
lang.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
var langName = "en";
if (chrome.i18n.getUILanguage() == 'zh-CN') {
langName = "zh-cn";
}
else if (chrome.i18n.getUILanguage() == 'zh-TW') {
langName = "zh-tw";
}
else {
langName = "en";
}
var langs = {
"zh-cn" : {
dialog : {
commit : {
title : "提交",
content : "确定要提交博文吗?"
},
warn : {
title : "警告",
content : "本地博文将会被覆盖,是否继续?"
},
succ : {
title : "成功",
content : {
"updated" : "更新博客成功!",
"created" : "创建博客成功!"
}
},
error: {
title : "错误",
content : {
"conflict" : "错误!版本存在冲突。",
"unknow" : "未知错误!"
}
}
},
toolbar : {
new : "新博文",
login : "登录",
meta : "元信息",
postentities : "博客列表",
commit : "提交"
}
},
"zh-tw" : {
dialog : {
commit : {
title : "提交",
content : "确定要提交博文吗?"
},
warn : {
title : "警告",
content : "本地博文将会被覆盖,是否继续?"
},
succ : {
title : "成功",
content : {
"updated" : "更新博客成功!",
"created" : "创建博客成功!"
}
},
error: {
title : "错误",
content : {
"conflict" : "错误!版本存在冲突。",
"unknow" : "未知错误!"
}
}
},
toolbar : {
new : "新博文",
login : "登录",
meta : "元信息",
postentities : "博客列表",
commit : "提交"
}
},
"en" : {
dialog : {
commit : {
title : "Commit",
content : "Do you want to commit the post?"
},
warn : {
title : "Warning",
content : "Local post will be emptied, is it OK?"
},
succ : {
title : "Successful",
content : {
"updated" : "Update post successfully!",
"created" : "Create post successfully!"
}
},
error: {
title : "Error",
content : {
"conflict" : "Error due to version conflict, please to webpage to solve that, or reload the online version before update!",
"unknow" : "Error! Please check on web!"
}
}
},
toolbar : {
new : "New Blog",
login : "login",
meta : "Meta Data",
postentities : "Post List",
commit : "commit"
}
}
}