From e475b22f1d1e9d08a788519f21ee99a75b7a0d1b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 25 Jul 2017 16:27:31 -0400 Subject: [PATCH] Add intl.accept_languages from Mozilla language packs --- chrome/content/zotero/xpcom/zotero.js | 30 +++++++++++++++++-- .../af-ZA/zotero/mozilla/intl.properties | 1 + .../locale/ar/zotero/mozilla/intl.properties | 1 + .../bg-BG/zotero/mozilla/intl.properties | 1 + .../ca-AD/zotero/mozilla/intl.properties | 1 + .../cs-CZ/zotero/mozilla/intl.properties | 1 + .../da-DK/zotero/mozilla/intl.properties | 1 + .../locale/de/zotero/mozilla/intl.properties | 1 + .../el-GR/zotero/mozilla/intl.properties | 1 + .../en-US/zotero/mozilla/intl.properties | 1 + .../es-ES/zotero/mozilla/intl.properties | 1 + .../et-EE/zotero/mozilla/intl.properties | 1 + .../eu-ES/zotero/mozilla/intl.properties | 1 + .../locale/fa/zotero/mozilla/intl.properties | 1 + .../fi-FI/zotero/mozilla/intl.properties | 1 + .../fr-FR/zotero/mozilla/intl.properties | 1 + .../gl-ES/zotero/mozilla/intl.properties | 1 + .../he-IL/zotero/mozilla/intl.properties | 1 + .../hr-HR/zotero/mozilla/intl.properties | 1 + .../hu-HU/zotero/mozilla/intl.properties | 1 + .../id-ID/zotero/mozilla/intl.properties | 1 + .../is-IS/zotero/mozilla/intl.properties | 1 + .../it-IT/zotero/mozilla/intl.properties | 1 + .../ja-JP/zotero/mozilla/intl.properties | 1 + .../locale/km/zotero/mozilla/intl.properties | 1 + .../ko-KR/zotero/mozilla/intl.properties | 1 + .../lt-LT/zotero/mozilla/intl.properties | 1 + .../mn-MN/zotero/mozilla/intl.properties | 1 + .../nb-NO/zotero/mozilla/intl.properties | 1 + .../nl-NL/zotero/mozilla/intl.properties | 1 + .../nn-NO/zotero/mozilla/intl.properties | 1 + .../pl-PL/zotero/mozilla/intl.properties | 1 + .../pt-BR/zotero/mozilla/intl.properties | 1 + .../pt-PT/zotero/mozilla/intl.properties | 1 + .../ro-RO/zotero/mozilla/intl.properties | 1 + .../ru-RU/zotero/mozilla/intl.properties | 1 + .../sk-SK/zotero/mozilla/intl.properties | 1 + .../sl-SI/zotero/mozilla/intl.properties | 1 + .../sr-RS/zotero/mozilla/intl.properties | 1 + .../sv-SE/zotero/mozilla/intl.properties | 1 + .../th-TH/zotero/mozilla/intl.properties | 1 + .../tr-TR/zotero/mozilla/intl.properties | 1 + .../uk-UA/zotero/mozilla/intl.properties | 1 + .../vi-VN/zotero/mozilla/intl.properties | 1 + .../zh-CN/zotero/mozilla/intl.properties | 1 + .../zh-TW/zotero/mozilla/intl.properties | 1 + 46 files changed, 72 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 51e30ae549..3da407126e 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -224,12 +224,36 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); // Browser Zotero.browser = "g"; - // Get resolved locale + // + // Get settings from language pack (extracted by zotero-build/locale/merge_mozilla_files) + // + function getIntlProp(name, fallback = null) { + try { + return intlProps.GetStringFromName(name); + } + catch (e) { + Zotero.logError(`Couldn't load ${name} from intl.properties`); + return fallback; + } + } + function setOrClearIntlPref(name, type) { + var val = getIntlProp(name); + if (val !== null) { + if (type == 'boolean') { + val = val == 'true'; + } + Zotero.Prefs.set(name, val, 1); + } + else { + Zotero.Prefs.clear(name, 1); + } + } var intlProps = Services.strings.createBundle("chrome://zotero/locale/mozilla/intl.properties"); - this.locale = intlProps.GetStringFromName("general.useragent.locale"); - let [get, numForms] = PluralForm.makeGetter(intlProps.GetStringFromName("pluralRule")); + this.locale = getIntlProp('general.useragent.locale', 'en-US'); + let [get, numForms] = PluralForm.makeGetter(parseInt(getIntlProp('pluralRule', 1))); this.pluralFormGet = get; this.pluralFormNumForms = numForms; + setOrClearIntlPref('intl.accept_languages', 'string'); // Also load the brand as appName var brandBundle = Services.strings.createBundle("chrome://branding/locale/brand.properties"); diff --git a/chrome/locale/af-ZA/zotero/mozilla/intl.properties b/chrome/locale/af-ZA/zotero/mozilla/intl.properties index 1144f6c223..38bf515da8 100644 --- a/chrome/locale/af-ZA/zotero/mozilla/intl.properties +++ b/chrome/locale/af-ZA/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=af-ZA +intl.accept_languages=af, en-ZA, en-GB, en-US, en pluralRule=1 diff --git a/chrome/locale/ar/zotero/mozilla/intl.properties b/chrome/locale/ar/zotero/mozilla/intl.properties index 2cbb529e58..7e0d579c35 100644 --- a/chrome/locale/ar/zotero/mozilla/intl.properties +++ b/chrome/locale/ar/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=ar +intl.accept_languages=ar, en-us, en pluralRule=12 diff --git a/chrome/locale/bg-BG/zotero/mozilla/intl.properties b/chrome/locale/bg-BG/zotero/mozilla/intl.properties index b5594341b3..fd1b87537b 100644 --- a/chrome/locale/bg-BG/zotero/mozilla/intl.properties +++ b/chrome/locale/bg-BG/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=bg-BG +intl.accept_languages=bg, en-US, en pluralRule=1 diff --git a/chrome/locale/ca-AD/zotero/mozilla/intl.properties b/chrome/locale/ca-AD/zotero/mozilla/intl.properties index 649ea02a4b..6707a43f49 100644 --- a/chrome/locale/ca-AD/zotero/mozilla/intl.properties +++ b/chrome/locale/ca-AD/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=ca-AD +intl.accept_languages=ca, en-us, en pluralRule=1 diff --git a/chrome/locale/cs-CZ/zotero/mozilla/intl.properties b/chrome/locale/cs-CZ/zotero/mozilla/intl.properties index dc309c9a80..e403a704a4 100644 --- a/chrome/locale/cs-CZ/zotero/mozilla/intl.properties +++ b/chrome/locale/cs-CZ/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=cs-CZ pluralRule=8 +intl.accept_languages=cs, en-us, en diff --git a/chrome/locale/da-DK/zotero/mozilla/intl.properties b/chrome/locale/da-DK/zotero/mozilla/intl.properties index 4ba3bfb307..29b8550aa1 100644 --- a/chrome/locale/da-DK/zotero/mozilla/intl.properties +++ b/chrome/locale/da-DK/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=da-DK pluralRule=1 +intl.accept_languages=da, en-us, en diff --git a/chrome/locale/de/zotero/mozilla/intl.properties b/chrome/locale/de/zotero/mozilla/intl.properties index c70ac2f739..2e2a063a54 100644 --- a/chrome/locale/de/zotero/mozilla/intl.properties +++ b/chrome/locale/de/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=de +intl.accept_languages=de, en-US, en pluralRule=1 diff --git a/chrome/locale/el-GR/zotero/mozilla/intl.properties b/chrome/locale/el-GR/zotero/mozilla/intl.properties index 5af03b6698..d14ef1ae67 100644 --- a/chrome/locale/el-GR/zotero/mozilla/intl.properties +++ b/chrome/locale/el-GR/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=el-GR +intl.accept_languages=el-GR, el, en-US, en pluralRule=1 diff --git a/chrome/locale/en-US/zotero/mozilla/intl.properties b/chrome/locale/en-US/zotero/mozilla/intl.properties index 2ed2374872..cd8ec221a9 100644 --- a/chrome/locale/en-US/zotero/mozilla/intl.properties +++ b/chrome/locale/en-US/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=en-US +intl.accept_languages=en-US, en pluralRule=1 diff --git a/chrome/locale/es-ES/zotero/mozilla/intl.properties b/chrome/locale/es-ES/zotero/mozilla/intl.properties index f4d91da74d..130cd6697b 100644 --- a/chrome/locale/es-ES/zotero/mozilla/intl.properties +++ b/chrome/locale/es-ES/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale =es-ES +intl.accept_languages = es-ES, es, en-US, en pluralRule = 1 diff --git a/chrome/locale/et-EE/zotero/mozilla/intl.properties b/chrome/locale/et-EE/zotero/mozilla/intl.properties index 4aff8429f4..8d6770d01b 100644 --- a/chrome/locale/et-EE/zotero/mozilla/intl.properties +++ b/chrome/locale/et-EE/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=et-EE pluralRule=1 +intl.accept_languages=et, et-ee, en-us, en diff --git a/chrome/locale/eu-ES/zotero/mozilla/intl.properties b/chrome/locale/eu-ES/zotero/mozilla/intl.properties index 9f6a533ad4..a49355dc99 100644 --- a/chrome/locale/eu-ES/zotero/mozilla/intl.properties +++ b/chrome/locale/eu-ES/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=eu-ES +intl.accept_languages=eu, en-us, en pluralRule=1 diff --git a/chrome/locale/fa/zotero/mozilla/intl.properties b/chrome/locale/fa/zotero/mozilla/intl.properties index e296712dbc..c5f4b7dd84 100644 --- a/chrome/locale/fa/zotero/mozilla/intl.properties +++ b/chrome/locale/fa/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=fa +intl.accept_languages=fa-ir, fa, en-us, en pluralRule=0 diff --git a/chrome/locale/fi-FI/zotero/mozilla/intl.properties b/chrome/locale/fi-FI/zotero/mozilla/intl.properties index 113a31c499..8668c637b4 100644 --- a/chrome/locale/fi-FI/zotero/mozilla/intl.properties +++ b/chrome/locale/fi-FI/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=fi-FI +intl.accept_languages=fi-fi, fi, en-us, en pluralRule=1 diff --git a/chrome/locale/fr-FR/zotero/mozilla/intl.properties b/chrome/locale/fr-FR/zotero/mozilla/intl.properties index 3d6b46dc90..d937a4ceb6 100644 --- a/chrome/locale/fr-FR/zotero/mozilla/intl.properties +++ b/chrome/locale/fr-FR/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=fr-FR pluralRule=2 +intl.accept_languages=fr, fr-fr, en-us, en diff --git a/chrome/locale/gl-ES/zotero/mozilla/intl.properties b/chrome/locale/gl-ES/zotero/mozilla/intl.properties index 2ed2374872..cd8ec221a9 100644 --- a/chrome/locale/gl-ES/zotero/mozilla/intl.properties +++ b/chrome/locale/gl-ES/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=en-US +intl.accept_languages=en-US, en pluralRule=1 diff --git a/chrome/locale/he-IL/zotero/mozilla/intl.properties b/chrome/locale/he-IL/zotero/mozilla/intl.properties index 1aca412dff..bf7fe4d6f3 100644 --- a/chrome/locale/he-IL/zotero/mozilla/intl.properties +++ b/chrome/locale/he-IL/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=he-IL +intl.accept_languages=he, he-IL, en-US, en pluralRule=1 diff --git a/chrome/locale/hr-HR/zotero/mozilla/intl.properties b/chrome/locale/hr-HR/zotero/mozilla/intl.properties index 5d49e39e29..b7bb04c028 100644 --- a/chrome/locale/hr-HR/zotero/mozilla/intl.properties +++ b/chrome/locale/hr-HR/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=hr-HR +intl.accept_languages=hr-hr, hr, en-us, en pluralRule=7 diff --git a/chrome/locale/hu-HU/zotero/mozilla/intl.properties b/chrome/locale/hu-HU/zotero/mozilla/intl.properties index 182c675bfc..be3f7ff249 100644 --- a/chrome/locale/hu-HU/zotero/mozilla/intl.properties +++ b/chrome/locale/hu-HU/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=hu-HU +intl.accept_languages=hu-hu, hu, en-US, en pluralRule=1 diff --git a/chrome/locale/id-ID/zotero/mozilla/intl.properties b/chrome/locale/id-ID/zotero/mozilla/intl.properties index 0fdd2d46e8..ba4d8c6f5b 100644 --- a/chrome/locale/id-ID/zotero/mozilla/intl.properties +++ b/chrome/locale/id-ID/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=id-ID +intl.accept_languages=id, en-us, en pluralRule=0 diff --git a/chrome/locale/is-IS/zotero/mozilla/intl.properties b/chrome/locale/is-IS/zotero/mozilla/intl.properties index 2ab50500b9..9a911c46d8 100644 --- a/chrome/locale/is-IS/zotero/mozilla/intl.properties +++ b/chrome/locale/is-IS/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=is-IS +intl.accept_languages=is, en-us, en pluralRule=15 diff --git a/chrome/locale/it-IT/zotero/mozilla/intl.properties b/chrome/locale/it-IT/zotero/mozilla/intl.properties index 97caf5aaa7..5634f8291d 100644 --- a/chrome/locale/it-IT/zotero/mozilla/intl.properties +++ b/chrome/locale/it-IT/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale =it-IT +intl.accept_languages = it-IT, it, en-US, en pluralRule = 1 diff --git a/chrome/locale/ja-JP/zotero/mozilla/intl.properties b/chrome/locale/ja-JP/zotero/mozilla/intl.properties index 12dc41cd3b..241ce55d57 100644 --- a/chrome/locale/ja-JP/zotero/mozilla/intl.properties +++ b/chrome/locale/ja-JP/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale =ja-JP +intl.accept_languages = ja, en-us, en pluralRule = 0 diff --git a/chrome/locale/km/zotero/mozilla/intl.properties b/chrome/locale/km/zotero/mozilla/intl.properties index 5d02ea2558..15443e23d9 100644 --- a/chrome/locale/km/zotero/mozilla/intl.properties +++ b/chrome/locale/km/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=km +intl.accept_languages=km, en-US, en pluralRule=1 diff --git a/chrome/locale/ko-KR/zotero/mozilla/intl.properties b/chrome/locale/ko-KR/zotero/mozilla/intl.properties index a32cdaf831..c08282d0ed 100644 --- a/chrome/locale/ko-KR/zotero/mozilla/intl.properties +++ b/chrome/locale/ko-KR/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=ko-KR +intl.accept_languages=ko-kr, ko, en-us, en pluralRule=0 diff --git a/chrome/locale/lt-LT/zotero/mozilla/intl.properties b/chrome/locale/lt-LT/zotero/mozilla/intl.properties index 5147c10d51..bb153953a5 100644 --- a/chrome/locale/lt-LT/zotero/mozilla/intl.properties +++ b/chrome/locale/lt-LT/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=lt-LT +intl.accept_languages=lt, en-us, en, ru, pl pluralRule=6 diff --git a/chrome/locale/mn-MN/zotero/mozilla/intl.properties b/chrome/locale/mn-MN/zotero/mozilla/intl.properties index 2ed2374872..cd8ec221a9 100644 --- a/chrome/locale/mn-MN/zotero/mozilla/intl.properties +++ b/chrome/locale/mn-MN/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=en-US +intl.accept_languages=en-US, en pluralRule=1 diff --git a/chrome/locale/nb-NO/zotero/mozilla/intl.properties b/chrome/locale/nb-NO/zotero/mozilla/intl.properties index 19aaf41ef7..feb857e7d4 100644 --- a/chrome/locale/nb-NO/zotero/mozilla/intl.properties +++ b/chrome/locale/nb-NO/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=nb-NO +intl.accept_languages=nb-no, nb, no-no, no, nn-no, nn, en-us, en pluralRule=1 diff --git a/chrome/locale/nl-NL/zotero/mozilla/intl.properties b/chrome/locale/nl-NL/zotero/mozilla/intl.properties index cc11e51b2f..1c236fc048 100644 --- a/chrome/locale/nl-NL/zotero/mozilla/intl.properties +++ b/chrome/locale/nl-NL/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=nl-NL +intl.accept_languages=nl, en-US, en pluralRule=1 diff --git a/chrome/locale/nn-NO/zotero/mozilla/intl.properties b/chrome/locale/nn-NO/zotero/mozilla/intl.properties index df7764dcbe..9a3d52436f 100644 --- a/chrome/locale/nn-NO/zotero/mozilla/intl.properties +++ b/chrome/locale/nn-NO/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=nn-NO +intl.accept_languages=nn-no, nn, no-no, no, nb-no, nb, en-us, en pluralRule=1 diff --git a/chrome/locale/pl-PL/zotero/mozilla/intl.properties b/chrome/locale/pl-PL/zotero/mozilla/intl.properties index b9c6bb7205..4b8067eb82 100644 --- a/chrome/locale/pl-PL/zotero/mozilla/intl.properties +++ b/chrome/locale/pl-PL/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=pl-PL +intl.accept_languages=pl, en-US, en pluralRule=9 diff --git a/chrome/locale/pt-BR/zotero/mozilla/intl.properties b/chrome/locale/pt-BR/zotero/mozilla/intl.properties index a38e676bf3..2ae5d08d8e 100644 --- a/chrome/locale/pt-BR/zotero/mozilla/intl.properties +++ b/chrome/locale/pt-BR/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=pt-BR +intl.accept_languages=pt-BR, pt, en-US, en pluralRule=1 diff --git a/chrome/locale/pt-PT/zotero/mozilla/intl.properties b/chrome/locale/pt-PT/zotero/mozilla/intl.properties index 76d1998a76..58d02f8ea6 100644 --- a/chrome/locale/pt-PT/zotero/mozilla/intl.properties +++ b/chrome/locale/pt-PT/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=pt-PT +intl.accept_languages=pt-pt, pt, en, en-us pluralRule=1 diff --git a/chrome/locale/ro-RO/zotero/mozilla/intl.properties b/chrome/locale/ro-RO/zotero/mozilla/intl.properties index f2890b47fe..62082103a3 100644 --- a/chrome/locale/ro-RO/zotero/mozilla/intl.properties +++ b/chrome/locale/ro-RO/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=ro-RO pluralRule=1 +intl.accept_languages=ro-ro, ro, en-us, en-gb, en diff --git a/chrome/locale/ru-RU/zotero/mozilla/intl.properties b/chrome/locale/ru-RU/zotero/mozilla/intl.properties index b50bbc29c3..41a747963c 100644 --- a/chrome/locale/ru-RU/zotero/mozilla/intl.properties +++ b/chrome/locale/ru-RU/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale =ru-RU +intl.accept_languages = ru-RU, ru, en-US, en pluralRule = 7 diff --git a/chrome/locale/sk-SK/zotero/mozilla/intl.properties b/chrome/locale/sk-SK/zotero/mozilla/intl.properties index cd9818a25a..ec44ec130c 100644 --- a/chrome/locale/sk-SK/zotero/mozilla/intl.properties +++ b/chrome/locale/sk-SK/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=sk-SK +intl.accept_languages=sk, cs, en-US, en pluralRule=8 diff --git a/chrome/locale/sl-SI/zotero/mozilla/intl.properties b/chrome/locale/sl-SI/zotero/mozilla/intl.properties index f49a46998c..7a3f029bc0 100644 --- a/chrome/locale/sl-SI/zotero/mozilla/intl.properties +++ b/chrome/locale/sl-SI/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=sl-SI +intl.accept_languages=sl, en-gb, en pluralRule=10 diff --git a/chrome/locale/sr-RS/zotero/mozilla/intl.properties b/chrome/locale/sr-RS/zotero/mozilla/intl.properties index 073efa72eb..9ced27e82a 100644 --- a/chrome/locale/sr-RS/zotero/mozilla/intl.properties +++ b/chrome/locale/sr-RS/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=sr-RS +intl.accept_languages=sr, sr-rs, sr-cs, en-us, en pluralRule=7 diff --git a/chrome/locale/sv-SE/zotero/mozilla/intl.properties b/chrome/locale/sv-SE/zotero/mozilla/intl.properties index 92aecf1036..3e412c4917 100644 --- a/chrome/locale/sv-SE/zotero/mozilla/intl.properties +++ b/chrome/locale/sv-SE/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=sv-SE +intl.accept_languages=sv-SE, sv, en-US, en pluralRule=1 diff --git a/chrome/locale/th-TH/zotero/mozilla/intl.properties b/chrome/locale/th-TH/zotero/mozilla/intl.properties index b47e8e41f0..f88efdd159 100644 --- a/chrome/locale/th-TH/zotero/mozilla/intl.properties +++ b/chrome/locale/th-TH/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=th-TH +intl.accept_languages=th-th, th, en-us, en-gb, en pluralRule=0 diff --git a/chrome/locale/tr-TR/zotero/mozilla/intl.properties b/chrome/locale/tr-TR/zotero/mozilla/intl.properties index 7380c62183..555379f7f1 100644 --- a/chrome/locale/tr-TR/zotero/mozilla/intl.properties +++ b/chrome/locale/tr-TR/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=tr-TR +intl.accept_languages=tr-TR, tr, en-US, en pluralRule=0 diff --git a/chrome/locale/uk-UA/zotero/mozilla/intl.properties b/chrome/locale/uk-UA/zotero/mozilla/intl.properties index 451daafbef..3afe1cc26f 100644 --- a/chrome/locale/uk-UA/zotero/mozilla/intl.properties +++ b/chrome/locale/uk-UA/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=uk-UA +intl.accept_languages=uk, ru, en-us, en pluralRule=7 diff --git a/chrome/locale/vi-VN/zotero/mozilla/intl.properties b/chrome/locale/vi-VN/zotero/mozilla/intl.properties index 7bd8ac6465..9c8184068c 100644 --- a/chrome/locale/vi-VN/zotero/mozilla/intl.properties +++ b/chrome/locale/vi-VN/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=vi-VN +intl.accept_languages=vi-vn, vi, en-us, en pluralRule=1 diff --git a/chrome/locale/zh-CN/zotero/mozilla/intl.properties b/chrome/locale/zh-CN/zotero/mozilla/intl.properties index 98762d07ed..082e59dc31 100644 --- a/chrome/locale/zh-CN/zotero/mozilla/intl.properties +++ b/chrome/locale/zh-CN/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=zh-CN +intl.accept_languages=zh-cn, zh, en-us, en pluralRule=1 diff --git a/chrome/locale/zh-TW/zotero/mozilla/intl.properties b/chrome/locale/zh-TW/zotero/mozilla/intl.properties index fd4ad32ae3..9dbdd01fb1 100644 --- a/chrome/locale/zh-TW/zotero/mozilla/intl.properties +++ b/chrome/locale/zh-TW/zotero/mozilla/intl.properties @@ -1,2 +1,3 @@ general.useragent.locale=zh-TW +intl.accept_languages=zh-tw, zh, en-us, en pluralRule=0