Pylons/translationstring — pull request #5 by dokai (2012-01-19 18:35:17+00:00)
Title: Fix for passing interpolation mappings in translator calls.

Previously it was possible to provide an interpolation mapping only as part of
a translation string. Providing it later during translation would be ignored.

This change allows you to provide the mapping as part of the translator call,
e.g.

translator(tstring, mapping={...})

if the tstring does not contain a mapping itself, the mapping given in the
translator() call will be used as is. Otherwise, the previously given mapping
will be updated with the new values allowing partial overriding of an existing
mapping.