diff --git a/chrome/content/zotero/preferences/preferences_advanced.js b/chrome/content/zotero/preferences/preferences_advanced.js index 53767cd9d7..4dad20253a 100644 --- a/chrome/content/zotero/preferences/preferences_advanced.js +++ b/chrome/content/zotero/preferences/preferences_advanced.js @@ -627,7 +627,7 @@ Zotero_Preferences.Advanced = { }, onLocaleChange: function () { - var requestedLocale = Services.locale.getRequestedLocale(); + var requestedLocale = Services.locale.requestedLocale; var menu = document.getElementById('locale-menu'); if (menu.value == 'automatic') { @@ -636,12 +636,12 @@ Zotero_Preferences.Advanced = { var changed = requestedLocale && requestedLocale == Zotero.locale && menu.label != this._getAutomaticLocaleMenuLabel(); - Services.locale.setRequestedLocales(null); + Services.locale.requestedLocales = null; } else { // Changed if moving to a locale other than the current one var changed = requestedLocale != menu.value - Services.locale.setRequestedLocales([menu.value]); + Services.locale.requestedLocales = [menu.value]; } if (!changed) { diff --git a/chrome/content/zotero/xpcom/intl.js b/chrome/content/zotero/xpcom/intl.js index ee4fb3b4ba..a09560ae19 100644 --- a/chrome/content/zotero/xpcom/intl.js +++ b/chrome/content/zotero/xpcom/intl.js @@ -38,7 +38,7 @@ Zotero.Intl = new function () { let restart = false; if (prevMatchOS === false && prevLocale) { try { - Services.locale.setRequestedLocales([prevLocale]); + Services.locale.requestedLocales = [prevLocale]; restart = true; } catch (e) { diff --git a/test/tests/utilities_internalTest.js b/test/tests/utilities_internalTest.js index 2e27ec6470..ba1fbea59d 100644 --- a/test/tests/utilities_internalTest.js +++ b/test/tests/utilities_internalTest.js @@ -397,7 +397,7 @@ describe("Zotero.Utilities.Internal", function () { var availableLocales; before(function () { - availableLocales = Services.locale.getAvailableLocales(); + availableLocales = Services.locale.availableLocales; }); function resolve(locale) {