Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1644

I18N Transformer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.6
    • None
    • - Components: Sitemap
    • None
    • Operating System: other
      Platform: Other
    • 37079

    Description

      I am using the <i18n:translate> function in order to have a translated message
      with parameters.

      I would like my parameters to be internationalized so I use the following syntax :
      <i18n:translate>
        <i18n:text i18n:key="myKey">My default value with this parameter {0}</i18n:text>
        <i18n:param><i18n:text i18:key="myParamKey">My param default
      value</i18n:text></i18n:param>
      </i18n:translate>

      The problem is that the element <i18n:text i18n:key="myParamKey">My param
      default value</i18n:text> does not work into the <i18n:param> tag. Instead I
      have to use the following syntax :
      <i18:text>myParamKey</i18n:text>

      This way forces me to have 'myParamKey' as default value for my parameter and
      not 'My param default value'.

      So my question is : why does the first syntax does not work into the
      <i18n:param> tag ? Is this a bug ? If yes, will it be corrected ?

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            thomas@anyware-tech.com Thomas FRIOL
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: