iOS localization with region (de_LU) [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-12 19:13:08

问题


Possible Duplicate:
iPhone App Localization - English problems?

I am working on an App for iOS devices. I made it available for English (en) and German (de). That works fine with localization. Now I want to create a specified localization for German with region Luxemburg: German (Luxemburg) or de_LU. I added it into my Localizable.strings but nothing happened... I deleted the cache, I reinstall the app serval times: Nothing. He ignores that.

My iPhone is configured with the German language and Luxemburg as region.

Where is the problem? Or is it impossible to do that?


回答1:


It is possible, to localize into that culture you should have a de-LU.lproj folder, is that the case?

A typical application has at least one strings file per localization, that is, one strings file in each of the bundle’s .lproj subdirectories. The name of the default strings file is Localizable.strings but you can create strings files with any file name you choose.

(Quoting Apple documentation)

If you're using Xcode 4, just go to project settings, Info tab, then add your localization from there, it will setup the project accordingly for you.

Also note that Apple recommends that you save strings files using the UTF-16 encoding




回答2:


Check for region & language in code. If language German & region Luxemburg then keep new key for localization.And initialize that key in German language localized file. It is working for me.




回答3:


Unfortunately, I believe that supporting dialects is currently impossible in iOS 4.



来源:https://stackoverflow.com/questions/5528637/ios-localization-with-region-de-lu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!