Closed Bug 861163 Opened 13 years ago Closed 13 years ago

gettext errors at extraction caused by empty gettext calls in a template

Categories

(www.mozilla.org :: Pages & Content, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pascalc|PTO, Unassigned)

Details

./manage.py l10n_extract generates errors: apps/styleguide/templates/styleguide/products/firefox-os-action-icons.html /home/pascalc/repos/github/bedrock/apps/styleguide/templates/styleguide/products/firefox-os-action-icons.html:201: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. /home/pascalc/repos/github/bedrock/apps/styleguide/templates/styleguide/products/firefox-os-action-icons.html:205: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. etc. This is because there are empty l10n calls in the template such as: alt="{{ _('' )}}" And gettext doesn't like that.
Commits pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/f2548d33a5978951b5d43c61689c291ee4095b36 Bug 861163 - gettext errors at extraction caused by empty gettext calls https://github.com/mozilla/bedrock/commit/c70de184682ea3c551101435102c50369d5f2bdd Merge pull request #772 from pascalchevrel/bug-861163_fix_gettext_extraction_error_messages Bug 861163 - gettext errors at extraction caused by empty gettext calls
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.