This is a bug in Passolo Add-in Text Parser?

I have an error while parsing the following text file and can not parsing all its contents. This is a BUG? Please help me.

Files:
http://jp.wanfutrade.com/download/ErrorInTextParser.rar

Parents Reply
  • I analyzed the file and the rule and I can reproduce the problem. Please note that some of your translatable text entries that are stored in one single text file line are complete XML files with > 10 kb in size. A single regular expression in the text file parser cannot evaluate more than 16 kb, but your expression is evaluating 2 lines and the line above the translatable content also contains the translatable string which doubles the size. Here are my recommendations that may help to solve the problem.

    • If you are able to influence the text file structure, do not export the translatable string in the first line. This will increase the number of entries that can be imported but there are still some entries that are too long.
    • Many of the XML files stored in the text file do not contain any translatable data. Simple do not export data that must not be translated. This will again increase the number of entries that can be imported but there may be still some entries that are too long.
    • Do not export translatable XML files into text files. Export this data into real XML files. Then the files will be processed by the XML parser which separates the XML structure from the translatable data. It protects the XML structure from accidental changes by translators and will reduce the amount of data the must be read before one can find out what is the translatable part of the XML file.

    Hope this helps.

Children