Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4862

Corrupted lang table special treatment

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • None
    • None
    • t5memory
    • Medium
    • Added handling new 6011 error from t5memory

      Problem

      If lang tables in t5memory are corrupted (missing language there), reorganize will also be triggered. But after reorganize the TM will be empty, because segments with missing or wrong language code will be skipped in reorganize.

      Therefore t5memory in the future will detect this situation on reorganize. If it is the case, abort reorganize and throw a special error code

      Solution

      In case this special error code is thrown,

      • export the affected memory as TMX to /data/
      • throw a fatal error in translate5 syslog and language resource log with the message
        "TM ID-NAME is corrupt in the lang table of the TM binary. This can not be solved with automatic reorganize. The TM has been exported as TMX to /data/xyz.tmx. Please inspect the TMX and recreate the TM manually, potentially also via using the backup.
      • set the language resource to permanent error

            leonkiz Leon Kiz
            marcmittag Marc Mittag [Administrator]
            Sanya Mikhliaiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: