Подтвердить что ты не робот

Локализация раскадровки iOS: тексты UITextView не локализованы?

У меня есть приложение на основе раскадровки, которое локализовано с немецкого языка на английский.

Большинство строк в пользовательском интерфейсе правильно вытягиваются из файлов Main.strings, за исключением всего текста в UITextViews, хотя они отображаются в файле Main.strings:

/* Class = "IBUITextView"; text = "Die Futtermenge kann bei Hunden ab 12 Monaten anhand des Schiebreglers von 2% auf 5% des Körpergewichts verstellt werden. Als Standart empfehlen wir 2% Futter vom Körpergewicht Ihres Hundes. Je nach Aktivität kann das abweichen. Wenn Sie bereits eine hohe Menge an Futter geben und Sie der Meinung sind, es ist nicht ausreichend, erhöhen Sie die Fettmenge im Futter. Mehr unter den Fragen & Antworten.\n \nFür Welpen und Junghunde gilt:\nWelpen 8 - 20 Woche: 7%\nJunghunde 21 - 35 Woche: 6%\nJunghunde 36 - 52 Woche: 5%"; ObjectID = "TAc-yh-nWQ"; */
"TAc-yh-nWQ.text" = "As of 12 months of age, you can use the slide ruler to adjust the food amount for dogs from 2% to 5% of body weight. As a baseline, we recommend 2% of your dog weight to determine the amount of food. It will vary depending on activity. If you are already giving your dog a lot of food and you feel it is not sufficient, increase the fat content of the food. More information can be found in the FAQ section.\n \nFor puppies and young dogs:\nPuppies 8 - 20 weeks: 7%\nYoung dogs 21 - 35 weeks: 6%\nYoung dogs 36 - 52 weeks: 5%";
/* Class = "IBUILabel"; text = "Getreide:"; ObjectID = "VMF-xs-WfF"; */
"VMF-xs-WfF.text" = "Grains:";
/* Class = "IBUIButton"; normalTitle = "Gewicht aktualisieren..."; ObjectID = "WpP-c7-ipY"; */
"WpP-c7-ipY.normalTitle" = "Update weight...";

Что-то не так с моим Main.strings? Вышеприведенное является выдержкой.

4b9b3361

Ответ 1

Похоже, что это давняя ошибка, обсуждаемая здесь.

Вы можете попробовать "Изменить" Локализованные строки "на" Конструктор интерфейсов Cocoa Touch XIB ", рекомендованный там, который кажется странным бит волшебства вуду, но эй, если он работает, он работает. В противном случае необходимо установить его во время выполнения.

Ответ 2

Моим решением было локализовать текстовые поля с помощью файлов Localizable.strings.