开发者

Is it possible to localize the application name based on a criterion other than language?

Thanks to @Jano, I know how to localize application strings based on the country in which the application is running - in my q开发者_如何学编程uestion : How to localize text based on criterion other than language. The answer is to take these strings out of the Settings.bundle and bring them into the application, where they can be localized in whatever manner the developer requires.

My question now is: is it possible to localize the application name (the name under the app icon) using a criterion other than language? I think that doing this on a language basis is well understood - there are several questions and answers on Stack Overflow and elsewhere which discuss localizing the BundleDisplayName.

But my customer would like to give the application a different name in the various European countries in which he expects to market it, and some of these countries (Germany, Austria, Switzerland), share a language.


Xcode allow you to add de-AT, de-DE and de-CH localization files, but I have just tried this out and looks like it has no effect. I tried to change device language to German and then switch region format between Austria, Germany and Switzerland, but the bundle display name didn't change from English. When I added de (without a -XX suffix for country) it changed to German name, again ignoring region format. I'm a bit confused as I was under impression we could use those country-specific localizations like that. I hope someone offers a better solution, but until then I would suggest a workaround: building 3 targets, one for each country, and submitting them to AppStore and only making them available in their respective countries.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜