Next: , Previous: , Up: Tips and Hints for Webmasters   [Contents][Index]


5.2 Comments for Translators

If you want a comment to be visible for translators, place it inside the element, for example:

<p>
<!--TRANSLATORS: Note that foo is bar in this context.-->
The fooish bar mumbles bazzling.
</p>

This will result in:

# type: Content of: <p>
#. TRANSLATORS: Note that foo is bar in this context.
msgid "The fooish bar mumbles bazzling."
msgstr ""

As per the established convention, start the comment with TRANSLATORS: to catch their attention, and do not add a space after the beginning of the HTML comment (<!--), since this will unnecessarily indent the comment in the POT.