fluidz91
21st December 2006 13:51 UTC
Dynamically change translation of languague file nsh ?
Hi,
is it possible to dynamically change the !define MUI_TEXT_WELCOME_INFO_TITLE found in French.nsh in a script ?
I need to do this because the name of application is "logiciel de recherche..."
and !define MUI_TEXT_WELCOME_INFO_TITLE "Bienvenue dans le programme d'installation de $(^NameDA)"
i want to change "de" by "du" but don't want to make the change directly in the French.nsh because the name of the app can change and i need the original text with "de" !
Thanks.
elfi.nator
21st December 2006 16:05 UTC
the easy way make a bakup of the language.nsh (with original text.
shortly heavier make some defines in the language nsh
example
!define MyCustomText "de" or du however is needed you must change it manually.
!define MUI_TEXT_WELCOME_INFO_TITLE "Bienvenue dans le programme d'installation ${MyCustomText} $(^NameDA)"
fluidz91
22nd December 2006 10:00 UTC
Thank you very much, i'll try this.
Regards.
fluidz91
4th January 2007 14:27 UTC
Hi,
it works perfectly as expected, except with file french.nlf for windows caption where i have the variable displaying instead of its value :
"Installation ${MyCustomText} MyAppNAme"
Any clue ?
thank you
kichik
4th January 2007 21:19 UTC
You can't use that trick in NLF files. You'll have to change that string with the appropriate command, or LangString. On the NLF, before each line, the name of the internal LangString it fills is listed. Use that with the following:
LangString ^SomeString ${LANG_FRENCH} "Installation ${MyCustomText} MyAppNAme"
fluidz91
5th January 2007 10:24 UTC
Hi kichik,
ok i think i get it ! Thx