新建一个setting.bundle后结构如下:
Settings.bundle en.lproj Root.strings Root.plist
大家一般都在Root.plst里面添加删除条目,那么要本地化/国际化语言怎么办?
看目录应该是新建一个en.lproj这样的目录,例如中文的为:zh_CN.lproj。
在xcode里右键->Show in finder,然后再选中右键->显示包内容,这下就可以编辑了。
这时依葫芦画瓢建lproj目录即可,新的结构如下:
Settings.bundle en.lproj Root.strings Root.plist zh_CN.lproj Root.strings
根据不同语言,设置相应字符串,在en.lproj/Root.strings设置为:
"Appdebugenable" = "App debug enable"
在zh_CN.lproj/Root.strings设置为:
"Appdebugenable" = "APP调试使能";
这样,在Root.plist里写入Appdebugenable即可完成本地化/国际化了!