mozilla-l10n/langchecker

Issue with translations starting with "#"

TheoChevalier opened this issue · 2 comments

I don't think it's a bug that we can fix (it would invalidate all the assumptions that we make when parsing the file), it's a known limitation of the format and there's not much that we can do about it.

Also note that we are not the only parser for this format out there (Pootle, Pontoon, Bedrock), and this would be read as a comment. You can argue that this should happen only with snippets, but the parser change would be all over the place.

We have similar limitations in .properties (you can't use ; in a plural form).

I think you need to work around this limitation, adding a special character at the beginning (or a space) would be enough.

OK, adding a space ignore these strings completely and throws errors. We need a workaround :-\