-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLang.py
More file actions
71 lines (60 loc) · 2.26 KB
/
Copy pathLang.py
File metadata and controls
71 lines (60 loc) · 2.26 KB
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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
__author__ = 'narky'
__date__ = '11-1-24'
__version__ = '1.0'
_Lang = {
"zh_CN":{
"title": u"FlashFXP -> FileZilla 站点转换工具",
"select_ftp_file": u"选择你要转换的FlashFxp站点导出文件:",
"select": u"选择...",
"select_file": u"选择文件...",
"save_file": u"保存文件...",
"file_not_exist": u"需要转换的文件不存在。",
"wildcard": u"FlashFXP导出文件(*.ftp)|*.ftp|XML文件(*.xml)|*.xml|所有文件(*.*)|*.*",
"save_wildcard": u"XML文件(*.xml)|*.xml",
"no_group": u"未分组",
"file_exist_confirm_to_overwrite": u"文件已经存在,原有内容将被覆盖。确认吗?",
"run_complete": u"转换完成!",
"run_faild": u"转换失败",
"run": u" 转 换 ",
"exit": u" 退 出 ",
"confirm_exit": u"确认退出吗?",
"msg": u"提示",
"warning": u"警告",
"error": u"错误",
"about": u" 关 于 ",
"about_title": u"关于",
"about_close": u"确定",
},
# My English is poor,please don't laugh at me :)
"en_US":{
"title": u"FlashFXP -> FileZilla Site Converter",
"select_ftp_file": u"Select FlashFXP Export File:",
"select": u"Select...",
"select_file": u"Select File...",
"save_file": u"Save File...",
"file_not_exist": u"The file need to convert is not exist.",
"wildcard": u"FlashFPX FTP File(*.ftp)|*.ftp|XML File(*.xml)|*.xml|All Files(*.*)|*.*",
"save_wildcard": u"XML File(*.xml)|*.xml",
"no_group": u"Default",
"file_exist_confirm_to_overwrite": u"File exist,do you want to overwrite?",
"run_complete": u"Convert Complete!",
"run_faild": u"Convert Faild!",
"run": u" Convert ",
"exit": u" Exit ",
"confirm_exit": u"Do you want exit?",
"msg": u"Message",
"warning": u"Warning",
"error": u"Error",
"about": u" About ",
"about_title": u"About",
"about_close": u" OK ",
},
}
import locale
_L = {}
if _Lang.has_key(locale.getdefaultlocale()[0]):
_L = _Lang[locale.getdefaultlocale()[0]]
else:
_L = _Lang["en_US"]