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

Object name not translated for "object relations" attributes

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.10.0, 3.8.10, 3.9.4
    • Misc
    • None
    • Operating System: Linux RHEL 4
      PHP Version: 4.4.8
      Database and version: MySQL 4.1
      Browser (and version):

    Description

      The object name for a file object translated in two (or more) languages is displayed only in the main/default language when the object is related as an "object relations" attribute in another object, even accessing ezpublish with a siteaccess configured for the secondary language.

      Steps to reproduce

      1) plain site fresh installation of eZpublish
      2) add another language to the system (or during installation choose the default language and at least one secondary language), I tested all following steps with eng-GB as main/default language and ita-IT as secondary language
      3) add an attribute of type "object relations" non translatable to some existing content class (e.g. the folder class)
      4) create a file object under some place (e.g. under Media library/Files) and edit it so You create also a translation in the secondary language, with a different text as name (and for more evidence upload also a different file)
      5) edit the template for the full object class You modified (e.g. "design/base/override/templates/full/folder.tpl") and add the code for the new attribute You added, e.g. if You named that attribute "rel_link":

      {attribute_view_gui attribute=$node.data_map.rel_link}
      

      6) add a new siteaccess with the secondary language as the first in the prioritized list so accessing it You view the object attributes (if translated) in the secondary language
      7) clear all caches
      8) create a folder object (or edit an existing one) in which You relate the file object of step 4 with the new class attribute
      9) go to the new siteaccess and to the folder object You have created/modified in step 8
      10) the file object is correctly visualized with the content of the secondary language (You look the different filename) but the text of his name is the same of the mail language, this occur both for the full view of the folder and for the full view of the file object

      Expected result: in step 10 I expect the file object attributes were all displayed in the language selected for the siteaccess (the secondary language)

      Attachments

        Activity

          People

            unknown unknown
            minnoce minnoce
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: