Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSLocale - get all available languages

is there a way to get all available languages on the iphone just like in the settings app?

can't find a method in NSLocales Class Reference.

thanks!

alt text http://dl.getdropbox.com/u/80699/Bildschirmfoto%202010-07-26%20um%2019.45.49.png

like image 801
choise Avatar asked Jul 26 '10 17:07

choise


2 Answers

Well, there is [NSLocale availableLocaleIdentifiers]

EDIT: what do you mean by “I need the local identifiers”? Do you mean the NSLocale identifiers or the localized language names? I fear the latter is not possible.

like image 169
Raphael Schweikert Avatar answered Nov 15 '22 22:11

Raphael Schweikert


NSLocale displayNameForKey:value: is your friend. :)

like image 35
bozi Avatar answered Nov 16 '22 00:11

bozi