Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16936

The mtime translation check is in a bad order and affects performances

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Medium Medium
    • Future
    • 4.0.7, 4.1.4, 4.2.0, 4.3.0, 4.4.0alpha3
    • Language
    • None

    Description

      In eZTSTranslator::loadTranslationFile(), we first check for path like share/translation/<locale>/<charset>/translation.ts, then if this path doesn't exist, we check for share/translation/<locale>/translation.ts

      The result is one extra syscall for each translation file (usually the default one, plus one per extension).

      Since we haven't documented anywhere that translation files could be overridden using an utf-8 (or charset) subfolder, this is a useless loss of performances.

      Attachments

        Activity

          People

            bd bd
            bd bd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: