You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
中文环境下,系统相册名字显示成英文——去掉info.plist里Localization native development region的设置 #443
changed the title [-]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面[/-][+]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面——去掉info.plist里Localization native development region的设置[/+]on Jul 15, 2017
changed the title [-]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面——去掉info.plist里Localization native development region的设置[/-][+]中文环境下,系统相册名字显示成英文——去掉info.plist里Localization native development region的设置[/+]on Jul 15, 2017
Activity
doubleJJJJ commentedon May 26, 2017
同问
[-]请问国际化怎么弄?现在是中文环境,成了英文中文都有的洁面[/-][+]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面[/+]shaolelng commentedon Jun 26, 2017
在 #import "NSBundle+TZImagePicker.h"
找到这个方法,+ (NSString *)tz_localizedStringForKey:(NSString *)key value:(NSString *)value {
static NSBundle *bundle = nil;
if (bundle == nil) {
NSString *language = [NSLocale preferredLanguages].firstObject;
if ([language rangeOfString:@"zh-Hans"].location != NSNotFound) {
language = @"zh-Hans";
} else {
language = @"en";
}
bundle = [NSBundle bundleWithPath:[[NSBundle tz_imagePickerBundle] pathForResource:language ofType:@"lproj"]];
}
NSString *value1 = [bundle localizedStringForKey:key value:value table:nil];
return value1;
}
在 if ([language rangeOfString:@"zh-Hans"].location != NSNotFound) {
language = @"zh-Hans";
} else {
language = @"en";
}
添加要修改的语言 判断。
在 TZImagePickerController.bundle 中添加带翻译 语言文件。
shaolelng commentedon Jun 26, 2017
试试
banchichen commentedon Jul 15, 2017
标题里提到的"英文中文都有的界面",如果系统语言设置的是中文,但出现了这样的情况:
说明是应用的info.plist文件里,设置了Localization native development region且值不是China。
解决方式:
[-]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面[/-][+]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面——去掉info.plist里Localization native development region的设置[/+][-]请问国际化怎么弄?现在是中文环境,成了英文中文都有的界面——去掉info.plist里Localization native development region的设置[/-][+]中文环境下,系统相册名字显示成英文——去掉info.plist里Localization native development region的设置[/+]voludenuit commentedon Dec 6, 2017
如果修改语言设置没有作用,要看看导航栏的显示是否正常,如果导航栏显示偏大,看看启动界面使用图片的尺寸是不是不对
linyuezang commentedon Apr 14, 2018
是否支持长按上传视频
cxm1150806259 commentedon Oct 26, 2018

添加下语言就OK了LassZhang commentedon Jun 22, 2019
PROJECT > Info > Localizations的Language列表中添加Chinese