Skip to content

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

Open

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

Activity

  1. fschulze commented on Dec 22, 2024

    @fschulze
    Contributor

    This should be fixed since 4.5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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