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

Add parameter unicode=true in aui:script blocks to prevent errors with liferay-ui:message

    Details

      Description

      Evertime we use <liferay-ui:message key="whatever" /> inside javascript code, it should be used like this: <liferay-ui:message key="whatever" unicode="<%= true %>".

      To automate this, when we open an aui:script tag, we set an attribute in the request for unicode=true, and then liferay-ui:message tries to read that parameter. If it is found, then we set unicode to true. Then, when we close the aui:scrip tag we would remove the attribute.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              eudaldo.alonso Eudaldo Alonso
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 15 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2