Closed
Bug 548713
Opened 14 years ago
Closed 14 years ago
fix _() when context isn't found
Categories
(addons.mozilla.org Graveyard :: Code Quality, defect)
addons.mozilla.org Graveyard
Code Quality
Tracking
(Not tracked)
RESOLVED
FIXED
5.8
People
(Reporter: clouserw, Assigned: clouserw)
Details
diff --git a/lib/l10n/tests/tests.py b/lib/l10n/tests/tests.py index 4da6c12..43a4508 100644 --- a/lib/l10n/tests/tests.py +++ b/lib/l10n/tests/tests.py @@ -44,6 +44,12 @@ def test_ugettext(): @with_setup(setup, teardown) +def test_ugettext_not_found(): + eq_('yo', _('yo')) + eq_('yo', _('yo', 'context')) + + +@with_setup(setup, teardown) def test_ungettext(): # No context a_singular = " one\t\r\n\nlight \n\n!\n"
Assignee | ||
Comment 1•14 years ago
|
||
http://github.com/jbalogh/zamboni/commit/f62f1870b9995b9e327163337153f5fcf3374612
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•