{% extends "base.html" %} {% load i18n %} {% load translations %} {% block breadcrumbs %}
  • {{ object }}
  • {% trans "data exports" %}
  • {% endblock %} {% block content %}

    {% trans "You can retrieve various data from Weblate in machine readable format." %}

    {% trans "RSS feeds" %} {% documentation_icon 'api' 'rss' %}

    {% trans "To follow translation progress you can use RSS feeds, detailing all important translation changes." %}

    {% for component in object.component_set.all %} {% endfor %}
    {% trans "Project" %} {% trans "URL" %} {% trans "Link" %}
    {{ object }} {{ site_url }}{% url 'rss-project' project=object.slug %} {% trans "RSS" %}
    {{ component }} {{ site_url }}{% url 'rss-component' project=object.slug component=component.slug %} {% trans "RSS" %}

    {% trans "Per language RSS feeds are also available, you can construct them by appending a language code to the above URLs." %}

    {% trans "Statistics" %} {% documentation_icon 'api' %}

    {% blocktrans %}Translation statistics for every component in the JSON format allows you to use the data in other websites or tools.{% endblocktrans %}

    {% for component in object.component_set.all %} {% endfor %}
    {% trans "Project" %} {% trans "URL" %} {% trans "Link" %}
    {{ component }} {{ site_url }}{% url 'api:component-statistics' project__slug=object.slug slug=component.slug %} {% trans "View" %}
    {% with object.component_set.all.0 as component %} {% if component %}

    {% trans "As an example, fetching stats for all translations in one component can be done thusly:" %}

    curl \
        -H "Authorization: Token {{ request.user.auth_token.key|default:"TOKEN" }}" \
        {{ site_url }}{% url 'api:component-translations' project__slug=object.slug slug=component.slug %}
    
    {% endif %} {% endwith %} {% if hooks_enabled and project.enable_hooks %}

    {% trans "Notification hooks" %} {% documentation_icon 'api' 'hooks' %}

    {% blocktrans %}With notification hooks, Weblate will automatically import changes made by your developers, and allows continuous translation.{% endblocktrans %}

    {% endif %} {% for component in object.component_set.all %} {% endfor %}
    {% trans "Project" %} {% trans "URL" %} {% trans "Link" %}
    {{ object }} {{ site_url }}{% url 'api:project-repository' slug=object.slug %} {% trans "Hook" %}
    {{ component }} {{ site_url }}{% url 'api:component-repository' project__slug=object.slug slug=component.slug %} {% trans "Hook" %}

    {% trans "As an example, telling Weblate to pull from a remote repository can be done thusly:" %}

    curl \
        -d operation=pull \
        -H "Authorization: Token {{ request.user.auth_token.key|default:"TOKEN" }}" \
        {{ site_url }}{% url 'api:project-repository' slug=object.slug %}
    

    {% blocktrans %}Weblate also supports direct notifications from several code hosting sites:{% endblocktrans %}

    {% trans "Hosting site" %} {% trans "URL" %} {% trans "Note" %}
    GitHub {{ site_url }}{% url 'webhook' service='github' %} {% trans "Browse the documentation for detailed instructions" %}
    GitLab {{ site_url }}{% url 'webhook' service='gitlab' %} {% trans "Browse the documentation for detailed instructions" %}
    Bitbucket {{ site_url }}{% url 'webhook' service='bitbucket' %} {% trans "Browse the documentation for detailed instructions" %}
    Pagure {{ site_url }}{% url 'webhook' service='pagure' %} {% trans "Browse the documentation for detailed instructions" %}
    {% endblock %}