Bug 63827 - Default Installer Language
Summary: Default Installer Language
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
4.0.2.2 release
Hardware: x86 (IA32) Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 116176 (view as bug list)
Depends on:
Blocks: Installer-Windows
  Show dependency treegraph
 
Reported: 2013-04-23 07:46 UTC by Colin
Modified: 2019-03-18 06:32 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin 2013-04-23 07:46:06 UTC
The installer language defaults to that of the machine locale.
This is not always the desired language.
I have spotted a similar report which was summarily dismissed as "Not a bug". For the reasons given below, I feel this was an inappropriate dismissal. As a newbie I am unsure whether it is even possible to have the original report re-opened so I have simply filed a new one. My apologies if this offends.

In my case, I am located in Sweden with a Swedish sourced Family PC, together with installed Swedish default OS. Even though I am the administrator, I am unable to speak Swedish. I doubt I am the only migrant unable to adequately communicate in a local language.

Just about every other software package, both open and proprietary, acknowledges that the installing operator may not comprehend the local language and therefore offers the option of switching the language to an easily understood alternative.

Once installed there is no problem because each user is capable of selecting their own interface language.

In a user environment, technical solutions viz "reset or edit Registry Key %xx(a).user/.???" can't and doesn't work. Simplicity viz "select installer language" is the order of the day.

I will understand if this is considered a feature as opposed to a fault, but it will potentially deter new users. I doubt that is considered one of the prime objectives of the foundation.
Comment 1 Urmas 2013-04-23 10:35:58 UTC
The installer defaults to *user* locale. It can be easily switched for the Administrator account.
Comment 2 Colin 2013-04-23 10:50:38 UTC
I must be really dumb.
For me the installer just launches in Swedish with no provision to select an alternate language. Even though the system locale is set to Swedish I have actually changed everything I can on the administrator account to English but I still get a Swedish installer.
Could you possibly give me a clue as to how the easy language switch is made?

In reply to comment #1)

> The installer defaults to *user* locale. It can be easily switched for the
> Administrator account.
Comment 3 Andras Timar 2013-04-25 07:32:26 UTC
It is not possible to put language selector into the MSI, because its language it determined by the time the first dialog is displayed. We can think about setup.exe + MSI or something like that.
Comment 4 Dennis Roczek 2014-08-05 21:48:48 UTC
Strange. How did Piriform (httP://www.piriform.com) got the MSI package (e.g. CCleaner) working that way? When choosing another language, the window disappears and pop up with the chosen language. Why should this not working for LibreOffice (@Andras)?
Comment 5 Urmas 2014-08-05 23:57:59 UTC
They use NSIS installer.
Comment 6 auntie.spam 2014-08-26 11:11:42 UTC
I came to this thread when I tried to install Libri Office and found there was no language option to allow the installation in English. I downloaded the installation program from an English language website because I wanted it in English. I now find myself outside of the Libri Office forum and in the Bugzilla forum, so I'm guessing the Bug (or some intentional design aspect) of this thread has to do with the installer program. If anyone is interested in user friendly installation programs, one of my favorites is Malwarebytes. Also, as I recall, Open Office offers an installation program with EN or DE or whatever other language in the .exe file itself.  It makes sense to allow the user to select the language he or she needs.  The problem put me off from installing Libri Office.
Comment 7 Peter Feichtinger 2017-04-11 06:26:07 UTC
I don't know whether it makes sense to warm this up, but Urmas seems to be wrong about the installer using the user locale. In fact I'm not sure it uses any locale at all:
 * I am in Austria (where the local language is German in case you don't know)
 * I have an English Windows 10 install
 * My user account is English as well
 * I don't have any German localization package or anything installed
 * The only German thing on this machine are the settings for number and date formats (Control Panel/Region)
And yet the installer opens in German.
Comment 8 Colin 2017-10-14 15:17:52 UTC
(In reply to Peter Feichtinger from comment #7)
> I don't know whether it makes sense to warm this up, but Urmas seems to be
> wrong about the installer using the user locale. In fact I'm not sure it
> uses any locale at all:
>  * I am in Austria (where the local language is German in case you don't
> know)
>  * I have an English Windows 10 install
>  * My user account is English as well
>  * I don't have any German localization package or anything installed
>  * The only German thing on this machine are the settings for number and
> date formats (Control Panel/Region)
> And yet the installer opens in German.

Peter
You appear to be confirming that there is a locale being detected as you're getting German and I'm getting Swedish.
I imagine you bought your machine from a local OEM who pre-installed windows with a registry entry somewhere, set to German - as no doubt my local OEM would have set Swedish. As The Document Foundation is actually a German entity it would be more understandable that German has popped up as a default if a registry value was not being accessed, but Swedish - how could that work without some locale setting somewhere being referenced?
Comment 9 Urmas 2017-10-15 07:08:52 UTC
(In reply to Peter Feichtinger from comment #7)

What is the following Registry value on your system?

HKEY_CURRENT_USER\Control Panel\International
Comment 10 Buovjaga 2018-03-10 17:34:06 UTC
*** Bug 116176 has been marked as a duplicate of this bug. ***
Comment 11 munuruxi 2018-11-19 08:28:20 UTC
@auntie.spam@yahoo.com

I was also put off by this.

@Peter Feichtinger:

I have the exact same setup as you and @Urmas solved it! When I looked at HKEY_CURRENT_USER\Control Panel\International , I saw that there are German values there, one of the keys is even named "Locale", which is very strange. I then realized that these registry settings are for number and date formats! Then in the control panel (Region window), when I changed the option from German to "Match Windows displayed language (recommended)", it switched to English (US) in the registry at that location. After that, the LibreOffice installer showed in English!

And then if you want to continue using the number and date formats as before, just click "Additional settings..." in the control panel and change manually to custom values, but keep English as the selected option above. It will work that way.

@Urmas:

This doesn't look like the correct registry location for the installer to read. System language and system locale are ignored, and the installer only reads the number and date format, which doesn't make sense.
Comment 12 Mike Kaganski 2019-03-16 09:40:05 UTC
The UI language of the installer is defined by ProductLanguage property [1]. It automatically selects the built-in language transform. The command line to run LO MSI installer in any supported language is

> msiexec /i LibreOffice_X.Y.Z_Win_x64.msi ProductLanguage=1033

where 1033 is for en-US; the value is decimal LCID number [2]. Note that the [MS-LCID] document lists the IDs in hexadecimal, e.g. 0x0409 for en-US.

It should be noted that msiexec sets this value itself if it's 0, and it's msiexec which reads HKEY_CURRENT_USER\Control Panel\International values, however that could be counter-intuitive.

It's interesting if we can change this value dynamically in the installer to change UI language dynamically - which, if possible, would allow to add the "Choose installer language" page in the beginning.

[1] https://docs.microsoft.com/en-us/windows/desktop/Msi/productlanguage
[2] https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c
Comment 13 Mike Kaganski 2019-03-18 06:32:51 UTC
(In reply to Mike Kaganski from comment #12)
> It's interesting if we can change this value dynamically in the installer to
> change UI language dynamically - which, if possible, would allow to add the
> "Choose installer language" page in the beginning.

Apparently it doesn't help to change the property at installer run-time. Obviously, the localization transforms are chosen at installation start time (either implicitly using regional settings, or from passed ProductLanguage, or explicitly by mentioning e.g. TRANSFORMS=:1084), and not re-applied later.