Visual Studio 2008中的本地化:我的错误是什么? [英] Localization in Visual Studio 2008: What's my mistake?

查看:60
本文介绍了Visual Studio 2008中的本地化:我的错误是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio 2008中创建Windows窗体的本地化版本.

I'm trying to create a localized version of a Windows Form in Visual Studio 2008.

在完成各种演练之后,我将表单属性Localizable设置为TRUE,并将表单语言设置为法语.

Following various walkthrought, I set the form property Localizable to TRUE, and set the form language to French.

然后我编辑法语版本. Visual Studio在工作区中显示一个.fr.resx文件以及.resx.

I then edit the French version. Visual Studio shows a .fr.resx file as well as the .resx in the workspace.

但是,如果我切换回(默认)版本,则默认版本中的所有英文字符串现在都已替换为法语版本.

However, if I switch back to the (Default) version, all the English strings in the default version have now been replaced by the French version.

很明显,我缺少了一个非常明显的东西:有人可以建议它是什么吗?

Obviously I'm missing something very obvious: can anyone suggest what it is?

推荐答案

您是说在表单设计器本身中,表单仍以法语显示?如果直接查看".resx"文件,则字符串是否使用正确的语言.如果是这样,您是否尝试过关闭并重新加载表单,或清理项目,或清除然后重新设置"Localizable"属性,或完全重新启动Visual Studio.我已经多次看到类似这样的奇怪语言问题(我是Visual Studio的本地化程序的开发人员),但是上述解决方案通常可以解决该问题.设计师有时会遇到问题.

You mean in the forms designer itself, the form is still appearing in French? If you look at the ".resx" files directly, are the strings in the correct language. If so then have you tried closing and re-loading the form, or cleaning the project, or clearing and then resetting the "Localizable" property, or re-starting Visual Studio altogether. I've seen strange language issues like this many times (I'm the developer of a localization program for Visual Studio), but the above solutions normally correct the problem. The designer has its problems sometimes (among other things).

这篇关于Visual Studio 2008中的本地化:我的错误是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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