我有:
-(IBAction)about {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"About", @"Title of AlertView")
message:@"App name \n© My name \n2010"
delegate:self
cancelButtonTitle:NSLocalizedString(@"Back", @"Cancel Button Title")
otherButtonTitles:nil];
[alert show];
[alert release];
}在Localizable.strings中:
/* Title of AlertView */
"About" = "Über";
/* Cancel Button Title */
"Back" = "Zurück";我的问题是:当语言是德语时,它就是德语,但当我将语言更改为英语时,警告视图仍然是德语
怎么了?
发布于 2010-11-28 22:55:24
使Localizable.strings文件可本地化(单击该文件,按下cmd+i并按下"Make file localizable“按钮),并向其添加德语和英语本地化。然后将德语本地化写入文件的德语版本,并保留英语版本,如下所示:
/* Title of AlertView */
"About" = "About";
/* Cancel Button Title */
"Back" = "Back";发布于 2012-01-23 21:26:46
如果你使用xCode 4,你就会遇到这样的问题。请尝试下一步:
中删除应用程序
<代码>H111添加Localizable.strings文件<代码>H212<代码>H113对project
https://stackoverflow.com/questions/4297051
复制相似问题