Xcode 4, adding localization

I just moved to xcode4 and the boy wasted! :)

Firstly, in the screenshot you can see the localized lines, several file names are changed to "null", I wonder why and if it affects the final product?

And also, I could not understand what life is, how to add another localization. Earlier in xcode3.x I needed to right-click on “Localizable Strings” and add a language, where am I doing this now? enter image description here

Update: I found where to add locations, but again, earlier I was able to enter the language the way I wanted, for example, I want to add Spanish, I could do this just by adding a language called spanish, but now I have to choose from predefined list of languages. And also, ((null)) bothers me

+4
xcode4 cocoa
Apr 25 '11 at 3:25
source share
1 answer

Languages ​​will be read from NSGlobalDomain AppleLanguages. Try adding your own identifier to this list.

% defaults read NSGlobalDomain AppleLanguages ("en_GB", en, fr, de, ...) % defaults write NSGlobalDomain AppleLanguages "(HongKong, "en_GB", en, fr, de, ...)" % defaults read NSGlobalDomain AppleLanguages (HongKong, "en_GB", en, fr, de, ...) 
-one
Oct. 31 '11 at 19:38
source share



All Articles