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

Allow strings with parameters to be translated

    XMLWordPrintable

Details

    Description

      EZP-25428 provides the base infrastructure to translate "simple" strings but it's not yet possible to translate strings with parameters. Also, on that topic, it's common to have strings with some HTML code. This specific use case can be tricky so it has to be taken into early in the design of such feature.

      Syntax proposal:

      {{ translate 'string.with.parameter' 'domain' variable1=value variable2='another thing' }}
      

      Most likely, this also involves changing the Translation dumper to be able to detect such code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: