WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.63k stars 1.02k forks source link

ParseException found 'é' #4066

Closed solymi closed 4 years ago

solymi commented 4 years ago

We got this error after update from 4.0.4 to 4.1

Request Method: POST

http://weblate.prod.exc.hu/translate/282-2020/specifcation-names/hr/?q=has%3Acheck&offset=1 3.0.7 ParseException Expected end of text, found 'é' (at char 6), (line:1, col:7) /usr/local/lib/python3.7/dist-packages/pyparsing.py in parseImpl, line 3814 /usr/bin/uwsgi-core 3.7.3 ['/usr/local/lib/python3.7/dist-packages/git/ext/gitdb', '/', '/usr/local/lib/python3.7/dist-packages/', '.', '', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/app/data/python', '/usr/lib/python3/dist-packages', '/usr/local/lib/python3.7/dist-packages/gitdb/ext/smmap']

Additional context EXAMPLE PO FILE

: specification_template_translation:7

msgid "Akkumulátor töltő" msgstr "Puunjač za baterije"

: specification_template_translation:24

msgid "Hálókártya" msgstr "Mrežna kartica"

: specification_template_translation:31

msgid "Egér" msgstr "Miš"

: specification_template_translation:33

msgid "Billentyűzet" msgstr "Tipkovnica"

: specification_template_translation:43

msgid "Rendszerhűtő" msgstr "Hladnjak"

: specification_template_translation:44

msgid "Memóriamodul" msgstr "Memorijski modul"

: specification_template_translation:45

msgid "Tápegység" msgstr "Napajanje"

nijel commented 4 years ago

The parser is invoked on type flags in the PO file, can you please look for the lines starting with #, there and post them here?

solymi commented 4 years ago

: specification_template_translation:4;0

, Memóriakártya

msgid "Sebesség" msgstr ""

: specification_template_translation:4;1

, Memóriakártya

msgid "Általános" msgstr ""

: specification_template_translation:5;0

, Akkumulátor

msgid "Általános" msgstr ""

: specification_template_translation:9;1

, Táskák, tokok, objektívtartók

nijel commented 4 years ago

Any reason for using flags non-conforming with Gettext? Still Weblate should not crash on that...

github-actions[bot] commented 4 years ago

Thank you for your report, the issue you have reported has just been fixed.