{% extends "packages/package_base.html" %} {% block title %} {{ _("Translation") }} {% endblock %} {% block content %} {% set translations = package.translations.all() %} {% set num = translations | length + 1 %} {{ _("Help") }}

{{ self.title() }}

{% if num == 1 %}

{{ _("To provide translations for your package, you need to create .tr files and upload a new release.") }} {{ _("For information on how to do this, see the modding book chapter and lua_api.md") }}

{{ _("Translation - Minetest Modding Book") }} {{ _("Translating content meta - lua_api.md") }}

{{ _("Translation template") }}

{{ _("To quickly add support for ContentDB package translation, create a file at %(location)s with the following content:", location="locale/template.txt"|safe) }}

# textdomain: {{ package.name }}

{{ package.title | replace("@", "@@") | replace("=", "@=") }} =
{{ package.short_desc | replace("@", "@@") | replace("=", "@=") }} =
{% else %}

{{ _("%(title)s is available in %(num)d languages.", title=package.title, num=num) }} {{ _("ContentDB reads translations from locale files (.tr) in your package.") }}

{{ _("Language") }}
{{ _("Title") }}
{{ _("Short Description") }}
English
{{ package.title }}
{{ package.short_desc }}
{% for translation in translations %}
{{ translation.language.title }}
{{ translation.title or "" }}
{{ translation.short_desc or "" }}
{% endfor %} {% endif %}
{% endblock %}