翻译没有不同形式的.NET应用程序应用程序、形式、不同、NET

2023-09-04 01:20:08 作者:浅浅嫣然笑、

我打算翻译的.NET 2.0应用程序不同的语言。对于我启用了各种形式的本地化属性。与现在的问题是,我必须适用于支持的每种语言更改用户界面。有没有办法只是翻译的按钮,标签等字幕没有翻译的当前位置,大小等?我认为它更容易适应形式一次,不是所有的语言都保持每一种语言的布局之后。 谢谢!

I plan to translate an .net 2.0 application to different languages. For that I enabled the localizable attribute in every form. The problem with that is, that I have to apply changes to the UI in every language supported. Is there a way to just translate the captions of buttons, labels etc. without "translating" the positon, size etc? I think its easier to fit the forms to all languages once and not to have to maintain every language's layout afterwards. Thank you!

推荐答案

看看的本地化页面MSDN上的这里和在这里(旧的.NET 1.1页)和这里(新的.NET 3.5页)。

Take a look at the Localisation pages on MSDN here and here (older .NET 1.1 page) and here (newer .NET 3.5 page).

基础知识是创建单独的 RESX 文件要支持只要您设置正确。NET将挑选出哪一种语言是需要每种语言

The basics is that you create separate resx files for each language you want to support and as long as you set it up correctly .NET will sort out which language is needed.