Skip to content
⌘ NSIS Forum Archive

Modern UI 1.63 - Translation

266 posts

mikem4600#
Here it is! 😛
mikem4600#
In order to make this feature a bit more powerfull, wouldn't it be better to add the name of the language to the "main" nsis language file, so that it can be used when selecting language and not using the modern ui?

BTW, changing the whole "select language" dialog strings according to the selected language would be nice... ex. when I click on Chinese, the window caption and the "please select a language" text are translated to chinese.
Joost Verburg#
In order to make this feature a bit more powerfull, wouldn't it be better to add the name of the language to the "main" nsis language file, so that it can be used when selecting language and not using the modern ui?

That's possible, but it would require an update of all NSIS language files.

BTW, changing the whole "select language" dialog strings according to the selected language would be nice... ex. when I click on Chinese, the window caption and the "please select a language" text are translated to chinese.

Also a nice idea, I'll ask kichik.
Joost Verburg#
Update

I made two small changes to the Modern UI.

* Font can be set using MUI_INTERFACE macro
* New names for Modern UI Icons (modern-install.ico & modern-uninstall.ico)
Lion King#
new, better German.nlf

can you resize the 'Show details' button please? The translation doesn't fit onto it.

I get an error if I include the German language file in the example scripts like this:
LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"
1 warning:
Name command not specified. Assuming default.
there is no error if I compile the script without the language file, what's wrong?
Kypec#
I'm happy to see how these language files are being added
and improved every day. Actually I don't have much time free
but I'll try to make the slovak translation (slovak.nsh) later then.
Keep on developing, yeah!
Joost Verburg#
Originally posted by Lion King
new, better German.nlf

can you resize the 'Show details' button please? The translation doesn't fit onto it.

I get an error if I include the German language file in the example scripts like this:
LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"
1 warning:
Name command not specified. Assuming default.
there is no error if I compile the script without the language file, what's wrong?
Use Name /LANG=${LANG_GERMAN}
kiiali#
same UI style feeling (Eastern Asia)

[QUOTE]Originally posted by matini

Dear Matini,

In NLF, It would be more better to add a hotkey on "buttons". Such as

LangString MUI_BUTTONTEXT_BACK ${LANG_TRADCHINESE} "< ¤W¤@¨B(&P)"
LangString MUI_BUTTONTEXT_NEXT ${LANG_TRADCHINESE} "¤U¤@¨B(&N) >"
LangString MUI_BUTTONTEXT_CANCEL ${LANG_TRADCHINESE} "¨ú®ø(&C)"
LangString MUI_BUTTONTEXT_INSTALL ${LANG_TRADCHINESE} "¦w¸Ë(&I)"

Hotkeys not appeared on English version, but I think to add a hotkey will make the same UI style feeling (Eastern Asia) comparing with Wise & Installshield.
Joost Verburg#
The MS standard is not to use hotkeys for OK, Cancel, Next and Back buttons. Is this different for Eastern languages?
kiiali#
Originally posted by Joost Verburg
The MS standard is not to use hotkeys for OK, Cancel, Next and Back buttons. Is this different for Eastern languages?
NO. Not based on MS standard thinking, but think that hotkeys based on user handful and convenience thinking. If want example, Installshield old style (ex: Netscape 4.80 installer), Installshield 6.x new style (ex: Macromedia Flash MX), Enchalon installer (ex: Teleport Pro 1.29), Wise (ex: FlashGet 1.31), also supported Next, Back ...hotkeys.

And, Microsoft Direct X 8.1 installer (English version) also support hotkeys?

And, I would like hotkeys rather than a mouse click.

Would we think it under user convenience?
Joost Verburg#
I see, also MS installers have hotkeys. The Cancel button has already the ESC hotkey, so maybe a hotkey for Next and Back would be nice 🙂
Joost Verburg#
ACCELERATOR KEYS

I added accelerator keys to the English language files.

Please add accelerator keys to the translations (both NLF/Modern UI) too 🙂 You should add accelerator keys to all buttons (also browse, show details etc.), except the Cancel button.

If possible, use the Windows defaults.

Thanks 😁
MoNKi#
Spanish with accelerator keys

Added accelerator keys to spanish language files.
Guest#
Are Windows default accelerator keys listed somewhere?
I don't know how to find them for my french w2k.
Lion King#
no list but ...
right-click on your desktop > properties > display properties > effects > visual effects > uncheck 'hide keyboard navigation indicators until I use the alt key'

or something like that (result from a google search)
I know there is such an option, but I don't use 2k right now
Guest#
Here are the french modified files. I also changed some strings so that they are now similar to the french translations of the other installation tools.
Lion King#
accelerator keys added
Joost Verburg#
TRANSLATORS MAILING LIST

Add your e-mail address to this mailing list and you will recieve a mail when you should update your translation 🙂

kiiali#
hotkey and button size

Originally posted by Lion King

can you resize the 'Show details' button please?
dear Joost,

I have see a few metioned replay about the button size. And if added hotkey, to prevent non-English button text truncated, some button need to resize (especially happend on Korean and SimpChinese). Follows is my suggest.

Dialog 103, id 1001, enlage to 62x14
Dialog 105, id 1 , id 2 , id3 , enlarge to 54x14
Dialog 106, id 1027, enlarge to 68x14

In my experience, the UI size (including button) needs most is : Korean >SimpChinese > Japanese > TradChinese > Other languages. Button listed here I have tested is enough fit the text (even added hotkeys)
matini#
About the macros of InstallOptions

I am trying to rewrite my scripts with the new modern UI. I found
the macro of InstallOptions outputs the INI file to the $PLUGINSDIR.
Would it be better to output the INI file to the $TEMP or use
GetTempFileName to output as a temp file?

I also have a question: Could I use the macro to get the result
returned by InstallOptions?
Joost Verburg#
$PLUGINSDIR is a unique subdir of the temp dir (where plugins such as InstallOptions get extracted too).

To get the result, use ReadIniStr with the $PLUGINSDIR\ini file.
Joost Verburg#
Re: hotkey and button size

Originally posted by kiiali


dear Joost,

I have see a few metioned replay about the button size. And if added hotkey, to prevent non-English button text truncated, some button need to resize (especially happend on Korean and SimpChinese). Follows is my suggest.

Dialog 103, id 1001, enlage to 62x14
Dialog 105, id 1 , id 2 , id3 , enlarge to 54x14
Dialog 106, id 1027, enlarge to 68x14

In my experience, the UI size (including button) needs most is : Korean >SimpChinese > Japanese > TradChinese > Other languages. Button listed here I have tested is enough fit the text (even added hotkeys)
Can you give examples of too large string? I haven't got any problems.
kiiali#
Re: Re: hotkey and button size

Originally posted by Joost Verburg

Can you give examples of too large string? I haven't got any problems.
OK, in CHT (Traditional Chinese) use a proprotional font "PMingLiU", in CHS (Simplified Chinese) use a fixed-width font "SimSun". So CHS need more width button than original. Something no problem at all in ENU and CHT, but almost truncated and too tight in CHS.

Dialog 103, id 1001, enlage to 62x14
in CHT, "ÂsÄý(&B)...", displayed 10 charactors width
in ENU, "B&rowse..."

Dialog 105, id 1 , id 2 , id3 , enlarge to 54x14
in CHT, "< ¤W¤@¨B(&P)" "¤U¤@¨B(&N) >" "¨ú®ø(&C)"
in ENU, "< &Back" "&Next >" "Cancel"

I know in English original has no ">" "<" sign here (new English NSH has), but other installer (installshield6) version has it (incl. English and Chinese version)

Dialog 106, id 1027, enlarge to 68x14
in CHT, "Åã¥Ü²Ó¸`(&D)"
in ENU, "Show &details"
Joost Verburg#
The problem is that larger buttons add useles space to all other languages.

I haven't got these Chinese fonts, so please make sure that you give me exactly the right sizes (try to make 'em a bit smaller).
mikem4600#
Originally posted by Joost Verburg
TRANSLATORS MAILING LIST

Add your e-mail address to this mailing list and you will recieve a mail when you should update your translation 🙂

https://lists.sourceforge.net/lists/...nsis-translate
I can't send the confirmation e-mail!...

The following message to nsis-translate-request@lists.sourceforge.net, had delivery problems due to unknown recipient or unknown host:
--------------------------------------------------------
To: nsis-translate-request@lists.sourceforge.net
Subject: Re: NSIS-Translate -- confirmation of subscription -- request 417335
From: "Mike" <mikem@xxxxx.xxx>
Date: Fri, 18 Oct 2002 15:06:19 +0300
X-Mailer: ICSA IWS (03.05.02.0008)Build (03.05.02.0052)
X-UserIP: 195.251.xxx.xxx
X-LocalIP: 192.168.xxx.xxx
X-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
X-MailboxId: 50491
Content-Type: Text/Plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit


------ Original Message ------
NSIS-Translate -- confirmation of subscription -- request 417335

We have received a request from 195.251.xxx.xxx for subscription of
your email address, <mikem@xxxxx.xxx>, to the
nsis-translate@lists.sourceforge.net mailing list. To confirm the
request, please send a message to
nsis-translate-request@lists.sourceforge.net, and either:

- maintain the subject line as is (the reply's additional "Re:" is
ok),

- or include the following line - and only the f....
Anyway, are there any changes to the translations?