如何在 Windows Phone 8.1 的 WMAppmanifest 文件中添加语言

编程入门 行业动态 更新时间:2024-10-24 02:38:20
本文介绍了如何在 Windows Phone 8.1 的 WMAppmanifest 文件中添加语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

在 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 15:56:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1119331.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语言   文件   如何在   Windows   WMAppmanifest

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!