J
Joergen Bech
Suppose I have written a .Net application and - until now -
have hardcoded all my text strings. Now, the application needs
to be translated into another language. Furthermore, the translation
must be done by someone at the other end of the world, without
access to Visual Studio.
I suppose the first thing to do would be to make sure that all
strings are loaded from resource files, but what about the language
editor and language switching?
I heard about winres.exe, but my application makes use of many
custom usercontrols and winres.exe often chokes on the forms I
try to feed it. Also, I am not sure about relying on reflection to
change all my captions, etc. To be able to switch language without
restarting the application, I believe I would still need to write some
custom code to be executed on all open forms (to update dynamic
information) even if I use winres.exe(?)
Questions:
1) Do you use winres.exe and try to make your application play nice
with this utility?
2) What about dynamic elements not editable by winres.exe? Do you
implement a standard method in all your forms and cycle through
all open forms, calling this method whenever a culture change is
requested? Or is there something built into the framework I can
use? I would prefer *not* having my forms torn down and rebuilt
(even behind the scenes) for the translation to take place.
3) Are there any good alternatives (commercial or free) to winres.exe
or do I have to roll my own?
4) Any links to information/best practices on this subject?
/Joergen Bech
have hardcoded all my text strings. Now, the application needs
to be translated into another language. Furthermore, the translation
must be done by someone at the other end of the world, without
access to Visual Studio.
I suppose the first thing to do would be to make sure that all
strings are loaded from resource files, but what about the language
editor and language switching?
I heard about winres.exe, but my application makes use of many
custom usercontrols and winres.exe often chokes on the forms I
try to feed it. Also, I am not sure about relying on reflection to
change all my captions, etc. To be able to switch language without
restarting the application, I believe I would still need to write some
custom code to be executed on all open forms (to update dynamic
information) even if I use winres.exe(?)
Questions:
1) Do you use winres.exe and try to make your application play nice
with this utility?
2) What about dynamic elements not editable by winres.exe? Do you
implement a standard method in all your forms and cycle through
all open forms, calling this method whenever a culture change is
requested? Or is there something built into the framework I can
use? I would prefer *not* having my forms torn down and rebuilt
(even behind the scenes) for the translation to take place.
3) Are there any good alternatives (commercial or free) to winres.exe
or do I have to roll my own?
4) Any links to information/best practices on this subject?
/Joergen Bech