UIAlertView *alert;
alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Score?",@"") message:NSLocalizedString(@"%d points (perfect score : 100)",@"",j*10) delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];[alert show];
initWithTitle은 지역화가 되는데
message(빨간 부분) 같은경우에는 %d 가 들어가서 오류가 나는데 어떻게 해야할까요 ㅠㅠ
답변:
[NSString stringWithFormat:NSLocalizedString(@"%d...", @""), j*10];
이런 식으로 포멧 스트링만 지역화 하고 숫자는 밖에서...
0 댓글