如何在 Windows Phone 8.1 的 WMAppmanifest 文件中添加语言 [英] how to add a language in WMAppmanifest file for Windows Phone 8.1

查看:23
本文介绍了如何在 Windows Phone 8.1 的 WMAppmanifest 文件中添加语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows Phone 8.0 WMAppmanifest 文件中添加多语言支持很容易,因为它有一个可供选择的所有语言的列表......
但我没有在 8.1 WMAppmanifest 文件中找到任何字段来添加对多语言的支持,因为在商店提交应用程序时,它说仅支持英语,这是默认语言.我已经为不同的语言添加了字符串资源,但需要找到一种方法来添加另一种语言.

解决方案

参见 MSDN包清单的内容 部分 > 资源

默认情况下它只会包含

<Resource Language="x-generate"/></资源>

<块引用>

在构建清单时,源清单文件 (package.appxmanifest) 中使用的资源语言标记x-generate"将替换为实际语言代码.

所以基本上,在使用 GUI 编辑清单时,清单中的默认语言是任何语言.

如果您想添加更多语言,只需添加另一个Resource

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

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.

解决方案

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>

这篇关于如何在 Windows Phone 8.1 的 WMAppmanifest 文件中添加语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆