iPhone app available languages in appStore

萝らか妹 提交于 2019-12-03 13:38:41

This is what you need to do:

This is how the .app folder should look like:

+MyApp.app

+en.lproj

+de.lproj

+nl.lproj

etc...

in the lproj folder, you should place a Localizable.strings file.

In this Localizable.strings file, you can put the language changes like these: (EN-NL)

"About" = "Over"

"ErrorSupport" = "Kon niet de ondersteuning contacteren."

So, the first lines like "About" don't give the english, but just the function.

I am not completely sure how to set this up in your app, i am not a really good app coder. You should check Apple's help documents, or ask it to other developers.

For the download of languages, i would persume, that you build in a webView, and direct it to your downloadpage, and that the app then automatticly regocnises it as a language folder, and installs it to MyApp.app/<language>.lproj. Ask about this download stuff to other developers, or check Apple's help documents. (I don't know for sure if they mention it there)

I used a technical support incident to ask this question of Apple directly. Here is the answer:

"The list of languages supported by the app, as shown in the iTunes store screenshot you sent, is automatically determined by inspecting the submitted application bundle. Typically, this comes from the .lproj folders in a bundle, as the process (and iOS) use this to determine what languages the application can support. However, it is also possible to provide your own localization support system in the application without using .lproj folders (although this is typically much more work) -- in this scenario, the list of supported languages is specified in the application's plist file, via the CFBundleLocalizations key. See the following docs (and the guide linked to in the docs) for more info on this:

http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html%23//apple_ref/doc/uid/TP40009249-109552-TPXREF111 "

I was a lil lost doing this. I localize my Unity game internally, not using .lproj or .xliff. Jeremy's answer brings up some light on this. I opened the Info.plist to edit, but Xcode was transforming automatically the CFBundleLocalizations key into the key "Localizations" (Which makes sense now, but as his answer was on 2010 I was wondering if xcode was playing tricks on me haha)

The Localizations key is an array with a string as item 0: "English" So I've added new strings with "Spanish" and "Brazilian Portuguese".

When I was typing, xcode present some options like Chinese and other languages that I didn't need, which triggered more doubts. So I opened the info.plist as text:

<key>CFBundleLocalizations</key>
    <array>
        <string>en</string>
<string>Spanish</string>
<string>Brazilian Portuguese</string>
    </array>

Didn't looks right, uh? With a lil research I find that I must add as ISO 639-1 (with some catch):

<key>CFBundleLocalizations</key>
    <array>
        <string>en</string>
        <string>es</string>
        <string>pt</string>
    </array>

The catch is that Brazilian Portuguese in ISO 639-1 should be: pt-BR but as seen here: https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/LocalizingYourApp/LocalizingYourApp.html

"The language ID for scripts or dialects uses subtags, as in pt-PT where pt is the code for Portuguese and PT is the code for Portugal. For example, use pt as the language ID for Portuguese as it is used in Brazil and pt-PT as the language ID for Portuguese as it is used in Portugal."

This worked for me!

I also had the same problem, my app supports only one language, but in the Appstore it is shown that my app supports a bunch of languages. I was confused and later after reading this post I realized that those are coming automatically from the pods that I am using. I then found this plugin (cocoapods-prune-localizations) which will help to remove unwanted lproj. Hope it helps, but I feel there should be some way to edit the info directly in Appstore, but as I am aware I cant find that option. If such an option exists please let me know.

cocoapods-prune-localizations

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