Add missing translations and update doc

This commit is contained in:
Antoine Bartuccio 2022-08-07 16:45:18 +02:00
parent 47a332445c
commit 0e5c8b53b0
3 changed files with 531 additions and 513 deletions

View File

@ -6,7 +6,7 @@
{% block content %} {% block content %}
{% for a in albums %} {% for a in albums %}
<button id="download_all_pictures", onclick=download_pictures()>{% trans %} Download all my pictures {% endtrans %}</button> <button id="download_all_pictures", onclick=download_pictures()>{% trans %}Download all my pictures{% endtrans %}</button>
<div style="padding: 10px"> <div style="padding: 10px">
<h4>{{ a.name }}</h4> <h4>{{ a.name }}</h4>
<hr> <hr>
@ -78,7 +78,7 @@
}, },
error: function(data){ error: function(data){
console.log("Error retrieving data from url: " + data); console.log("Error retrieving data from url: " + data);
$("#download_all_pictures").text("{% trans %} Error downloading your pictures {% endtrans %}"); $("#download_all_pictures").text("{% trans %}Error downloading your pictures{% endtrans %}");
} }
}); });
} }

View File

@ -39,7 +39,7 @@ La traduction se fait en trois étapes. Il faut d'abord générer un fichier de
.. sourcecode:: bash .. sourcecode:: bash
./manage.py makemessages --ignore "env/*" -e py,jinja ./manage.py makemessages --locale=fr --ignore "env/*" -e py,jinja
Éditer le fichier django.po Éditer le fichier django.po
--------------------------- ---------------------------

File diff suppressed because it is too large Load Diff