Skip to content

Does not cascade translation #10

@dwt

Description

@dwt

I've noticed that if I interpolate translated strings into translated strings - it doesn't work.

This happens something like this:

warning =  _("Missing correct answers")
object_id = "fnord"

_("${warning} for object with id ${object_id}") 
            % dict(warning=warning, object_id=object_id))

This makes it really hard to use this in places where you do not controll what strings get spliced into a translated strings - which is really unfortunate.

To my understanding, interpolate() needs to check all strings it interpolates and call interpolate on them too as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions