我一直在使用此方法本地化我的应用程序:
.m 文件
... initWithTitle:NSLocalizedString(@"CONFIRMACAO_TEL", @"Message")
可本地化的字符串文件
"CONFIRMACAO_TEL" = "Do you want to call?";
我要本地化的最后一个数据是两个 NSArray,尽管进行了所有搜索,我仍然不知道如何做到这一点。
这是我的数组:
descricaoServicos = [[NSArray alloc] initWithObjects:@"test 1, test 2", @"test 3", @"test 4", nil];
最佳答案
您可以这样本地化:
descricaoServicos = [[NSArray alloc] initWithObjects:NSLocalizedString(@"test 1, test 2",@"test 1, test 2"), NSLocalizedString(@"test 3", @""), NSLocalizedString(@"test 4", @""), nil];
关于ios - 本地化 NSArray,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19657980/