Мой главный вопрос:
Я попытался изменить настройки локали, пакеты, языковые пакеты Firefox и настройки Firefox, но не смог придумать комбинацию, которая снова дала бы мне желаемый результат:
В некоторых предыдущих версиях Kubuntu я «исправил» свою проблему, установив некоторые общие части моей локали на en-GB, но это имело нежелательный побочный эффект - изменение проверки орфографии Pidgin с en-US на en-GB. На этот раз я даже не могу воспроизвести этот результат (несмотря на то, что делал заметки).
Я пробовал много предложений от StackExchange и других источников, но ни одно из них не помогло мне. К счастью, в отчаянии я вспомнил, что помимо ответов на вопросов на StackExchange, я также могу задавать вопросов!
Я использую Firefox 66.0.3 (64-разрядный) на Kubuntu 18.04.
В Firefox> Дополнения> Языки у меня установлены как en-US, так и en-GB.
В Firefox> Настройки> Язык и внешний вид> Язык: как для языка пользовательского интерфейса, так и для языка отображения веб-сайта я пробовал как en-US, так и en-GB без каких-либо изменений.
В Firefox из chrome: //global/locale/intl.properties:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# LOCALIZATION NOTE (intl.accept_languages):
# This is a comma-separated list of valid BCP 47 language tags.
#
# Begin with the language tag of your locale. Next, include language
# tags for other languages that you expect most users of your locale to be
# able to speak, so that their browsing experience degrades gracefully if
# content is not available in their primary language.
#
# It is recommended that you include "en-US, en" at the end of the list as a
# last resort. However, if you know that users of your locale would prefer a
# different variety of English, or if they are not likely to understand
# English at all, you may opt to include a different English language tag, or
# to exclude English altogether.
#
# For example, the Breton [br] locale might consider including French and
# British English in their list, since those languages are commonly spoken in
# the same area as Breton:
# intl.accept_languages=br, fr-FR, fr, en-GB, en
intl.accept_languages=en-US, en
# LOCALIZATION NOTE (font.language.group):
# This preference controls the initial setting of the language drop-down menu
# in the Content > Fonts & Colors > Advanced preference panel.
#
# Set it to the value of one of the menuitems in the "selectLangs" menulist in
# http://dxr.mozilla.org/mozilla-central/source/browser/components/preferences/fonts.xul
font.language.group=x-western
# LOCALIZATION NOTE (intl.charset.detector):
# This preference controls the initial setting for the character encoding
# detector. Valid values are ja_parallel_state_machine for Japanese, ruprob
# for Russian and ukprob for Ukrainian and the empty string to turn detection
# off. The value must be empty for locales other than Japanese, Russian and
# Ukrainian.
intl.charset.detector=
# LOCALIZATION NOTE (pluralRule): Pick the appropriate plural rule for your
# language. This will determine how many plural forms of a word you will need
# to provide and in what order.
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
pluralRule=1
# LOCALIZATION NOTE (intl.menuitems.alwaysappendaccesskeys, intl.menuitems.insertseparatorbeforeaccesskeys):
# Valid values are: true, false, <empty string>
# Missing preference or empty value equals false.
intl.menuitems.alwaysappendaccesskeys=
intl.menuitems.insertseparatorbeforeaccesskeys=true
Вывод locale
:
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE=C
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=et_EE.UTF-8
LC_NAME=et_EE.UTF-8
LC_ADDRESS=et_EE.UTF-8
LC_TELEPHONE=et_EE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=et_EE.UTF-8
LC_ALL=
Вывод printenv | grep LC_
:
LC_MEASUREMENT=de_DE.UTF-8
LC_PAPER=et_EE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=et_EE.UTF-8
LC_COLLATE=C
LC_ADDRESS=et_EE.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TELEPHONE=et_EE.UTF-8
LC_IDENTIFICATION=et_EE.UTF-8
LC_TIME=en_GB.UTF-8
Вывод localectl status
:
System Locale: LANG=en_US.UTF-8
LC_NUMERIC=et_EE.UTF-8
LC_TIME=et_EE.UTF-8
LC_MONETARY=et_EE.UTF-8
LC_PAPER=et_EE.UTF-8
LC_NAME=et_EE.UTF-8
LC_ADDRESS=et_EE.UTF-8
LC_TELEPHONE=et_EE.UTF-8
LC_MEASUREMENT=et_EE.UTF-8
LC_IDENTIFICATION=et_EE.UTF-8
VC Keymap: n/a
X11 Layout: us
X11 Model: pc105
Вывод locale -a
:
C
C.UTF-8
POSIX
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
et_EE.utf8
Возможно, это также актуально, если я запускаю Firefox из терминал, я получаю следующие предупреждения:
(firefox:15865): Gtk-WARNING **: 17:27:21.499: Locale not supported by C library.
Using the fallback 'C' locale.
(/usr/lib/firefox/firefox:15933): Gtk-WARNING **: 17:27:21.873: Locale not supported by C library.
Using the fallback 'C' locale.
(/usr/lib/firefox/firefox:15982): Gtk-WARNING **: 17:27:22.569: Locale not supported by C library.
Using the fallback 'C' locale.
(/usr/lib/firefox/firefox:16024): Gtk-WARNING **: 17:27:24.441: Locale not supported by C library.
Using the fallback 'C' locale.
(/usr/lib/firefox/firefox:16152): Gtk-WARNING **: 17:27:26.382: Locale not supported by C library.
Using the fallback 'C' locale.
Я использовал немецкую локаль de_DE.UTF-8
, но она отсутствовала в выводе locale -a
(как видно из вопроса ).
Решение (спасибо @GunnarHjalmarsson) состояло в том, чтобы сгенерировать это также с помощью:
sudo locale-gen de_DE.UTF-8