ios - How to check the iPhone language settings? -


i'm localizing app cocos2d there no nib files, i'm localizing label fine want check device language set exact font , font size each language. in short want following:

if (device.language == en) { set font "fontname" , "fontsize" x; } else { set "another font name" , font size y; } 

how check device language/settings set exact language?

you can use:

[[nslocale preferredlanguages] objectatindex:0] 

this return language tag “en” or “ja”.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -