- This topic has 0 replies, 1 voice, and was last updated 9 years, 1 month ago by .
Viewing 0 reply threads
Viewing 0 reply threads
You must be logged in to reply to this topic.
Home › Forums › Software publishing & Announcement / 软件发布及公告 › SocksCap64多国语言文件说明
SocksCap64采用GetText实现国际化支持.
从1.2版本开始将支持手动切换界面语言.
如果你自己翻译了新的语种, 并且不希望等到下一个版本发布而马上使用新的界面语言, 请对程序的语言文件Language.ini做如下配置, 即可马上使用你所翻译的新语言.
Language.ini位于安装目下. 默认的文件内容如下:
#VERY IMPORTANT!
#DO NOT EDIT THIS FILE ARBITRARY!
#format:
#langN=Language Name,culture locale ID
#culture locale id is decimal
#e.g
#lang1=Chinese – People’s Republic of China,2052
#LCID info:
#http://www.microsoft.com/resources/msdn/goglobal/default.mspx
#https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx
[basic]
select=1
lang1=Automatically assign lanaguage,0
lang2=English (United States),1033
lang3=Chinese (People’s Republic of China),2052
你只需要将新的语言添加到文件尾部就可以. 例如你要添加的是: Chinese (Singapore), 我们通过帮助文档查到它的Culture Locale ID是0x1004, 注意这里需要将0X1004转成10进制, 是: 4100.
可以在Microsoft官网查到Culture Local ID
http://www.microsoft.com/resources/msdn/goglobal/default.mspx
那么添加到文件尾部的内容就是:
lang4=Chinese (Singapore),4100
注意lang4, 这个数字一定要顺序编码, 不要重复.
同时, 务必将你翻译的mo文件放在安装目录下的Lang子目录下.
目录结构必须是: xx_xx\LC_MESSAGES\scap.mo
xx_xx是Culture Name, 同样可以在Microsoft官网中找到
http://www.microsoft.com/resources/msdn/goglobal/default.mspx
本例中我们要添加的Chinese (Singapore)是zh-SG, 在目录结构中将中划线’-‘改为下划线’_’
也就是, 我们新增的语言的最终目录结构是:
目录结构必须是: zh_SG\LC_MESSAGES\scap.mo
You must be logged in to reply to this topic.