Closed Bug 1582360 Opened 5 years ago Closed 2 years ago

Firefox 68.1.0 ESR language change problem

Categories

(Firefox :: Enterprise Policies, defect, P1)

60 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: juergen.schroth, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce:

We have installed the firefox 68.1.0 ESR in the language en-US
We have added via policy ( “ Extension to install “ ) 4 additional language packs : e.g. de
And we have disabled automatically update via policy.

Actual results:

When I start Firefox the first time everything appears in english ( that’s ok )
and the Update is disabled. ( ok )
The language packs are all available in the AddOns section ( ok )
Now I switch to german via options for example and restart the firefox.
The Menu is german ( ok ) but the options are in german only for a short time (some seconds ) then changes back to English again.
And the firefox tries to start an update.
if I do not use the language packs installation over policies but over C:\Program Files (x86)\Mozilla Firefox\browser\extensions this effect does not occur.

Expected results:

The menu and options are in the desired language and the update should remain disabled.

I think there are two separate problems here:

  • The language should stick. If you do the procedure without policies, does it work as expected?
  • Installing a language pack should have no effect on update settings, policies or not.

Yes, after installing the language packs via C:\Program Files (x86)\Mozilla Firefox\browser\extensions everything works as expected.
Only after installing the language packs via policy both effects occurs ( starting update and re-change of the language on the about:preferences tab )

That's strange. We're just doing normal add-on installs with policy. I'll take a look.

Component: Untriaged → Enterprise Policies

The priority flag is not set for this bug.
:mkaply, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mozilla)
Flags: needinfo?(mozilla)
Priority: -- → P1

I'm having trouble reproducing, want to make sure I get things exactly the same.

Are you installing the languages from

http://releases.mozilla.org/pub/firefox/releases/68.1.0esr/win64/xpi/de.xpi

or from a local file?

Do you have any other policies set that might affect this?

Can you attach your German XPI to this bug?

Hi Mike,

we copied the language files and dictionaries on the local clients into the folder
C:\programData\mozilla\extensions
From there we install the languagePacks via Policy
Extension to install with the values
C:\ProgramData\mozilla\extensions\diccionario_espanol_mexico-1.1.3.1-typefix-fn+sm+tb+fx.xpi
C:\ProgramData\mozilla\extensions\dizionario_italiano-5.0.0-an+fx+sm+tb.xpi
C:\ProgramData\mozilla\extensions\german_dictionary-2.0.6-an+fx+sm+tb.xpi
C:\ProgramData\mozilla\extensions\hungarian_dictionary-1.6.1.1.1-typefix-fn+sm+tb+fx.xpi
C:\ProgramData\mozilla\extensions\de.xpi
C:\ProgramData\mozilla\extensions\it.xpi
C:\ProgramData\mozilla\extensions\hu.xpi
C:\ProgramData\mozilla\extensions\es-MX.xpi

we have downloaded the language files from
https://ftp.mozilla.org/pub/firefox/releases/68.1.0esr/win32/xpi/

Regards
Jürgen

I am having trouble recreating.

Are you using Group policy or policies.json?

The Menu is german ( ok ) but the options are in german only for a short time (some seconds ) then changes back to English again.
And the firefox tries to start an update.

Which menu are you referring to?

If you go to about:policies when in this situation, are updates still disabled?

Attached video Firefox1.mp4

screen record

Hi Mike,

we are using Group policies.
And the menu which I mean is the menu under the 3 lines in the upper right corner.
Yes, the update is still disabled.
DisableAppUpdate true

Screen record attached

Sorry, I've been trying to recreate this but am not having any luck.

It looks like there is an error on your about:policies. Can you tell me what that says?

Are you modifying RequestedLocales at all in your policies?

Hi Mike,
no, we aren't setting any policy according requested local, but we have an Active Setup in our Firefox package
which will set user_pref("intl.locale.requested", "[language]") in the pref.js in the userprofile
Active Setup :

  • Modify/add line in prefs.js
    user_pref("intl.locale.requested", "[language]");
    Select [Language] according to registry value in bold:
    HKEY_CURRENT_USER\Control Panel\Desktop\PreferredUILanguages
    Value Regkey / Value [language] in prefs.js:
    de-DE/ de,hu,it,es-MX,en-US
    hu-HU / hu,de,it,es-MX,en-US
    it-IT / it,de,hu,es-MX,en-US
    es-ES / es-MX,de,hu,it,en-US
    es-MX / es-MX,de,hu,it,en-US
    en-US & alle anderen (Fallback)/ en-US,de,hu,it,es-MX
    Is this probably the mistake ?

How exactly are you modifying prefs.js? Or do you have something in an autoconfig or some other file?

Here a powershell script is used. Unfortunately, I can not pass on exact content. Here is an excerpt from the Active Setup script.

$regvalue = 'HKCU:Control Panel\Desktop'
$UserLanguage = (Get-ItemProperty -Path $regvalue).PreferredUILanguages
If($UserLanguage)
{
switch ($UserLanguage.ToLower())
{
"de-de" {$Language="de,hu,it,es-MX,en-US";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile;Break}
"hu-hu" {$Language="hu,de,it,es-MX,en-US";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile;Break}
"it-it" {$Language="it,de,hu,es-MX,en-US";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile;Break}
"es-es" {$Language="es-MX,de,hu,it,en-US";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile;Break}
"es-mx" {$Language="es-MX,de,hu,it,en-US";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile;Break}
"en-us" {$Language="en-US,de,hu,it,es-MX";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile;Break}
default {$Language= [String]"en-US,de,hu,it,es-MX";"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile}
}
}
Else
{
$Language= [String]"en-US,de,hu,it,es-MX"
"$LogTime : Using userlanguage [$($Language)] for file modification" >> $LogFile
}
.......
........
........

	        $out = @()
	        $Prefsjs = Get-Content $PrefsFile
	        $UserAgentLocale = "user_pref(""intl.locale.requested"", ""$($Language)"");"
			
            foreach ($line in $Prefsjs)
            {
	            if($line -like "*intl.locale.requested*")
                {
		            $line = $null
		        }
		        Else
                {
		            $out+= $line
		        }
	         }

I got sidetracked on this bug. When exactly is the powershell running? It looks to me like it's running whenever Firefox is restarted?

What is the value of intl.locale.requested when things switch to English?

If your goal is to just try to have the language of the browser match the language of the operating system, you can just set intl.locale.requested to "" and it will automatically choose that.

Severity: normal → S3

I realize this is a very old bug.

Are you still having this problem?

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: