DirkPersky / typo3-dp_cookieconsent

TYPO3 Extension: Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)
GNU Affero General Public License v3.0
32 stars 27 forks source link

Error in spanish translation file #124

Closed naturefund-falk closed 1 year ago

naturefund-falk commented 1 year ago

The translation file es.locallang.xlf contains an error causing an xml parsing error in typo3 log InvalidXmlFileException: The path provided does not point to an exist ing and accessible well-formed XML file. Reason: Attribute target-language redefined in .../public/typo3conf/ext/dp_cookieconsent/Resources/Private/Language/es.locallang.xlf, line 9, in file .../public/typo3/sysext/core/Classes/Localization/Parser/AbstractXmlParser.php:122 - {"exception":"TYPO3\\CMS\\Core\\Localization\\Exception\\InvalidXmlFileException: The path provided does not point to an existing and accessible well-formed XML file. Reason: Attribute target-language redefined\n in .../public/typo3conf/ext/dp_cookieconsent/Resources/Private/Language/es.locallang.xlf, line 9

The main reason is the double definition of the target-language attribute in file tag. I could make a pr for this, but i dont know if there is some kind of automatic code generation for the translation files.

naturefund-falk commented 1 year ago

I looked through the other language files, and the same issue is happening on the french translation.

DirkPersky commented 1 year ago

Is fixed