TrulyJacky
5th August 2002 10:36 UTC
Dynamic ComponentText ?
Hi Everyone,
I just want to know how to write a multilanguage installer. It simply means the installer will ask the user to choose from English and Japanese language, and then the installer will display English or Japanese messages/text/pompt during the following installing procedure. So I guess the static "ComponentText" attribute cannot be used here. But what should I do? Can anyone help me?;)
Sunjammer
5th August 2002 10:49 UTC
KiCHiK is currently working on this kind of thing, I'm sure he'll respond to this thread as soon as he can. I think his language support is a work in progress that will rapidly evolve (he seems to be happy to put a fair amount of time into NSIS code development).
TrulyJacky
5th August 2002 12:30 UTC
Thanx
Thanx Sunjammer. :up: I guess that's just the way that goes.:p
kichik
5th August 2002 15:31 UTC
Download NSIS 2.0a4. Write your own Japanese NLF (NSIS Language File), send it to me if you want to include it in the next version, load it from your script (using LoadLanguageFile), and use ComponentText /LANG=**** to set a different text for each language (insert a language code instead of **** [English is 1033]).
Currently the user can't choose which language he will see, the installer uses the default he selected in "Regional and Language Options" control panel, or the first language specified in the script if it can't find the user's default.
If you do want the user to be able to choose his language go vote in the survey. You can find a link to it in this thread.
matini
6th August 2002 08:25 UTC
Hi kichik.
How do I sent my own NSL to you?
And, how do I define the language ID in NSL file?
kichik
6th August 2002 09:37 UTC
Hi matini,
Please send the file to kichik@users.sourceforge.net.
The second uncommented line in the NLF defines the language.
Japanese is 1041.
matini
6th August 2002 10:30 UTC
Sorry... I mean how to know the ID of a specific language.
After translating the nlf file(in Traditional Chinese), I tried
some of my nsis scripts. The installer was created successfully
but I got some warning messages while compiling.
9 warnings:
unknown variable "\r$\n$\t"$0"$\r$\nÂI¿ïabort¤¤¤î¦w¸Ë,$\r$\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\n$\t"$0"$\r$\nÂI¿ïabort¤¤¤î¦w¸Ë,$\r$\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\t"$0"$\r$\nÂI¿ïabort¤¤¤î¦w¸Ë,$\r$\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\r$\nÂI¿ïabort¤¤¤î¦w¸Ë,$\r$\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\nÂI¿ïabort¤¤¤î¦w¸Ë,$\r$\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\r$\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\nretry*«¸Õ¼g¤JÀÉ®×," detected, ignoring
unknown variable "\r$\nignore²¤¹L¦¹ÀÉ®×" detected, ignoring
unknown variable "\nignore²¤¹L¦¹ÀÉ®×" detected, ignoring
Could multi-byte word cause these warnings?
kichik
6th August 2002 11:41 UTC
To get the language identifier you can use the utility I attached.
You are the third to show me this warnings. I have no idea where they come from :( I have never been able to recreate them either. I am still working on it =/