Additional locale service updates for Firefox 54 compatibility
Follow-up to 0ac37ab65a
This commit is contained in:
parent
7fc188b172
commit
d5a8a3420d
5 changed files with 42 additions and 18 deletions
|
@ -390,10 +390,15 @@ function ZoteroService() {
|
|||
let quitStr = "Quit";
|
||||
let checkForUpdateStr = "Check for Update";
|
||||
try {
|
||||
let appLocale;
|
||||
if (Services.locale.getAppLocale) {
|
||||
appLocale = Services.locale.getAppLocale();
|
||||
}
|
||||
// Fx <=53
|
||||
else {
|
||||
appLocale = Services.locale.getApplicationLocale();
|
||||
}
|
||||
let src = 'chrome://zotero/locale/zotero.properties';
|
||||
let localeService = Components.classes['@mozilla.org/intl/nslocaleservice;1']
|
||||
.getService(Components.interfaces.nsILocaleService);
|
||||
let appLocale = localeService.getApplicationLocale();
|
||||
let stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]
|
||||
.getService(Components.interfaces.nsIStringBundleService);
|
||||
let stringBundle = stringBundleService.createBundle(src, appLocale);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue