3 ms·
For i18n you can still do the same of _('your template here {foo}'), where _ is you gettext[1]. And once it has a lazy version, you will be covered. [1] https:
by renzon 10y ago
For i18n you can still do the same of _('your template here {foo}'), where _ is you gettext[1]. And once it has a lazy version, you will be covered.
[1] https://docs.python.org/2/library/gettext.html#gnu-gettext-api https://docs.python.org/2/library/gettext.html#gnu-gettext-a...
- masklinn 10y agoThat doesn't work, unless `_` is a gettext overlay which goes and reaches into its caller stackframe and performs string interpolation itself. Otherwise you mean that you can "still do the same of" _('your template here {foo}').format(foo=foo) which is a step down from f'your template here {foo}'