不是吐槽,是干货!macOS系统中给app设置单独语言~

有需求了,网上找了下,还真有高人写了教程~吐槽君就转到万事屋收藏~

在开发macOS的App项目中,进行本地化的时候,这是一个很实用的命令。

之前,都是在系统设置中,设置为目标语言,然后重启macOS系统。全过程一般需要一分钟左右。

而用下面这个命令,不需要重启macOS系统,可以轻松搞定单个App的语言设置。

可以在本地化支持多语言项目开发与测试中,节省很多时间。

我们的项目,需要支持16种语言,尤其是当文档组翻译完项目的字符串之后,尤其是测试组发现了本地化的Bug之后,这个命令就显得尤为重要了。

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

【macOS 单独给一个App进行语言设置】

defaults write com.microsoft.Word AppleLanguages ‘(“zh_CN”)’

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

defaults write com.polycom.PolycomCompanion AppleLanguages ‘(“zh_CN”)’

defaults write com.polycom.PolycomCompanion AppleLanguages ‘(“pl”)’

ar = Arabic

cs = Czech

da = Danish

de = German

el = Greek

en = English (US)

es = Spanish

fi = Finnish

fr = French

he = Hebrew

hu = Hungarian

id = Indonesian

it = Italian

ja = Japanese

ko = Korean

nl = Netherlands

no = Norwegian

pl = Polish

pt_PT = Portuguese

pt = Portuguese Brazil

ru = Russian

sk = Slovak

sv = Swedish

th = Thai

tr = Turkish

zh_CN = Chinese Simplified

zh_TW = Chinese Taiwan

本文转自简书:阅读原文

给TA买糖
共{{data.count}}人
人已赞赏
技术宅

即使做网站已经落伍,站长也需要知道Google Adsense 检测作弊欺骗点击广告的方法!

2021-9-13 0:37:22

技术宅

斯坦福大学科学家解开可能预示着致命超级风暴的冰冷羽流之谜

2021-9-13 9:13:54

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
今日签到
有新私信 私信列表
搜索