inveniosoftware / invenio-i18n

Invenio internationalization module.
https://invenio-i18n.readthedocs.io
MIT License
5 stars 34 forks source link

func: f-string interpolation after gettext has been called. #96

Closed mb-wali closed 3 years ago

mb-wali commented 3 years ago

Usage

import

from invenio_i18n.selectors import f

Mark for translation with f-string

--- message=_(f"Unknown PID provider for {scheme}")
+++ message=f(_("Unknown PID provider for {scheme}")),
zzacharo commented 3 years ago

Discussed IRL that will remove thef"" from the modules that were using them along with the _ function.