Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Problem with languages (http://forums.winamp.com/showthread.php?t=251484)

Batya 19th July 2006 13:52

Problem with languages
 
Hello!
I use NSIS to create multilanguage installer.

In main file I create Combobox with languages like this:
;==================================
; Languages
!insertmacro LCM_LANGUAGE "English"
!insertmacro LCM_LANGUAGE "Russian"
!insertmacro LCM_LANGUAGE "French"
!insertmacro LCM_LANGUAGE "SimpChinese"
!insertmacro LCM_LANGUAGE "Japanese"
!insertmacro LCM_LANGUAGE "Spanish"

I have .nsh files for all languages.
For example:

!insertmacro MUI_UNSET PCM_CUR_LANG
!define PCM_CUR_LANG "JAPANESE"

LangString TEXT_LANGUAGE_SHORT ${LANG_${PCM_CUR_LANG}} "jp"

; Registration dialog
LangString TEXT_AUTHORIZE_TITLE ${LANG_${PCM_CUR_LANG}} "商品の登録"

When I'm saving file with Unicode or Utf-8 makensisw returns an error:

!insertmacro: end of MUI_LANGUAGE
Invalid command: !insertmacro
!include: error in script: "languages\Japanese.nsh" on line 1
Error in macro LCM_LANGUAGE on macroline 7
!include: error in script: "installer.nsh" on line 86
Error in script "D:\Work\VisualStudio\PowerCompres\1.2.16 (Back up) Base Version\AMD LIVE! Compress\Full\installer\installer_def.nsi" on line 25 -- aborting creation process

In other case (when I'm saving .nsh file with japanese codepage) makensisw compiles my code. But when I run the compiled installation the text what I see is not a valid japanese text.
Problem is with Japanese and Chinese. French, Spanish, Russian are OK.

If anyone knows the solution of this problem, please, tell me.

Thank you in advance!

kichik 19th July 2006 17:58

NSIS installers are not Unicode enabled. You must select the correct language for non-Unicode applications in the Regional and Language Options control panel in order to view the text correctly.


All times are GMT. The time now is 05:00.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.