Hi,
I've seen quite a few posts regarding changing cultures, localize cultures, etc... but I couldn't care less about all that auto-stuff.
I'm developing this GUI to connect with one of our production machines that will be used by the ppl who will be servicing the machines.
Which might well be anywhere around Europe and soon enough Japan and US.
Therefore, it was asked already to have language options, cause the guy servicing is likely to be a local.
As I said, auto-stuff doesn't bother me, all I want is the option to go to File -> Preferences and change a drop-down box to whatever language the person fancy and put a My.Settings.Save()
I'm planning to create a few simple xml files called "en", "fr", "sp", etc which will be something like:
The actual problem is:
I know the coded strings will have to be manually set, but: Is there a way to cycle through all the UI items (labels, toolstripmenu, buttons, group boxes) to set those .text ??
I'm trying stuff like
but it does not get everything. I'm really trying to avoid to do it manually one-by-one.
Also if I get to cycle through all of it, I can use the code to generate the 1st XML (as a template) ...
any ideas ??
am I going through an absurdly wrong approach?
is there any better/easier/sound way of doing multi-language GUI?
thanks
I've seen quite a few posts regarding changing cultures, localize cultures, etc... but I couldn't care less about all that auto-stuff.
I'm developing this GUI to connect with one of our production machines that will be used by the ppl who will be servicing the machines.
Which might well be anywhere around Europe and soon enough Japan and US.
Therefore, it was asked already to have language options, cause the guy servicing is likely to be a local.
As I said, auto-stuff doesn't bother me, all I want is the option to go to File -> Preferences and change a drop-down box to whatever language the person fancy and put a My.Settings.Save()
I'm planning to create a few simple xml files called "en", "fr", "sp", etc which will be something like:
VB.NET:
<Frm_Main.Label1>Text of the label</Frm_Main.Label1>
The actual problem is:
I know the coded strings will have to be manually set, but: Is there a way to cycle through all the UI items (labels, toolstripmenu, buttons, group boxes) to set those .text ??
I'm trying stuff like
VB.NET:
For each ctrl as Control in me.Controls
Also if I get to cycle through all of it, I can use the code to generate the 1st XML (as a template) ...
any ideas ??
am I going through an absurdly wrong approach?
is there any better/easier/sound way of doing multi-language GUI?
thanks