Best-practice for formatted string literals and localization?
Hartmut Goebel
h.goebel at crazy-compilers.com
Mon Dec 7 05:56:43 EST 2020
Am 01.12.20 um 19:40 schrieb Dieter Maurer:
> Usually, the translation machinery has special ways to
> provide parameters for translations.
> For example with `zope.i18nmessageid`, you can use
> `_(msg, mapping=<parameter_dict>)` to provide parameters
> to the translations -- as in your case `count`).
> Check, what parameter support your translation machinery support.
Thanks for this hint. I'm using the stdlib, which AFAIU does not support
that. (Anyhow it would be easy to implement such a wrapper)
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel at crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
More information about the Python-list
mailing list