Reputation: 40755
I created a View-Based project in Xcode, but I find no Localizeable.strings file for doing my localization. Must I run genstrings first to create this? Or did I do something wrong?
Upvotes: 0
Views: 335
Reputation: 15245
Indeed, you must run generate strings,
ibtool --generate-strings-file Example.strings en.lpoj/Example.xib
Upvotes: 0
Reputation: 25673
You need to declare all your localizable text with NSLocalizedString before running genstrings will produce anything useful.
I would recommend declaring all your text definitions with NSLocalizedString instead of inside Interface Builder XIBs as it is easier to get a text file translated than a XIB file.
Just make sure to allow 50% more space than you need for your English strings, as English is generally more concise.
Upvotes: 1
Reputation: 77261
Yes, genstrings creates the Localizeable.strings file. You can run it from the command line like this:
genstrings Classes/*.m
I found this tutorial to be helpful.
Upvotes: 0