Reputation: 23540
I use initWithBarButtonSystemItem to place some buttons in my navigationbar, but I am surprised with something : the text is not translated in the local language...
My keyboard "accept" text is in French, but UIBarButtonSystemItemSave keeps showing "Save" (in English) instead of something like "Enregistrer" or "Sauvegarder" (in French).
Is this normal ? If yes, why use those kind of buttons instead of initWithTitle ones ?
Upvotes: 0
Views: 807
Reputation: 23540
I found the solution of the problem.
To make the translation work, you must define the languages to your project : Go to the project properties, and in the info tab, add the desired languages. Then, the System buttons will be localised on systems that use those languages. if you just let "English" as the sole language, for exemple, the System buttons won't be translated even if the app is launched on a Spanish, or French OS.
Upvotes: 1