{% 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" %}

    {% if request.user.has_usable_password or has_email_auth %} {% endif %} {% 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." %}

    {% documentation_icon 'user/profile' 'public-profile' right=True %}{% trans "Public profile" %}

    {% crispy profileform %}

    {% blocktrans %}All of the fields on this page are optional and can be deleted at any time, and by filling them out, you're giving us consent to share this data wherever your user profile appears.{% endblocktrans %}

    {% 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' %}
    {% documentation_icon 'api' right=True %}{% trans "API usage example:" %}
    curl \
        -H "Authorization: Token {{ user.auth_token.key }}" \
        {{ site_url }}{% url 'api:api-root' %}
    
    {% documentation_icon 'wlc' right=True %}{% 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|urlencode }}:{{ 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 %} {% regroup licenses by license as license_list %}

    {% trans "Licenses for individual translations" %}

    {% for dummy, items in license_list %}

    {{ items.0.get_license_display }} {{ items.0.license_badge }} {% icon "info.svg" %}

    {% for component in items %} {{ component }} {% endfor %}

    {% endfor %}
    {% endif %}
    {% csrf_token %}
    {% endblock %}