
Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Hi Dave,
Thank you for your reply!
Yes, what you expected can be done definitely.
In fact, the best practice of localizing a WinForm application is like the
following:
1. Use VS IDE to create WinForms in the application and make each form
localizable, i.e. set the Localizable property of the form to true and
build the WinForm application project.
2. When you want the application support another culture later, you can use
Windows Forms Resource Editor(Winres.exe) to edit the .resx files, e.g.
Form1.resx. Translate the resource text into another language, e.g. German,
and save this resx file in German culture, which produces a Form1.de.resx
file in the same folder where the Form1.resx resides.
3. Use Resgen.exe tool to convert Form1.de.resx file to
ProjectNamespace.Form1.de.resources file(Note, the .resources file should
have a full name so that the resource could be accessed by the executable
later). For example, type the following command in the VS2005 command
prompt:
Resgen Form1.de.resx WindowsApplication1.Form1.de.resources
4. Bind all .resources files for a specified culture into a statellite
assembly using AL.exe tool. For example, you create Form1.de.resources and
Form2.de.resources files, then you need to bind both the two *.de.resources
files into a statellite assembly for the culture German. For example, type
the following command in the VS2005 command prompt:
AL /t:lib /embed:WindowsApplication1.Form1.de.resources
/embed:WindowsApplication1.Form2.de.resources /culture:de
/out:WindowsApplication1.resources.dll
5. Copy the generated satellite assembly
'WindowsApplication1.resources.dll' into a subdirectory named 'de' under
the folder that the executable resides.
As you can see, we needn't re-compile the existing WinForm application
project to support another culture.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
David Thielen - 31 Oct 2007 16:56 GMT
Bingo - exactly what I needed. thanks.

Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
> Hi Dave,
>
[quoted text clipped - 46 lines]
> Linda Liu
> Microsoft Online Community Support
sunny - 01 Nov 2007 03:36 GMT
> Bingo - exactly what I needed. thanks.
>
[quoted text clipped - 56 lines]
>
> - Show quoted text -
Hey guys
localisation does not work when assembly key file is added. please
help!!! see the code below
code:
assembly.cs
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"..\..\Key\Key.snk")]
[assembly: AssemblyKeyName("")]
localisation:
private void LoadLocalizedText(ResourceManager rm)
{
this.NewString = rm.GetString("NewString");
}
the above code works in visual studio 2005 (.net 2.0 ... not sure of
visual studio 2003)....
i definately need to add the keyfile in the assembly and can not move
to visual studio 2005...
i am using borland devloper studio 2006 and .net1.1
i have been asking for help in
http://newsgroups.borland.com/cgi-bin/dnewsweb?cmd=xover&group=borlan...
but its not going anywhere :(((( cryingout loud
Please have a look at my test app http://rapidshare.com/files/65203000/testapp.zip
and try to compile it in borland developer studio 2006. The satellite
assembly will not be strongly named when assemblykey file is used. I
am pretty muich struck with it and don't know where to go from
here...
please help as i can not move to vs.net or .net 2.0.
please help
sunny
Lilian - 17 Jan 2008 13:58 GMT
A few precision for beginners like me not to search too long :
> 2. When you want the application support another culture later, you can use
> Windows Forms Resource Editor(Winres.exe) to edit the .resx files
This tool can be found in the .NET Framework 2.0 SDK shortcuts folder
("Start" menu).
It is labeled "Windows Resource Localization Editor".
> 3. Use Resgen.exe tool to convert Form1.de.resx file to
> ProjectNamespace.Form1.de.resources file(Note, the .resources file should
[quoted text clipped - 3 lines]
>
> Resgen Form1.de.resx WindowsApplication1.Form1.de.resources
To run this command first open the command prompt from another shortcut in
the .NET Framework 2.0 SDK named "SDK Command Prompt".
Otherwise the "resgen" command may not be known (PATH problem).
> 4. Bind all .resources files for a specified culture into a statellite
> assembly using AL.exe tool. For example, you create Form1.de.resources and
[quoted text clipped - 5 lines]
> /embed:WindowsApplication1.Form2.de.resources /culture:de
> /out:WindowsApplication1.resources.dll
This command should also be executed from the SDL prompt.
> Hope this helps.
> If you have any question, please feel free to let me know.
>
> Sincerely,
> Linda Liu
> Microsoft Online Community Support
It helped a lot thank you !
I just regret this cannot be a simpler from the IDE without having to mess
in the shell.
Best regards.
mohan-m - 28 Jun 2008 05:27 GMT
Can this process be used for Asian Languages as long I have the fonts and
culure correctly set.? Is the .resx files any different since they may have
Unicode strings.?
I would like to create the .resx files from a list of strings which are in a
file.
Thanks
Mohan Mistry
> Hi Dave,
>
[quoted text clipped - 46 lines]
> Linda Liu
> Microsoft Online Community Support