gbeardsl
4th August 2006 18:52 UTC
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
kichik
4th August 2006 19:05 UTC
Create header files, one per language, each encoded with the appropriate ANSI codepage and fill them with LangString definitions.
gbeardsl
4th August 2006 19:41 UTC
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
kichik
4th August 2006 19:46 UTC
Use LangString in the header files. You can also use the following:
http://nsis.sourceforge.net/Creating...ating_with_MUI
gbeardsl
4th August 2006 20:20 UTC
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.
kichik
4th August 2006 20:23 UTC
I said you can also use that. You don't have to use the MUI.
gbeardsl
4th August 2006 21:19 UTC
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!
kichik
4th August 2006 21:26 UTC
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).