Closed JSteunou closed 10 years ago
Ah, I see the use case for html in the strings, thanks for the explanation. Looks good, merging.
Oh, actually, just noticed something, commenting.
Looks good, just a request for that extra test for the mixed quotes case.
Just added it :)
I even have the luxe to get the line, column and filename for the error message!
\o/ awesome :) merging
Should fix issue #27
This issue comes when in handlebars you have this kind of thing
It's a weird case where HTML is included in string to translate because you want another typo or font size for the variable but in a big long sentence. As you want to preserve localization, because in some other language the variable can be set in another place in the sentence, you include it in the sentence to translate.
So... double quote in the sentence...
And the hbs extractors transforms it to JS like function before calling execution in gettext context
See how double quote ruins everything.
This PR fixes it by choosing which quote to use, single or double.