Skip to content

translation context for docinfo

What does the merge request do?

Enable specification of translation contest as part of inbox#6544 (closed)

Implementation notes

pgettext (and the new custom function _f) is not included by default in the templates for xgettext.

This means that in https://gitlab.com/inkscape/inkscape/-/blob/master/po/CMakeLists.txt, the call for python files must be updated as follows:

COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} ${xgettext_options} -L Python -f POTFILES.py.in --keyword=pgettext:1c,2 --keyword=_f

Summary for release notes

Can external extensions actually use these functions? I don't really know how this works.

Checklist

  • Add unit tests (if applicable)
  • Changes to inkex/ are well documented
  • Clean merge request history
Edited by Jonathan Neuhauser

Merge request reports