Closed foxbunny closed 9 years ago
I recently ran into a situation where pgettext was the only way to provide translation strings. More on that here:
pgettext
https://www.gnu.org/software/gettext/manual/html_node/Contexts.html
Since Python itself doesn't support these, we should imitate (steal, that is) the idea from Django, which fakes pgettext and npgettext using the magic gettext context separator value:
CONTEXT_SEPARATOR = "\x04"
I recently ran into a situation where
pgettext
was the only way to provide translation strings. More on that here:https://www.gnu.org/software/gettext/manual/html_node/Contexts.html