I need to build an app which will be multilingual. For instance, the app will be released in France and the Netherlands. The user needs to select a language when the app first start for the first time. Is there an easier way to do this? In Xcode I saw something about localizations. Does this have anything to do with it?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
I would suggest reading the I18n docs. You will never need to ask the user which language they use as this is obtainable through an API call, so you should do the smart thing and use whichever language they have preferred already on their device.
These are great resources for your localization efforts:
Xcode 6.0 : It provides wonderful features for Internationalisation and Localisation. ("Localizing with Xcode 6" video). For quick usage I write some useful steps.
Step 1 :
click on project -> info -> scroll down -> localizations -> click on '+' and add your required language -> check as required -> Finish.
for xcode 6 : click on project -> change target to -> info > scroll down -> localizations -> click on '+' and add your required language -> check as required -> Finish.
Step 2 :
click on 'Supporting Files' -> right click -> New File -> select Resource on left-side list -> select 'Strings Files' -> next -> name it 'Localizable' -> create
Step 3 :
click on newly created file -> go to Utilities -> file inspector -> click on 'Localize..' -> check all language
Step 4 :
open Localizable.strings(English) write "help" = "I can't help you";
here "help" is a key "I can't help you" is a value. You may change them as your wish.
open Localizable.strings(French) or the language you have set. write accordingly and you can translate "I can't help you" to any said language.
Step 5 :
We have done it. You may check.
Now, to test goto settings of device -> general -> International -> language -> select said language or the language you have chosen (There are limited languages). Run your app. Hope this will help you. It help me.