Open mtub opened 7 years ago
The blank comes from registry/locale.xml
in the plugin repo, just FYI. More of the header stuff could stand to be made into variables rather than taken directly from the blank.
See also https://github.com/ajnyga/disqus/pull/4 for an example of such cleanup, which would make more sense to do it correctly in the translator plugin in the first place.
Since this results in many extra hours of work to track the errors introduced by the plugin, I would really welcome a fix for this, @asmecher.
When the translator plugin creates new files, some of the XML file header lines differ from the en_US original file (at least with plugin translations):
This results in us getting translations that need unnecessary cleanup, because at least the dtd error has to be removed.
To verify:
head locale/en_US/locale.xml
head locale/xx_XX/locale.xml
Example
en_US
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE locale SYSTEM "../../../../../lib/pkp/dtd/locale.dtd">
`
<!--newly created de_DE file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE locale SYSTEM "../../../../lib/pkp/dtd/locale.dtd">
`
<!--