{% extends "packages/package_base.html" %} {% block title %} {{ _("Translation") }} {% endblock %} {% block content %} {% set translations = package.translations.all() %} {% set num = translations | length + 1 %} {{ _("Help") }}
{{ _("To provide translations for your %(type)s, you need to create .tr files and upload a new release.", type=package.type.text | lower) }} {{ _("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") }}
{{ _("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.") }}