Skip to content

Result of use-macro is placed in the wrong position, when using i18n:translate #419

@pgrunewald

Description

@pgrunewald

Consider the following HTML snippet:

<tal:fancy-link metal:define-macro="fancy-link">
  <a href="#">
    Fancy link    
  </a>
</tal:fancy-link>

<tal:something i18n:translate="text_with_link">
  Now follows a fancy link: <metal:fancy-link i18n:name="obj_link" use-macro="template/macros/fancy-link" />
</tal:something>

Expected output:

Now follows a fancy link: Fancy link

Current output:

Fancy link Now follows a fancy link:

Noteworthy, when I edit the HTML by removing i18n:translate and i18n:name it places the link the correct position. This does not help, because I want to place the link depending on the translation.

Tested with Chameleon version: 3.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions