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.
I've noticed that if I interpolate translated strings into translated strings - it doesn't work.
This happens something like this:
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.