Archive: Languages included in installer


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


You can check whether LANG_NAME is defined (LANG_ENGLISH etc.).


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 :)


  !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

Looks like your mixing up run-time and compile-time. $LANGUAGE is a run-time variable. !ifdef is a compile-time instruction.