macos单独设置app的程序语言
最后更新于2020年02月10日, 已1746天没有更新。未经许可,禁止转载。
个人习惯macos系统语言为英文,app在默认情况下跟随系统,不像ios可以单独设置。有些专业app上一些专有名词不熟悉还是需要查词典,比较影响效率,需要单独设置app语言。
首先查询app的包名
mdls -name kMDItemCFBundleIdentifier /Applications/Final\ Cut\ Pro.app
然后修改默认语言
修改为中文
defaults write com.apple.FinalCut AppleLanguages '("zh_CN")'
修改为英文
defaults write com.apple.FinalCut AppleLanguages '("en")'
实际写入的文件地址为
~/Library/Preferences/com.apple.FinalCut.plist
默认是没有这个属性的
修改后查询
defaults read com.apple.FinalCut AppleLanguages
(
"zh_CN"
)
附语言代码
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