CGee
CGee

Reputation: 1650

No plus or minus button in Xcode localization settings

I need to translate an iOS-Application within two days, but my XCode versions (4.4 and 4.5 Developer Preview) both don't give me the option to add another language. I only get the option to click "Make localized.." but I can only choose english and after choosing it, there are no plus and minus buttons in the utility inspector in Xcode - with no file or project i tried.

Am I missing something here?

Edit: This is how it looks like:

enter image description here

Upvotes: 53

Views: 13928

Answers (6)

carlos_ms
carlos_ms

Reputation: 838

I think the answer is not complete!... If you start a project for a non English, Japanese, French or German language (in xCode 4.6), then you will be a bit lost on how to localize your resources.

If you just go and try to add a new language as stated by kamesh above, you'll find you can't if you didn't FIRST localized at least one of your resources in the default provided languages by xcode.

So, localize at least one of your resources needed to be localized, and then, add the language you need to add as kamesh, then the next modal presented by xcode will let you add any resources to that new language. (not very intuitive and definitely not documented by apple.)

Upvotes: 0

Kemo
Kemo

Reputation: 488

enter image description here

You can add languages in Xcode 4.5 like above.

Upvotes: 1

Carina
Carina

Reputation: 2260

It moved to the starting in Xcode 4.4 .

enter image description here

Upvotes: 101

BiGGA
BiGGA

Reputation: 333

It seems Xcode 4.5 DP3 completely miss the +/- buttons in the localization pane. I tried Nyon solution to add an additional language (actually before seeing this post). Doing so, I can add a language into the project but I cannot use that new language to localize my files. But thanks to him, I know now that it is the issue with Xcode DP3.

So, what did was very simple: I use the old Xcode 4.3 to localize my file (with + button in the localization pane). Then, I have two versions of the files (one for each language, nicely organized into appropriate lproj). Then I switch back to Xcode 4.5 DP3. Now, both languages (en and the new one) appear in the localization pane. And this time, for all my files!

That is, you have to add a language only once in Xcode 4.3, afterwards, the new language will appear in your language list as it should be.

Upvotes: 1

Nyon
Nyon

Reputation: 49

I just meet with this problem and I was using xcode 4.5 preview 3. Couldn't believe apple have made this kind of mistakes and not fixed it even when its at preview 3. Therefore I believe they just have changed the way localisation work so I poke around the UI until I finally found it.

They have shifted it. You first have to add the language you want to the project first. Then after it will appear as a check box item in the UI you show. To add the language you need to click go to Project -> Info then click "+" to add new localizations.

Hopes that helps.

Upvotes: 4

Kevin Grant
Kevin Grant

Reputation: 5431

The buttons scroll out of view when the "+" is used to extend the list. Use the mouse to grab the bar right below the list of localizations and drag it down to make more room, and the buttons will be visible again. Then you can click on the "+" to see a menu of additional localizations.

Upvotes: 1

Related Questions