mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Add comment on how to use the translation template.txt
This commit is contained in:
parent
5983b5c420
commit
de1332c5e8
@ -28,6 +28,11 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3 id="template">{{ _("Translation template") }}</h3>
|
<h3 id="template">{{ _("Translation template") }}</h3>
|
||||||
|
<p>
|
||||||
|
{{ _("To quickly add support for ContentDB package translation, create a file at %(location)s with the following content:",
|
||||||
|
location="<code>locale/template.txt</code>"|safe) }}
|
||||||
|
</p>
|
||||||
|
|
||||||
<pre><code># textdomain: {{ package.name }}
|
<pre><code># textdomain: {{ package.name }}
|
||||||
|
|
||||||
{{ package.title | replace("@", "@@") | replace("=", "@=") }} =
|
{{ package.title | replace("@", "@@") | replace("=", "@=") }} =
|
||||||
|
Loading…
Reference in New Issue
Block a user