简体   繁体   中英

Multilingual using objective c in xcode7

I wanted to add a switch language function in my application without changing devices's language. Is that possible to perform multilingual without using localize? Any idea how to do it ?

Yes, it is possible. however you must handle the localization process all by yourself.

Basically, you need to create function to localize string, preferably if you create extension to NSString so you can call it anywhere and save the language picked. You also need to provide localizable.string for every language that your app supported. Don't use localization provided by storyboard. You need to wire every element that you want to localize into your code and change the text via the NSString extension.

These seem to do in-app language switching:

However I've used neither of them & can't vouch for their usefulness.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM