how to add a language in WMAppmanifest file for Windows Phone 8.1

雨燕双飞 提交于 2019-12-11 03:19:53

问题


Its easy to add multiple language support in Windows Phone 8.0 WMAppmanifest file, as it have a list of all languages to select from.....
But I dont find any field in 8.1 WMAppmanifest file to add support for multiple language because during app submission on store it says only English supported which is default language. I have added strings resources for different languages but need to find a way to add another language.


回答1:


See MSDN Contents of the package manifest Section > Resources

By default it will only contain

<Resources>    
    <Resource Language="x-generate" />
</Resources>

The Resource Language token "x-generate" that's used in the source manifest file (package.appxmanifest) is replaced with the actual language code when the manifest is built.

So basically whatever language is the default language in in the manifest when editing it with the GUI.

If you want to add more languages then just add in another Resource

<Resources>    
    <Resource Language="x-generate" />
    <Resource Language="en-us"/>
    <Resource Language="en-gb"/>
</Resources>


来源:https://stackoverflow.com/questions/27027032/how-to-add-a-language-in-wmappmanifest-file-for-windows-phone-8-1

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