由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - 问个多语言的Windows Application问题
相关主题
问个best practice.Net Thread question
How to get button name? (转载)[转载] 问一个javascript 和 .NET 的问题
怎么写多语言的程序?Help ASP.NET!!!
C# question一个非常奇怪的问题
请教一下how to let button response 'return' key?
VS compiler 参数设置C# problems
mouse overmono问题请教
How to make Internet Explorer Toolbar?怎么样才能让control随window的大小变化而变化?
相关话题的讨论汇总
话题: windows话题: language话题: form话题: new
进入DotNet版参与讨论
1 (共1页)
z*****n
发帖数: 83
1
我现在要做个软件,需要支持几种不同语言的用户界面,比如
英语,德语,汉语,日语等.请问一般是如何实现的?是不是把
所有界面上的文字都对应存在一个文件里然后根据语言
设置来读取相应字符并显示?各语言的长短不同,那么象各
BUTTON,LABLE等的SIZE如何控制?(除了一个个手工调)
我主要用VB2005
多谢
c**e
发帖数: 2558
2
oops, sorry for the c# syntax. here's the VB version:
Public Sub New()
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.
Globalization.CultureInfo("zh-CN")
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub

interface
then
file
c**e
发帖数: 2558
3
if you just want to show strings in different languages on the user interface
(not including date time format, currency, string comparison/sort, etc), then
it's not too difficult a thing to do. what you need to do is:
1. design your form in the default language with the forms designer
2. change the language on the form (by setting Localizable and Language
properties on the form) and change strings on the UI to use the now
current
language to generate resources (which you can find as depe

【在 z*****n 的大作中提到】
: 我现在要做个软件,需要支持几种不同语言的用户界面,比如
: 英语,德语,汉语,日语等.请问一般是如何实现的?是不是把
: 所有界面上的文字都对应存在一个文件里然后根据语言
: 设置来读取相应字符并显示?各语言的长短不同,那么象各
: BUTTON,LABLE等的SIZE如何控制?(除了一个个手工调)
: 我主要用VB2005
: 多谢

z*****n
发帖数: 83
4
Thanks to Cute for answering my original question, and now
more questions on vb.net MUI windows apps:
1. how do you change the button texts from message boxes?
e.g. showing 确定 instead of OK
2. being new to this whole .net and actually OOP thing, I guess
you need to make the msi file to include localized files, in
my case, one dll files for each language. Can I modify these
dll's afterwards? say my customer in Germany found an error
in my translation and want to change it, can he j
1 (共1页)
进入DotNet版参与讨论
相关主题
怎么样才能让control随window的大小变化而变化?请教一下
A question about JavaScript (转载)VS compiler 参数设置
为什么web server自动改我的form actionmouse over
Button's refresh problemHow to make Internet Explorer Toolbar?
问个best practice.Net Thread question
How to get button name? (转载)[转载] 问一个javascript 和 .NET 的问题
怎么写多语言的程序?Help ASP.NET!!!
C# question一个非常奇怪的问题
相关话题的讨论汇总
话题: windows话题: language话题: form话题: new