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

eZTSTranslator saves context cache for nonexisting translation; warning (patch)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • Customer request
    • 4.4.0, 4.5.0
    • Language
    • None
    • eZ Publish 4.4

    Description

      When a locale with no translation is specified, eZTSTranslator will of course fail to find any translation strings, but it nevertheless tries to save context cache. This leads to large amounts of warning messages like this:

      Warning: eZTranslationCache::setContextCache Aug 12 2011 13:19:32
      Translation cache for context 'cachecontexts' already exists

      It should not try to save cache when there is nothing to save. The attached patch is one suggestion for how to solve this.

      Also, there should be a warning message when the specified translation is not found.

      Steps to reproduce
      • In plain ezp 4.4, set site.ini [RegionalSettings] Locale=eng-US
      • A locale file exists for eng-US, but no translation
      • Enable debug output
      • Load any page in admin, note warning messages: Translation cache for context 'cachecontexts' already exists

      Attachments

        Activity

          People

            dp@ez.no dp@ez.no
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: