I went through the source files and updated all my lines using the NSLocalizedString () macro. Now, since I have many lines that appear in several source files, I decided to place a large number of lines in the header file called "LocalizedStringDefinitions.h" using the #define directive. So, for example, each line looks like this:
#define kLocalizedSTRINGNAME NSLocalizedString(@"STRINGNAME", @"Comment")
I just ran the genstrings command in the terminal, and the Localizable.strings file that was created contained only the localized strings that were directly placed in my code, and none of #defined. I have about 100 lines of #defined lines that I donβt want to return to my code, especially because they appear in multiple files. How can I localize strings?
source share