Cropster / ember-l10n

A GNU gettext based localization workflow for Ember
MIT License
15 stars 7 forks source link

Some message ids are ignored #2

Closed mydea closed 6 years ago

mydea commented 8 years ago

The following string: {{t '<No Name'}} leads to an empty string. {{t '< No Name >'}} works, though. Note that for this case, the string was not in the en.json file yet.

arm1n commented 8 years ago

I guess that this is caused by the regex of the xgettext parser interpreting < and > as HTML tags. At the moment I don't know how to implement a meaningful fix for this issue.

arm1n commented 6 years ago

Closing this as it seems to be gone after doing a quick test run with ember l10n:extract due to the update from xgettext-parser from 2.6.0 to 3.4.0 in latest version.

// app/templates/application.hbs
{{t '<No Name'}}
#: app/templates/application.l10n.hbs:1
msgid "<No Name"
msgstr ""