Ios 如何本地化UIAlertview的内容

Ios 如何本地化UIAlertview的内容,ios,Ios,使用基本国际化,基于对象ID生成自动本地化变得非常容易 /* Class = "IBUILabel"; text = "Clear Memory"; ObjectID = "fHm-5n-KrF"; */ "fHm-5n-KrF.text" = "Effacer la mémoire"; 但这只适用于Xcode可以在情节提要中找到的内容 应该可以在AlertView中包含文本字符串。当然 UIAlertView *alert = [[UIAlertView alloc] initWithTit

使用基本国际化,基于对象ID生成自动本地化变得非常容易

/* Class = "IBUILabel"; text = "Clear Memory"; ObjectID = "fHm-5n-KrF"; */
"fHm-5n-KrF.text" = "Effacer la mémoire";
但这只适用于Xcode可以在情节提要中找到的内容

应该可以在AlertView中包含文本字符串。当然

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Wheel Cicumference" message:@"Ground Trace (mm):" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil];

alert.alertViewStyle = UIAlertViewStylePlainTextInput;
alert.tag = 10;

[alert addButtonWithTitle:@"Accept"];
[alert show];

苹果的文档非常丰富,到目前为止我还没有发现任何有意义的东西。我不一定想得到完整的答案,只是让我朝着大致的方向出发,我知道的唯一方法是将
UIAlert
本地化:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", @"Error")
                     message:NSLocalizedString(message, message) delegate:nil
                      cancelButtonTitle:NSLocalizedString(@"OK", @"OK") otherButtonTitles:nil];

如果它不是“OK”,我们就说它是“Yes”,德语中相应的“Ja”,哪一个会先出现<代码>NSLocalizedString(@“是”,@“Ja”)?或者
NSLocalizedString(@“Ja”,@“Yes”)
?谢谢。自从我发表文章以来,经过更多的研究,这听起来像是以编程的方式进行的,而不是IB机械化