Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleGeneral gettext / PO example of msgctxt
#: utils/katestyletreewidget.cpp:132
msgctxt "Text style"
msgid "Normal"
msgstr "običan"
⁠
#: utils/kateautoindent.cpp:78
msgctxt "Autoindent mode"
msgid "Normal"
msgstr "obično"

At the time of writing, 2019-06-01, the NGX-Translate implementation of the support of po files that DSpace is relying on, does not actually do anything with the msgctxt directives in the translation files. This means that right now, we can only have a single translation for a single string.

BUT - msgctxt is already actively being used in the translation files, to differentiate occurrences of duplicate msgid entries, for example:

Code Block
languagebash
#: .menu.section.edit_item
msgctxt ".menu.section.edit_item"
msgid "Item"
msgstr "Item"

#: .menu.section.export_item
msgctxt ".menu.section.export_item"
msgid "Item"
msgstr "Item"

The goal is to explore the requirements for the use of msgctxt and support in the code in future work.

On top of this, in the next case of Dynamic keys, msgctxt is currently being used to have the actual English source text.

Dynamic key example


The Angular DSpace 7 message catalog (dspace.pot)

...