Bug #80564

Broken Russian translation file for EXT:indexed_search

Added by Mathias Brodala over 2 years ago. Updated 12 months ago.

Status:
Accepted
Priority:
Must have
Assignee:
-
Target version:
-
Start date:
2017-03-30
Due date:
% Done:

0%


Description

The file Resources/Private/Language/locallang_em.xlf of EXT:indexed_search is currently broken in the Russian translation as can be seen at the end of the file:

      <trans-unit id="indexedsearch.config.indexExternalURLs" xml:space="preserve">
        <source>Index External HTML URLs: If set, links to external URLs will be indexed if they are of type "text/html".</source>
      <targetstate="translated">Индексация внешних HTML URL: если установлено, ссылки на внешние URL будут индексироваться, если они имеют тип "text/html".</target></trans-unit></trans-unit>

Thus there are two errors:

  1. <targetstate="translated"> instead of <target state="translated">
  2. </trans-unit></trans-unit> instead of </trans-unit>

Also the file cannot be downloaded from the translation server due to throwing an "Uncaught Exception".

History

#1 Updated by Xavier Perseguers 12 months ago

  • Status changed from New to Accepted

The (Pootle) file on disk is corrupted as well, and this is what happens when trying to dump database content to XLIFF:

$ pootle-manage sync_stores --overwrite --project=TYPO3.core.indexed_search --language=ru
2018-10-23 11:04:44,914 INFO Loading custom settings from '/etc/pootle/pootle.conf'...
2018-10-23 09:04:45,117 INFO Using Python PO
2018-10-23 09:04:46,019 ERROR Failed to run sync_stores over /ru/TYPO3.core.indexed_search/'s files.
Traceback (most recent call last):
  File "/opt/local/pootle/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/__init__.py", line 59, in do_translation_project
    self.handle_all_stores(tp, **options)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/sync_stores.py", line 57, in handle_all_stores
    modified_since=change_id,
  File "/opt/local/pootle/local/lib/python2.7/site-packages/pootle/apps/pootle_translationproject/models.py", line 297, in sync
    modified_since=modified_since)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py", line 1370, in sync
    disk_store = self.file.store
  File "/opt/local/pootle/local/lib/python2.7/site-packages/pootle/apps/pootle_store/fields.py", line 170, in store
    self._update_store_cache()
  File "/opt/local/pootle/local/lib/python2.7/site-packages/pootle/apps/pootle_store/fields.py", line 191, in _update_store_cache
    classes=factory_classes)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/translate/storage/factory.py", line 188, in getobject
    store = storeclass.parsefile(storefile)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/translate/storage/base.py", line 829, in parsefile
    newstore = cls.parsestring(storestring)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/translate/storage/xliff.py", line 783, in parsestring
    xliff = super(xlifffile, cls).parsestring(storestring)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/translate/storage/base.py", line 728, in parsestring
    newstore.parse(storestring)
  File "/opt/local/pootle/local/lib/python2.7/site-packages/translate/storage/lisa.py", line 341, in parse
    self.document = etree.fromstring(xml, parser).getroottree()
  File "lxml.etree.pyx", line 3103, in lxml.etree.fromstring (src/lxml/lxml.etree.c:70569)
  File "parser.pxi", line 1828, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:106403)
  File "parser.pxi", line 1716, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:105194)
  File "parser.pxi", line 1086, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:99876)
  File "parser.pxi", line 580, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:94350)
  File "parser.pxi", line 690, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:95786)
  File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:94853)
XMLSyntaxError: error parsing attribute name, line 59, column 19

Don't really know how to handle.

Also available in: Atom PDF