Localization of nib files

I am writing an application that contains about 10 nib files for transmitting various user interface messages and for entering user data. I want to know how to localize these messages that appear on my user sheets. Is there a way that I can have one file with generic lines and depending on the language it replaces the common line with a line in that particular language. I also want to know how to load dynamic lines into messages in user sheets, such as file names or the number of selected files, etc.

I looked at ibtool, but isn’t it duplicating nib files by creating .lproj files for different languages? it just makes my application size huge.

thanks

+3
source share
5 answers

At the Boston cocoa -heads meeting some time ago, we discussed this topic and came to a consensus that there are two worthy approaches.

1 - Firstly, he either uses IBTool or manually makes individual tips.

2 - Get programmatic access to your shortcuts and programmatically change the text. Mipadi mentions Localizable.strings as useful. To get programmatic access, you can either connect each tag via IB, or you can make the king of magic to walk and find all the shortcuts (the exercise is left to the reader).

Choose the method that suits your specific application.

Hope this helps,

Jj

This question may help: IPhone localization: is it possible to translate nib files ...

+4

- .

50-100 , , . , NSPathControl, .

.xib, TextEdit, , .

+3

, , Mac OS X 10.8 , .xib/.nib .strings .

, A-Changin: -)

+2

, , , , (, , ), , ( ), .

, , Localizable.strings, , .

+1

Source: https://habr.com/ru/post/1717200/


All Articles