Review main Merged

7269[BUGFIX] locallangXMLOverride is broken since the switch to XLIFF

Xavier Perseguers CR +2 V +2 Hard +475 −7 updated 06/03/13, 20:49

Commit message

locallangXMLOverride mechanism does not work anymore since
target language is mixed with the default language.

Review

  • Code review CR +2
    • Xavier Perseguers +2
    • Dominique Feyer +1
  • Verified V +2
    • Xavier Perseguers +2
    • Dominique Feyer +1

Files 11

Review log 23

  1. Oliver Klee commented on patch set 1 12/21/11, 14:59

    (1 inline comment)
  2. Xavier Perseguers commented on patch set 1 12/21/11, 14:59

    (1 inline comment)
  3. Xavier Perseguers uploaded patch set 2 12/21/11, 14:59

  4. Xavier Perseguers uploaded patch set 3 12/21/11, 14:59

  5. Xavier Perseguers uploaded patch set 4 12/21/11, 14:59

  6. Xavier Perseguers commented on patch set 4 12/21/11, 14:59

    Fails OK, just a push in order for all of us to have the unit tests in place. It currently fails while overriding XLIFF
  7. Xavier Perseguers commented on patch set 5 12/21/11, 14:59

    Verified; Looks good to me, but someone else must approve
  8. Xavier Perseguers uploaded patch set 5 12/21/11, 14:59

  9. Xavier Perseguers commented on patch set 5 V 0 12/21/11, 14:59

    by team member; Looks good to me, approved
  10. Georg Ringer commented on patch set 1 12/21/11, 14:59

    Looks good to me, but someone else must approve

    class.t3lib_l10n_parser_llxml.php:88

    you can do a strict comparison for count() too
  11. Steffen Ritter commented on patch set 2 12/21/11, 14:59

    what about offering the possiblity to just put an "path" to the folder of the xliff file and then behave as normal with searching the correct language itself, if not found, use default.
  12. Dominique Feyer commented on patch set 2 12/21/11, 14:59

    Verified; Looks good to me, but someone else must approve
  13. Dominique Feyer commented on patch set 2 12/21/11, 14:59

    Currently XLIFF override work like this: Override default translation: $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['path/to/originalTranslationFile.xml'][] = 'path/to/otherTranslationFile.xlf' Override fr translation: $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['fr']['path/to/originalTranslationFile.xml'][] = 'path/to/fr.otherTranslationFile.xlf' But the current implementation has bugs with this, I push a patch asap to solve the issue in the next release
  14. Dominique Feyer commented on patch set 2 12/21/11, 14:59

    This patch need more test, override with LLXML work fine, but we need to test XLIFF override. XLIFF can contain only 1 language per file, so we need to have multiple file, list locallang.xlf, fr.locallang.xlf, ... to override multiple language.
  15. Dominique Feyer commented on patch set 5 12/21/11, 14:59

    Verified; Looks good to me, but someone else must approve Well done my friendly ghost
  16. Mr. Jenkins commented on patch set 1 12/21/11, 14:59

  17. Mr. Jenkins commented on patch set 2 12/21/11, 14:59

  18. Mr. Jenkins commented on patch set 3 12/21/11, 14:59

  19. Mr. Jenkins commented on patch set 4 12/21/11, 14:59

  20. Mr. Jenkins commented on patch set 5 12/21/11, 14:59

  21. Lars commented on patch set 1 12/21/11, 14:59

    Fails; I would prefer that you didn't submit this This patch does not work well with default-translations, you must also intersect with $parsedDataTarget array.
  22. Lars commented on patch set 2 12/21/11, 14:59

    Verified; Looks good to me, but someone else must approve This patch I've now successfully tested for several days, locallangXMLOverride-settings for LLXML files no works fine again.
  23. Xavier Perseguers merged patch set 5 12/21/11, 14:59