Uploaded image for project: 'Links directory'
  1. Links directory
  2. LINKS-30

Links input data does not handle multiple languages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0
    • None
    • None

      I have the following inputdata in my skin

      <link-themes>
         <themes templates="index,page" configurable="true">
              <theme id="OUTILS"/>
          </themes>
      </link-themes>
      

      but the theme OUTILS only exists in french.

      In BO the input data display an error in a english page (see.screenshot):

      OUTILS deleted theme(s) still referenced by this service. Reconfigure the application to get rid of this error.

      First of all, the error message should be

      OUTILS deleted theme(s) still referenced by this service input data. Reconfigure the application to get rid of this error.

      Then in preview, the input data display an empty zone (see screenshot). If the input data contains only wrong themes, the zone should not be visible.

      <linkDirectory applicable="true" configurable="true">
            <links>
                  <wrong-themes>
                          <wrong-theme>OUTILS</wrong-theme>
                  </wrong-themes>
            </links>
      </linkDirectory>
      

      Finally, the input data file should handle theme langue.
      For example

      <themes templates="index,page" configurable="true">
              <theme id="OUTILS" lang="fr"/>
              <theme id="TOOLS" lang="en"/>
      </themes>
      

        1. BOerror.PNG
          BOerror.PNG
          10 kB
        2. Preview.PNG
          Preview.PNG
          12 kB
        3. LINKS_handle_multiple_languages.patch
          28 kB
        4. SKIN_DEMO.patch
          2 kB

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: