Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-144498

TableOfContents macro in wiki has hard coded English title

Details

    Description

      When Liferay renders the Table of Contents for the creole wiki page structure, the heading in the TOC should be rendered as a translated string, for the language set in the portal, such that the end-user sees a toc heading in the desired language.

      Steps to reproduce:
      1) Go to the Control Panel > Configuration > Instance Settings and set
      Available Languages = English (United Kingdom) and Norwegian (Norwegian Bokmål)
      Default Language = Norwegian Bokmål

      2) Create a widget page called "test"

      3) Add the Wiki widget to your page

      4) Create a new wiki page with Format = Creole called "hello world"

      5) Paste the Creole Table of Contents syntax into the source code of the new wiki-page using the Source code editor
      <<TableOfContents>>

      6)Add several paragraphs of text and sub-headings to the wiki-page
      Publish the wiki page

      Current result:
      When Liferay renders the Table of Contents for the creole wiki page structure, the heading in the TOC is always "Table of Contents", regardless of the languages used in the portal or current user's display language.

       7.1.x: reproduced
       Master: reproduced

      Attachments

        Issue Links

          Activity

            People

              beck.liu Beck Liu
              laszlo.pap Laszlo Pap
              Kiyoshi Lee Kiyoshi Lee
              Laszlo Pap Laszlo Pap
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 10 weeks ago

                Packages

                  Version Package
                  7.1.X
                  7.2.10 DXP FP17
                  7.2.10.6 DXP SP6
                  7.2.X
                  7.3.X
                  7.4.3.7 CE GA7
                  7.4.13 DXP U3
                  7.4.3.8 CE GA8
                  7.4.13 DXP U4
                  7.4.3.12 CE GA12
                  7.4.13 DXP U8
                  Master