2
使用基本國際化,基於對象ID生成自動本地化變得非常簡單。這是法國版本的東西。如何本地化UIAlertview的內容
/* 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];
蘋果文檔很大,至今我還沒有發現任何有意義的東西。我不一定wan't完全爲我奠定了答案,只是把我關在大方向上
如果不是'好',假設它是'是'和德文中相應的'Ja',哪首先出現? 'NSLocalizedString(@「是」,@「Ja」)'?或'NSLocalizedString(@「Ja」,@「是」)'?謝謝。 – Unheilig
經過一番更多的研究,因爲我發佈它聽起來像是以編程方式進行編程的舊方式,而不是IB機械化 – aremvee