[tooltip] Default language setting since we have xcode
Hi !!
I want to share a little tooltip for who want to change English default language, like me !!!
In all projects we should make with Titanium, we have always default language in English, which mean that all "system interaction" are in english (e-mail, button-system, search bar, etc…)
Since we can have a full access to the code in Xcode (1.3.2) we can change this default language !!!
Open your Titanium project with XCode, and go in "Resources/info.plist"
(You can access to the xcode project in : yourproject/build/iphone/yourproject.xcodeproj)
The first line concerning what we want to change : "Localization native development setting".
Change "English" in your favorite language, compil, and "voila" !!!
In my case, "French" : After this editing, you can make all you want with Titanium like build, etc, and close Xcode.
The language will stay in YOUR language in the project, i made some test.
;)
3 Answers
-
That's not the good way to do this…
Here's how to change language :
Move info.plist to your root folder (ie same folder as tiapp.xml).
Open it with the plist editor.
Change language to french (that's my case too ;)) and save it.When compiling, the modified info.plist should be used by xcode.
-
thanks for sharing. I was just wondering this.
-
Hi,
Obviously, it's not working when we make the final compilation, i don't know why :/