1.国际化选项Localizations被清空,如图1,不能指定Base语言,也不能添加其它语言
图1 本地化中无语言选项
这时需要在project.pbxproj文件中找到或添加knownRegions选项,位置如下,然后在该选项中添加如en, Base等,如下所示
/* Begin PBXProject section */
997EE7F01EC9517A0065A583 /* Project object */ = {
isa = PBXProject;
attributes = {
//...
};
buildConfigurationList = 997EE7F31EC9517A0065A583 /* Build configuration list for PBXProject "NSBundleDemo" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
"zh-Hans",
);
//....
};
/* End PBXProject section */
然后再查看主工程,发现基本语言又回来了,
网友评论