Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/filterStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ let FilterStorage = exports.FilterStorage =
/**
* @typedef FileInfo
* @type {object}
* @property {nsIFile} file
* @property {number} index
* @property {number} lastModified
*/

Expand Down
7 changes: 2 additions & 5 deletions lib/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,10 @@ let Notification = exports.Notification =
/**
* Localizes the texts of the supplied notification.
* @param {Object} notification notification to translate
* @param {string} locale the target locale (optional, defaults to the
* application locale)
* @return {Object} the translated texts
*/
getLocalizedTexts(notification, locale)
getLocalizedTexts(notification)
{
locale = locale || Utils.appLocale;
let textKeys = ["title", "message"];
let localizedTexts = {};
for (let key of textKeys)
Expand All @@ -420,7 +417,7 @@ let Notification = exports.Notification =
if (typeof notification[key] == "string")
localizedTexts[key] = notification[key];
else
localizedTexts[key] = localize(notification[key], locale);
localizedTexts[key] = localize(notification[key], Utils.appLocale);
}
}
return localizedTexts;
Expand Down
Loading