zaach / jsxgettext

Extract gettext calls from JavaScript, EJS, and other template formats.
Mozilla Public License 2.0
105 stars 56 forks source link

Add fuzzy flag to the header #109

Closed tagoh closed 7 years ago

tagoh commented 8 years ago

to avoid showing up the header strings mistakenly when the original string is empty.

BYK commented 7 years ago

Hey, sorry for the long wait. Can you explain the issue you are trying to solve a bit more?

tagoh commented 7 years ago

Sure. basically there are no different between a header which contains the project id, the targeted language, the content type and so on, and other translations in its format. even though the header are put as the empty msgid, it is still referrable with "" unless it is flagged as fuzzy. so the original getttext to generate a POT file behaves to add a fuzzy flag to avoid such sutiation as a workaround of the defect of the format.

tagoh commented 7 years ago

Oh, and inherits flags on the header to POs as well. translators and all of the web translation platforms doesn't touch it.

BYK commented 7 years ago

Awesome, thank you!

tagoh commented 7 years ago

Thank you!