{% extends "base.html" %} {% load i18n %} {% load translations %} {% load authnames %} {% load crispy_forms_tags %} {% load icons %} {% block breadcrumbs %}
  • {% trans "Your profile" %}
  • {% endblock %} {% block content %} {% if form.errors or userform.errors or subscriptionform.errors %} {% trans "Please fix errors in the form." as msg %} {% show_message "error" msg %} {% endif %}
    {% csrf_token %}

    {% documentation_icon 'user/profile' 'languages' right=True %}{% trans "Languages" %}

    {% crispy languagesform %}

    {% blocktrans %}Send a request to the project you want to translate to add a missing language.{% endblocktrans %}

    {% documentation_icon 'user/profile' 'preferences' right=True %}{% trans "Preferences" %}

    {{ usersettingsform|crispy }} {{ dashboardsettingsform|crispy }}

    {% documentation_icon 'user/profile' 'subscriptions' right=True %}{% trans "Watched projects" %}

    {% crispy subscriptionform %}

    {% trans "Add all projects you want to translate to see them as watched projects on the dashboard." %}

    {% documentation_icon 'user/profile' 'subscriptions' right=True %}{% trans "Notification settings" %}

    {% for form in notification_forms %}
    {% crispy form %}
    {% endfor %}

    {% documentation_icon 'user/profile' right=True %}{% trans "Account" %}

    {% crispy userform %}

    {% trans "Your name and e-mail will appear as commit authorship." %}

    {% documentation_icon 'user/profile' 'authentication' right=True %}{% trans "Current user identities" %}

    {% for assoc in associated %} {% endfor %}
    {% trans "Identity" %} {% trans "User ID" %} {% trans "Action" %}
    {% auth_name 'password' ' ' %} {{ request.user.username }} {% if request.user.has_usable_password %}{% trans "Change password" %}{% else %}{% trans "Set password" %}{% endif %}
    {% auth_name assoc.provider ' ' %} {{ assoc.uid }} {% if associated.count > 1 %} {% trans "Disconnect" %} {% endif %}
    {% if new_backends %}

    {% trans "Add new association" %}

    {% for name in new_backends %} {% auth_name name %} {% endfor %}
    {% endif %}

    {% trans "Removal" %}

    {% trans "Account removal deletes all your private data." %}

    {% trans "User data" %}

    {% trans "You can download all your private data." %}

    {% trans "Your summary" %}

    {% with request.user as user %} {% include 'user-activity.html' %} {% endwith %} {% url 'user_page' user=request.user.username as user_page%}
    {% trans "Your public profile" %} {{ user_page }}
    {% if enable_avatars %}

    {% documentation_icon 'user/profile' 'avatar' right=True %}{% trans "Your avatar" %}

    {% endif %}

    {% trans "Description" %}

    {% blocktrans %}Contact us immediately if you see anything suspicious in the audit log.{% endblocktrans %}

    {% trans "Audit log" %}

    {% for log in auditlog %} {% empty %} {% endfor %}
    {% trans "When" %} {% trans "Account activity" %} {% trans "IP address" %} {% trans "User agent" %}
    {{ log.timestamp|naturaltime }} {{ log.get_message }} {{ log.address }} {{ log.user_agent }}
    {% trans "No recent activity found!" %}

    {% documentation_icon 'api' right=True %}{% trans "API access" %}

    {% blocktrans %}You can control Weblate using the HTTP REST API and your API key is used to authenticate to it.{% endblocktrans %}

    {% trans "Your personal API key:" %} {{ user.auth_token.key }}
    {% trans "Regenerate API key" %}
    {% trans "API root URL:" %} {{ site_url }}{% url 'api:api-root' %}
    {% trans "API usage example:" %}
    curl \
        -H "Authorization: Token {{ user.auth_token.key }}" \
        {{ site_url }}{% url 'api:api-root' %}
    
    {% trans "CLI usage example:" %}
    wlc \
        --key {{ user.auth_token.key }} \
        --url {{ site_url }}{% url 'api:api-root' %} \
        list-projects
    
    {% if has_gitexport %}

    {% documentation_icon 'admin/optionals' 'git-exporter' right=True %}{% trans "Accessing Git repositories" %}

    {% blocktrans %}The API key is also used to authenticate to automatically exported Git repositories.{% endblocktrans %}

    git clone 'https://{{ user.username }}:{{ user.auth_token.key }}@{{ site_domain }}/git/PROJECT/COMPONENT/'
    {% endif %}

    {% trans "Licenses" %}

    {% trans "Please pay attention to the licensing info, as this specifies how translations can be used." %}

    {% trans "By registering you agree to use your name and e-mail in the commits, and provide your contribution under the license defined by each localization project." %}

    {% with agreements=user.contributoragreement_set.order %} {% if agreements %}

    {% trans "You have agreed to the following as a contributor:" %}

    {% endif %} {% endwith %}
    {% if licenses %}

    {% trans "Licenses for individual translations" %}

    {% for component in licenses %} {% endfor %}
    {% trans "Project" %}{% trans "License" %}
    {{ component }} {% if component.license_url %} {{ component.get_license_display }} {% else %} {{ component.get_license_display }} {% endif %}
    {% endif %}
    {% csrf_token %}
    {% endblock %}