From fa95de396d3f560bcdde74e0b9957fce5bdd4f35 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 20 Dec 2021 01:19:07 -0500 Subject: [PATCH] Add en-AU and en-NZ as available locales Addresses #2268, but better support for other en-* locales will require other changes, including `timeStyle` support in `Intl.DateTimeFormat` in a newer Firefox version, which will let us use a custom `DateTimeFormat` for dates instead of relying on `toLocaleString()`. --- chrome/content/zotero/xpcom/locale.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/locale.js b/chrome/content/zotero/xpcom/locale.js index bb4a649ecb..b0588fa93c 100644 --- a/chrome/content/zotero/xpcom/locale.js +++ b/chrome/content/zotero/xpcom/locale.js @@ -1,6 +1,7 @@ Zotero.Locale = { /** - * Keep this up to date with chrome.manifest and zotero-build/dictionaries/build-dictionaries + * Keep this up to date with zotero-standalone-build:assets/multilocale.txt, + * zotero-build/dictionaries/build-dictionaries, and possibly chrome.manifest * * Names from https://addons.mozilla.org/en-US/firefox/language-tools/ */ @@ -12,9 +13,11 @@ Zotero.Locale = { 'cs-CZ': 'Čeština', 'da-DK': 'Dansk', 'de': 'Deutsch', + 'en-AU': 'English (Australian)', 'en-CA': 'English (Canada)', 'en-US': 'English', 'en-GB': 'English (UK)', + 'en-NZ': 'English (New Zealand)', 'es-ES': 'Español', 'et-EE': 'Eesti keel', 'eu-ES': 'Euskara',