Opened 4 years ago

Last modified 2 years ago

#2709 closed change

Remove legacy failsafe code form Utils.getString — at Initial Version

Reported by: sebastian Assignee:
Priority: P4 Milestone: Adblock-Plus-1.13-for-Chrome-Opera
Module: Platform Keywords: goodfirstbug
Cc: Blocked By:
Blocking: Platform: Unknown
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

https://codereview.adblockplus.org/29366863/

Description

Background

The function Utils.getString() returns the translation for strings imported from Adblock Plus for Firefox. Therefore it relies on ext.i18n.getMessage, and simply returns the message id, if ext.i18n isn't available. However, ext.i18n is always available (now), and this check is obsolete.

What to change

Remove the check for ext.i18n from Utils.getString in lib/utils.js.

Change History (0)

Note: See TracTickets for help on using tickets.