|
|||||||
| View Poll Results: What should be the default language? | |||
| Locale language (as it is now) |
|
8 | 44.44% |
| UI language (as the bug report suggests) |
|
10 | 55.56% |
| Voters: 18. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Default language
According to bug report #1324734, we should be using the UI's language as the default language. There's no technical difficulty involved and the suggested behavior is feasible. However, I'm not so sure that's the right thing to do.
As far as I can tell, most users use the English UI, but set their locale to their local language. In this, they might appreciate the installer automatically choosing their local language. However, the bug report does bring up a valid point, saying that the installer should, at least by default, follow the rest of the UI. So, what do you think? NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#2 |
|
NSIS Dev
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
|
However, the UI behavior is not necessarily consistent.
Case in point- change the locale to German (Germany) and then open the Calendar applet. The UI is in English but the months are displayed in German. So which is correct? |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
I was the original submitter of that bug, and just in case anybody is interested (other than myself and a few of my customers) here's the workaround script I wrote. Sorry it's a bit of a mess - I've just got out of the "get it working" phase and haven't got around to tidying it up yet:
code: To see this in action, call SetUILanguage from .onInit, and un.SetUILanguage from un.onInit. Basically, it just tries to call GetUserDefaultUILanguage() (available on Windows ME, Windows 2000 and later). If that doesn't work, it does some Registry trawling to find the same information. Comments welcome! Cheers, Andrew |
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Can you please create a Wiki page for this code?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 | |
|
Guest
Posts: n/a
|
Quote:
That version of the code is slightly updated. The code I posted here sets $LANGUAGE based on the whole language identifier. The code on the Wiki trims off the sublanguage identifier, because that seemed to cause NSIS to get it wrong. I'm working on a bug report for that one. Cheers, Andrew |
|
|
|
|
#6 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Why not implement both options and let the NSIS scriptwriter decide what he/she thinks is best?
Personally I set the language to the language of the OS GUI. The idea is simple: "If the user can use the PC he sure can read the OS GUI language in some form... thus also an installer in this language." Well, since one of my installers was used by total +300.000 people in GB, FR, ES, NL, TK, DE without any install language complaint... While mostly really using XP in French, Spanish, English and German NOTE: Why bother the installer user whith language questions if not needed. One of the goals of NSIS is to make installation simple, preventing un-neccesairy questions. BTW: If this language is not available embededed in the installer I set to English with an option for the installation user to choose. "Just do it" |
|
|
|
|
|
#7 | |
|
Guest
Posts: n/a
|
Quote:
Cheers, Andrew |
|
|
|
|
#8 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Yep, I do, actually at a given point I needed a solution NOW, so I started of my venture in writing a plugin.
Happy as I was what I created, I thought: I'm surlely not the only one so posted the solution incl. examples on the Wiki: Your solution is nice, thanks! But take care accessin the registry directly, I prefer API calls of an OS, You know MS might decide to change the registry names at will.. (Windows Vista?) I'm sure you could alter your code doing the same as my plugin. Wiki MoreInfo Multilanguage and OS GUI language here. http://nsis.sourceforge.net/wiki/MoreInfo_plug-in FYI: Next month Vista Beta 2 I will do a Windows Vista compatibility test. For now, my heavy task is still getting makensis to work under FreeBSD (POSIX) so I can automet my builds. "Just do it" |
|
|
|
|
|
#9 | |
|
Guest
Posts: n/a
|
Quote:
As far as I know, there's no other way to get the UI language on "legacy" Windows versions. I'll take a look at your code to see how you do it. Cheers, Andrew |
|
|
|
|
#10 |
|
Guest
Posts: n/a
|
onad:
I just took a look at your code. I see you're getting the language of USER.EXE, which is good thinking and will work for legacy Windows versions. However, it won't work properly for users who are running the MUI (Multilingual User Interface) version of Windows 2000 or XP. USER.EXE is always "English (US)" in a MUI environment. I'm told the Enterprise and Ultimate versions of Vista will also be MUI. You should modify your code to try calling GetUserDefaultUILanguage first, and use the USER.EXE method as the fallback for old Windows versions. Documentation for GetUserDefaultUILanguage is here: http://msdn.microsoft.com/library/de...l/nls_5c85.asp Cheers, Andrew |
|
|
|
#11 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Good tip, I will adjust my plugin as soon as I find the time.
Thanks! "Just do it" |
|
|
|
|
|
#12 | ||
|
Junior Member
|
Quote:
Quote:
"Never hold your farts in. They travel up your spine and into your brain, and that's where you get shitty ideas from." - Unknown |
||
|
|
|
|
|
#13 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Just to keep you all up-to-date on this one, I plan to implement it for 2.12.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Great,
Then my Moreinfo Plugin will be obsolete for the language part, good. Maybe you can reuse some of the moreinfo text of the wikipage. "Just do it" |
|
|
|
|
|
#15 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Not in time for 2.12, but the change has finally been made. It'll be available in 2.13 and the next nightly build.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|