Instructions

To view this file - gettext_demo.md - as intended, execute the following commands in the directory where this markdown document is located:

env MDVIEW=mdview sh ./examples/gettext_demo.sh

Test Subject

This section contains the test subject, that is, the markdown text from which mdview will extract gettext “message ids”. Normally, the extracted text is handed to a translator. Instead for this test the translation will be simulated by replacing all translated letters with their uppercase equivalent.

Here is the subject:


Codeblock translation is only enabled for
fenced blocks that start with "```gettext".

Code spans are translated.
Link text is translated including the URL.
Likewise http://www.example.com.


Test reference

This section contains the test reference, that is, what you should see as a result of applying the translation. This text is static, it will not change. It is for you to compare it with the result, which is generated dynamically.

Here is the reference:


CODEBLOCK TRANSLATION IS ONLY ENABLED FOR
FENCED BLOCKS THAT START WITH "```GETTEXT".

CODE SPANS ARE TRANSLATED.
LINK TEXT IS TRANSLATED INCLUDING THE URL.
LIKEWISE <HTTP://WWW.EXAMPLE.COM>.


Note about internet links: when “http://” is replaced by “HTTP://” the URL becomes invalid.

Test result

This section displays the test result below. You should see uppercase letters where the translation was applied.


CODEBLOCK TRANSLATION IS ONLY ENABLED FOR
FENCED BLOCKS THAT START WITH "```GETTEXT".

CODE SPANS ARE TRANSLATED.
LINK TEXT IS TRANSLATED INCLUDING THE URL.
LIKEWISE <HTTP://WWW.EXAMPLE.COM>.