我想翻譯我的應用程序,我發現很難翻譯時,有一半的佔位符。我需要找到下面的代碼:佔位符和NSLocalizedString
[textView1 insertText:[NSString stringWithFormat:@"%@ è il %i/%i/%i. Il giorno delle settimana è %@. La Festa è compresa nel calcolo. \n", nomeFesta, giornoFesta, meseFesta, annoFestaModificato, ggSett]];
我把文件localizable.string(英文):
"festaCompresa" = @"%@ is the %i/%i/%i. the day of the week is %@. The holidays is included in the calculation. \n";
然後我編輯了一段代碼:
[textView1 insertText:[NSString stringWithFormat:NSLocalizedString(@"festaCompresaW, @""), nomeFesta, giornoFesta, meseFesta, annoFestaModificato, ggSett]];
它不起作用。
如何它確實不起作用? – hamstergene
屏幕顯示不正確,因爲單詞compare:festaCompresaW – Andrea
此文件中還存在錯誤。字符串:驗證失敗:數據無法讀取,因爲它已損壞。 – Andrea