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?
A:
indeed you must run generate strings,
ibtool --generate-strings-file Example.strings en.lpoj/Example.xib
Andy Jacobs
2009-11-30 12:19:39
A:
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.
progrmr
2009-11-30 16:23:35
+1
A:
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.
Dan J
2009-12-01 21:34:01