NSIS Translation files
Hi everybody,
I want to know how does the translation process for NSIS. Are there language files? I collaborate with a group working on the translation of free software to catalan. Thanks in advance!!
Albert
Archive: NSIS Translation files
NSIS Translation files
Hi everybody,
I want to know how does the translation process for NSIS. Are there language files? I collaborate with a group working on the translation of free software to catalan. Thanks in advance!!
Albert
Look at:
$NSISDIR\Contrib\Language files
$NSISDIR\Contrib\Modern UI\Language files
I suppose you can translate or re-translate one and save it as:
"mylang.nlf" ;normal Nsis
"mylang.nsh" ;modern UI Nsis
then put the instruction as:
LoadLanguageFile "mylang.nlf" ;if not using Modern UI
or:
!insertmacro MUI_LANGUAGE "mylang" ;if using Modern UI
helps?
Hi Dark & averybody
Yes it helps. I still have a problem. I've added to my .nsi script the LoadLanguageFile line and it seems to work. However, when running the installer executable I get all the dialogs empty, no messages are shown. Any idea? I'm using the gaim-installer.nsi script from gaim.sourceforge.net. Thanks!!
Albert
mmm, why don't you upload your script?
The script you are talking about doesn't use multiple languages. To add multilingual capabilities to it you'll have to put the LoadLanguageFile before any string setting command. My guess it that you put it right after the first block of code, and more specifically, after the Name command. The Name command has already created an English language table and when you loaded the other language file it has created another language table but didn't create the strings for the default language table that was already created, English.
To make it short, put LoadLanguageFile before any other command.
LoadLanguageFile "mylang.nlf"
Name "Gaim ${GAIM_VERSION} (Win32)"
OutFile "gaim-${GAIM_VERSION}.exe"
Icon .\pixmaps\gaim-install.ico
UninstallIcon .\pixmaps\gaim-install.ico