Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 4th August 2006, 17:52   #1
gbeardsl
Junior Member
 
Join Date: Jan 2004
Posts: 10
Double_Byte String implementation

All,
Please forgive my persistence about this, but it still isn't clear to me how to add custom Japanese/Korean/etc strings to an installer (since the script cannot be unicode). I have read the docs and looked at scripts and searched the Forum, but still can't seem to find an answer. Sorry!

Should I add my custom strings to the nlf files? Should I create instead my own custom string file and include it somehow?

Sorry to bug everybody,
Thanks,
Gary
gbeardsl is offline   Reply With Quote
Old 4th August 2006, 18:05   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Create header files, one per language, each encoded with the appropriate ANSI codepage and fill them with LangString definitions.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 4th August 2006, 18:41   #3
gbeardsl
Junior Member
 
Join Date: Jan 2004
Posts: 10
kichic,
Thanks for your fast reply. Can I bug you to show a short example of the header format? The NLF files are different from the NSH files, and it might take me quite a while to figure out exactly what's needed.

Thanks so much for helping - I can't be alone in this, there must be others who need exactly the same thing!

Thanks again,
Gary
gbeardsl is offline   Reply With Quote
Old 4th August 2006, 18:46   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Use LangString in the header files. You can also use the following:

http://nsis.sourceforge.net/Creating...ating_with_MUI

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 4th August 2006, 19:20   #5
gbeardsl
Junior Member
 
Join Date: Jan 2004
Posts: 10
I wan't yet using the Modern UI, but if required, I will. Can it be done not using MUI?

sorry I'm a pain.
gbeardsl is offline   Reply With Quote
Old 4th August 2006, 19:23   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
I said you can also use that. You don't have to use the MUI.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 4th August 2006, 20:19   #7
gbeardsl
Junior Member
 
Join Date: Jan 2004
Posts: 10
OK, ONE more thing and then I'll stop pestering you!!

I observe that the "Japanese.nlf" language files has entries in it which can be saved in ANSI format. A typical entry looks like this:

# ^ClickInstall
Æ’Cƒ“ƒXÆ’g[ƒ‹‚ðŽn‚ß‚é‚É‚Í [Æ’Cƒ“ƒXÆ’g[ƒ‹] ‚ðƒNÆ’Å_Æ’bÆ’N‚µ‚ĉº‚³‚¢B

When I attempt to add my additional string like this:

# ^SuccessNOReboot
インストールはæ_£å¸¸ã«çµ‚了しました。

Notepad (and other apps) warn me that Unicode information is present, and will be lost if I save to ANSI.

My question: Is it possible to translate to Japanese using only a limited ANSI character set? (that is, intentionally limiting your character set to the first JPN table.)

Thanks!
gbeardsl is offline   Reply With Quote
Old 4th August 2006, 20:26   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
No, you can't save using Notepad if you're using the wrong codepage. Use a program that allows you to select the codepage to save, without changing the system's codepage (through the Regional and Language Options control panel).

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp 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