Old 29th December 2003, 01:47   #1
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
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
Vytautas is offline   Reply With Quote
Old 29th December 2003, 16:11   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
You can check whether LANG_NAME is defined (LANG_ENGLISH etc.).
Joost Verburg is offline   Reply With Quote
Old 30th December 2003, 01:25   #3
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
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 is offline   Reply With Quote
Old 30th December 2003, 02:04   #4
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
code:
!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?
code:
!ifdef "LANG_$LANGUAGE_VERSION
push $LANG_$LANGUAGE_VERSION
!endif


Vytautas
Vytautas is offline   Reply With Quote
Old 30th December 2003, 15:52   #5
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Looks like your mixing up run-time and compile-time. $LANGUAGE is a run-time variable. !ifdef is a compile-time instruction.
Joost Verburg is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump