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

Translations in extension ignored if language does not exist in main share/translations

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0, 3.8.10, 3.9.4
    • 3.7.5
    • Language
    • None
    • Version: 3.7.5 (svn rev 15180)
      PHP Version: 4.4.2-1
      Webserver: Apache 1.3.34
      Database: MySQL 5.0.18 / InnoDB

    Description

      I use an extension to keep my customised translations separate from the ez core translation.ts files. I have this functioning entirely correctly with four languages. However, I just tried to add some translations for a language that is not included in the core of ezpublish, English (Canada).

      If share/translations/(language)/translation.ts does not exists then the translations in extension/(extensionname)/translations/(language)/translation.ts are ignored.

      <b>Steps to reproduce:</b>

      1. Set up an extension that includes correctly functioning translations
      2. Add a siteaccess with a locale not included in ezpublish, e.g. eng-CA
      3. Add translations to, e.g., extension/extensionname/translations/eng-CA/translation.ts
      4. Clear all relevant caches, including languages
      5. Load eng-CA siteaccess

      <b>Expected result:</b>

      Translations from the extension should be used.

      <b>Actual result:</b>

      Translations from the extension are not used.

      However, as soon as you create share/translations/eng-CA/translation.ts the corresponding translations in the extension are picked up. Note, the translation.ts file in share/translations/eng-CA must exist (although it can be empty - touch will suffice) in order to activate the extensions' translations, it seems that creating the share/translations/eng-CA directory alone is insufficient.

      Thanks
      Matthew

      Attachments

        Activity

          People

            br br
            matthewc matthewc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: