Skip to content
Snippets Groups Projects
Commit 222fd94c authored by Jan-Philipp Litza's avatar Jan-Philipp Litza
Browse files

docs: Warn of empty msgstr in translations, hint at using comments

parent 4405f398
No related branches found
No related tags found
No related merge requests found
......@@ -284,6 +284,15 @@ for the language files. The command ``msginit -l en -i ../../docs/site-example/i
can be used from the ``i18n`` directory to create an initial PO file called ``en.po`` if the ``gettext``
utilities are installed.
.. note::
An empty ``msgstr``, as is the default after running ``msginit``, leads to
the ``msgid`` being printed as-is. It does *not* hide the whole text, as
might be expected.
Depending on the context, you might be able to use comments like
``<!-- empty -->`` as translations to effectively hide the text.
Examples
--------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment