printk() indexing
printk() indexing
Posted May 30, 2021 21:27 UTC (Sun) by mbunkus (subscriber, #87248)In reply to: printk() indexing by mathstuf
Parent article: printk() indexing
The gettext system knows a concept called "Contexts". This is basically a second parameter for the translation functions that works as a disambiguation. You'd have calls to 'pgettext("dog", "bark")' and 'pgettext("tree", "bark")', and both would show up in PO files as two separate entries to translate. How you name contexts is totally up to you.
Contexts are optional. The most basic function, 'gettext("bark")', works without a context.
See here for more details: https://www.gnu.org/software/gettext/manual/html_node/Con...
