本地化无法正常运行-显示的语言 [英] Localization not working correctly - Language shown

查看:94
本文介绍了本地化无法正常运行-显示的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个让我发疯的问题".我一定在做或不做某事.

I have one 'issue' that is driving me crazy. I must be doing or not doing something.

使用C#通用项目.我开发了一种支持3种语言的应用程序.英语,西班牙语和波兰语.

Using C# a Universal project. I developed an App with support for 3 languages. English, Spanish and Polish.

我遵循了以下步骤:

  1. 为每种语言"en","es","pl"创建具有不同子文件夹的文件夹"strings".里面的resources.resw带有不同的文本.
  2. 在清单中设置为默认语言"en".
  3. 我检查了清单中是否有Language ="x-generate"行.

问题是,当我在便携式计算机或移动设备(ARM)中调试应用程序时,它可以正常运行. (在Visual Studio中,我进行了调试,并且可以正常运行)

The thing is that when i Debug the application in my laptop or my Mobile (ARM) it runs correctly. (in visual studio i debug and it works)

该设备使用英语,该应用程序以英语运行,该设备使用西班牙语,该应用程序以西班牙语运行,等等.

The device is in English the app runs in English, the device is in Spanish the app runs in Spanish, etc.

但是,当我在商店中发布应用程序并将其以某种设备形式安装在商店中时,它始终以英语运行.

But when i publish the Application in the Store and i install it in some device form the store it always runs in English.

我检查了从商店安装设备的设备,并且英语不在配置中.

I reviewed the devices where i install it from the Store, and English is not anywhere in the configuration.

我错过了一些步骤吗?你知道我能评论什么吗?

Am i missing some step? do you know what can i review?

预先感谢, 亲切的问候,

Thanks in advance, Kind regards,

推荐答案

但是,当我在商店中发布应用程序并以某种设备形式安装该应用程序时,该商店始终以英语运行.

But when I publish the Application in the Store and I install it in some device form the store it always runs in English.

如果要让您的应用程序以西班牙语波兰语的形式运行,这些属性指向资源文件,则有两种方法.

If you want to let your Application runs in Spanish or Polish for the properties which are pointing to the resources files, you will have two ways.

第一种方法是在设备中将西班牙语波兰语语言设置为默认语言,因此请确保这些设备下载了您的应用程序,并安装了 Spanish Polish 语言包,并将 Spanish Polish 语言设置为默认语言,否则它将以英语显示您的应用.

The first way is set the Spanish or Polish language as the default language in your device, so please make sure that the devices who have downloaded your app have installed the Spanish or Polish language package and have set the Spanish or Polish language as the default language, otherwise it will show your App in English.

第二种方法是使用 primaryLanguageOverride 来更改您想要展示给您的应用程序,用这种方式,您可能会遇到有关语言在Visual Studio中有效但在上载到商店时不起作用的问题,有关如何解决该问题的详细信息,请在此处查看我的答复: UWP:语言资源文件未正确部署

The second way is to use the primaryLanguageOverride to change the Language which you want to show for your app, in this way you may meet the question about the language works in the Visual Studio but does not work when uploading to the store, for the detailed information about how to solve it, please check my reply in here: UWP: Resource file for languages is not deployed correctly .

谢谢.

这篇关于本地化无法正常运行-显示的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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