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
          10 kB
          Laurence Aumeunier
        2. LINKS_handle_multiple_languages.patch
          28 kB
          Quentin Glinel-Mortreuil
        3. Preview.PNG
          12 kB
          Laurence Aumeunier
        4. SKIN_DEMO.patch
          2 kB
          Quentin Glinel-Mortreuil

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

              Created:
              Updated:
              Resolved: