Old 8th November 2010, 10:05   #1
Pravin
Junior Member
 
Join Date: Oct 2010
Location: INDIA
Posts: 37
NSIS Multi Language

Hi.. I found few threads discussing about my issue. But i couldnt understand and also im not sure whether the thread has the exact solution for my issue. Im really sorry for that.


I have used MUI in my code.
My installer supports multi language such as english and japanese as of now.


Following are the code i use in my script.


PHP Code:
!insertmacro MUI_LANGDLL_DISPLAY      under Function .onInit)
       !
insertmacro MUI_LANGUAGE "English"
       
!insertmacro MUI_LANGUAGE "Japanese" 
Note : I have installed the language pack.

Issue :

1.Dialog box appears only when i select " Control panel -> regional and language options -> Advanced -> Japanse"

now dialog box appears with the languages " english and japanese"

If i select Japanese my japanese characters are dsiplayed very well.

2.But having the language pack installed , when i select " Control panel -> regional and language options -> Advanced -> English"

dialog box does not appear.

When i inserted the code
PHP Code:
!define MUI_LANGDLL_ALLLANGUAGES 
i got the dialog box and when i selected japanese it showed characters as junk .

having installed the language pack,y does it shows me junk ?

Is there any way i can display the dialog box with out the code
PHP Code:
!define MUI_LANGDLL_ALLLANGUAGES 
and show japanese characters properly with out selecting " Control panel -> regional and language options -> Advanced -> Japanse"


should i need to deal with NSIS unicode version.. if yes. how?

Thanks in advance.!!!
Pravin is offline   Reply With Quote
Old 8th November 2010, 12:19   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
Originally Posted by Pravin View Post
having installed the language pack,y does it shows me junk ?
Because normal NSIS installers are ANSI applications. You'll need to use the unicode build to get what you want:
1) Get Unicode NSIS
2) Get unicode versions of all the plugins you use
3) Save your script file to UTF-8 format instead of ANSI
4) Compile.
MSG is offline   Reply With Quote
Old 8th November 2010, 12:24   #3
Pravin
Junior Member
 
Join Date: Oct 2010
Location: INDIA
Posts: 37
Thanks MSG.. i'l do as u said it and i'l update you
Pravin is offline   Reply With Quote
Old 18th November 2010, 07:38   #4
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 564
Send a message via ICQ to T.Slappy
I had similar problem:
I used several languages:
code:

!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Slovak"
!insertmacro MUI_LANGUAGE "Arabic"



But I did not see the texts correctly - for example arabic fonts were not rendered correctly.

I suppose this is whe Windows related problem, maybe some settings in Language and region options could help

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2022: www.visual-installer.com
or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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