openfrog
openfrog

Reputation: 40755

Where can I find my Localizeable.strings file?

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

Answers (3)

Andy Jacobs
Andy Jacobs

Reputation: 15245

Indeed, you must run generate strings,

ibtool --generate-strings-file Example.strings en.lpoj/Example.xib

Upvotes: 0

Dan J
Dan J

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

progrmr
progrmr

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

Related Questions