|
|
#1 |
|
Junior Member
Join Date: Aug 2002
Posts: 3
|
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?
|
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
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).
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2002
Posts: 3
|
Thanx Sunjammer.
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2002
Location: Taiwan
Posts: 34
|
Hi kichik.
How do I sent my own NSL to you? And, how do I define the language ID in NSL file? |
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Hi matini,
Please send the file to kichik@users.sourceforge.net. The second uncommented line in the NLF defines the language. Japanese is 1041. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2002
Location: Taiwan
Posts: 34
|
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. code: Could multi-byte word cause these warnings? |
|
|
|
|
|
#8 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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 =/
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|