From 2dce5f4842be614d5cf52497b833a4f2c40d74f5 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Mon, 30 Jul 2018 10:04:14 +0200 Subject: [PATCH] Import PluralForm.jsm in Zotero.Intl. PluralForm is not used directly anywhere else. --- chrome/content/zotero/xpcom/intl.js | 2 ++ chrome/content/zotero/xpcom/zotero.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/intl.js b/chrome/content/zotero/xpcom/intl.js index 4236c994be..783891e4c7 100644 --- a/chrome/content/zotero/xpcom/intl.js +++ b/chrome/content/zotero/xpcom/intl.js @@ -30,6 +30,8 @@ Zotero.Intl = new function () { // Get settings from language pack (extracted by zotero-build/locale/merge_mozilla_files) this.init = function () { + Components.utils.import("resource://gre/modules/PluralForm.jsm"); + bundle = Services.strings.createBundle('chrome://zotero/locale/zotero.properties'); intlProps = Services.strings.createBundle('chrome://zotero/locale/mozilla/intl.properties'); diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 5e42da555e..14c4de739d 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -28,7 +28,6 @@ Components.utils.import("resource://zotero/config.js"); Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/osfile.jsm"); -Components.utils.import("resource://gre/modules/PluralForm.jsm"); Components.classes["@mozilla.org/net/osfileconstantsservice;1"] .getService(Components.interfaces.nsIOSFileConstantsService) .init();