Vytautas
29th December 2003 01:47 UTC
Languages included in installer
Is there a way to determine which languages have been included in an installer?
I'm trying to write a translatable plugin and it would be usefull to get at compile-time the list of languages used in the script so that I would only need to include the translated strings for those languages in the installer.
Vytautas
Joost Verburg
29th December 2003 16:11 UTC
You can check whether LANG_NAME is defined (LANG_ENGLISH etc.).
Vytautas
30th December 2003 01:25 UTC
Thanks, I'm assuming that it will work with both standard interface and MUI.
$LANGUAGE variable holds the language number selected at run-time, is there a varaible that holds the language name selected at runtime? e.g
$LANGUAGE - $SOMEVAR
1033 - English
1063 - Lithuanian
Vytautas :)
Vytautas
30th December 2003 02:04 UTC
!ifdef LANG_ENGLISH
!define LANG_1033_VERSION "English version"
!endif
!ifdef LANG_LITHUANIAN
!define LANG_1063_VERSION "Lithuanian version"
!endif
I descided to try this code but in the following code the second line does not work. Am I overlooking something obvious or is that simply not possible?
!ifdef "LANG_$LANGUAGE_VERSION
push $LANG_$LANGUAGE_VERSION
!endif
Vytautas
Joost Verburg
30th December 2003 15:52 UTC
Looks like your mixing up run-time and compile-time. $LANGUAGE is a run-time variable. !ifdef is a compile-time instruction.