473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to change the GUI language?

Hi gurus,
I have a Form with some controls, some of them are my own. The GUI text is
shown in English US.
This application is for our customer in Japan that ask to change the
application GUI language to Japanese.
I have never done such a thing, but I have heard that in .NET/C# over WinXP
it relatively simple.

Can anyone show me how to change the GUI language?
-------------
Thanks a lot
Sharon
Apr 10 '06 #1
6 4949
Hi Sharon,

What you want is 'satellite assemblies' / 'localized resources' in which
google is your friend. The effect is that you store the text for all your
controls in the resource files, and .Net will load the proper resource
file based on your current locale/CultureInfo.
On Mon, 10 Apr 2006 12:19:02 +0200, Sharon <Sh*****@newsgroups.nospam>
wrote:
Hi gurus,
I have a Form with some controls, some of them are my own. The GUI text
is
shown in English US.
This application is for our customer in Japan that ask to change the
application GUI language to Japanese.
I have never done such a thing, but I have heard that in .NET/C# over
WinXP
it relatively simple.

Can anyone show me how to change the GUI language?
-------------
Thanks a lot
Sharon


--
Happy Coding!
Morten Wennevik [C# MVP]
Apr 10 '06 #2
Sharon,

Try to find information on gloablization and localization in MSDN.

If you are developing windows forms application (this is wour case as far as
I understnad) just set the Localizable property of the form to *true* then
costumize your form for different languages (for differend values for the
Language property). VS will create needed satellite assemblies for you and
genereate code for laoding the component language related properties from
these assemblies.
--
HTH
Stoitcho Goutsev (100)
"Sharon" <Sh*****@newsgroups.nospam> wrote in message
news:F3**********************************@microsof t.com...
Hi gurus,
I have a Form with some controls, some of them are my own. The GUI text is
shown in English US.
This application is for our customer in Japan that ask to change the
application GUI language to Japanese.
I have never done such a thing, but I have heard that in .NET/C# over
WinXP
it relatively simple.

Can anyone show me how to change the GUI language?
-------------
Thanks a lot
Sharon

Apr 10 '06 #3
Thanks for all of your inputs,

Hi Sharon,

If what you want to globalize is just your own application, you can have a
look at the globalization/localization features the other guys have
mentioned. Basically, you need to extract all the text in your appliation's
UI out and define them as resource based items so that you can add
resources of different language for them. Here are some MSDN reference on
..net global application development:

#Developing World-Ready Applications
http://msdn.microsoft.com/library/en...gningglobalapp
lications.asp?frame=true

#Globalization and Localization Namespaces in Visual Studio
http://msdn.microsoft.com/library/en...izationLocaliz
ationNamespaces.asp?frame=true

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 11 '06 #5
I have read the MSDN Walkthrough: Localizing Windows Forms at
http://msdn.microsoft.com/library/de...ndowsforms.asp

(1) But I need to change the UI language at run time at user selection.
How can I do that?

(2) This Walkthrough show how to set for the UI objects all the words using
the VS resource editor.
Is there a tool that takes my default UI language (en-US) resource and let
me (or my translator) generate a new resource file that I can load to my
application at run time ?
Is there a tool that does something like that?
---------
Thanks
Sharon
May 17 '06 #6
Hi Sharon,

As for (1), it depend on your applciation's localization code logic. If you
will let the user easily change the whole UI culture at runtime(at anytime
they want), you should encapsulate the UI intiliazation(such as text
setting ) in a single function and whenever the current UIculture of the
thread changes, you will need to reinvoke that function to reload the UI of
the the whole form.

As for (2), are you using vs 2005/.net 2.0 or VS 2003, in vs 2005, the resx
file editor is very powerful which can help us edit resx file and add
different kinds of resource items (include image, file, icon, string ,
etc...). If you're still using vs 2003/.net 1.1, you may need to use some
3rd party tools or add-in for resx file editing:

#Resource Editor for VS.NET 2003
http://www.codeproject.com/dotnet/ResourceEditor.asp

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


May 17 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: perpolis | last post by:
how can I change Language bar programmatically??
6
by: Michelle Stone | last post by:
Hi I am doing a bilingual .NET application for English/Arabic. On a web form, I have some edit boxes for data entry in Arabic and some for entry in English. Right now the user has to change his...
0
by: gen | last post by:
Hi everybody, We would like to use localization in order to translate our applications. The working environment of the users is very bilingual so they often have to switch from one language to...
3
by: Gidi | last post by:
Hi, I've a form with few TextBoxes and in all i'm writing in language A except one which i want to write in language B (both A and B are installed on my PC). how can I make the specific textBox...
4
by: Hans Kesting | last post by:
Can I change the language of an existing form on the fly? Say I have two radiobuttons: "dutch" and "english". When the user selects one, the form must switch to the selected language. Is that...
2
by: Jolace | last post by:
Please help me...i dowwnload italian front page :) How to change language i don't understand anything in italian?
9
by: aleplgr | last post by:
Hi! I'm trying to let the end-user select the language of the menues I'm showing him. To do that I've got this Selector class that shows the end user a combo box, a label and a button. In the combo...
1
by: Anja N | last post by:
I was wondering if there is any way to change language settings or Input mode of IME language toolbar using client side script.
1
by: brettokumar | last post by:
hi how can change my caption depends on my language selection that is my default language is English so while my page is loading my caption are display in english if i m change my lang. in run...
2
by: djpaul | last post by:
Hello, I have made a script so the user can change the language of the site. But of some reason the user has to click twice on the flag before it changes. On page load he doesn't see the language...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.