Add Zotero.intl namespace

Move `Zotero.getString()` and intl init code to `Zotero.intl` to make
it easier to re-use.

Link `Zotero.getString()` to `Zotero.intl.getString()`.

Do not expose `getStringFromBundle`, `pluralFormGet`, and
`pluralFormNumForms` because they are not used.
This commit is contained in:
Sylvester Keil 2018-07-28 18:01:46 +02:00
parent e8cd4c9338
commit 38166d4e05
No known key found for this signature in database
GPG key ID: 878933BCEAB25A10
3 changed files with 137 additions and 92 deletions

View file

@ -33,6 +33,7 @@ const Ci = Components.interfaces;
/** XPCOM files to be loaded for all modes **/
const xpcomFilesAll = [
'zotero',
'intl',
'prefs',
'dataDirectory',
'date',