From db47683e4e34c7b65f23ea7d7fb4f953413242ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9my=20HUBSCHER?=
Date: Sat, 25 Apr 2020 12:44:06 +0200
Subject: Fix history translations. (#580)
---
ihatemoney/messages.pot | 38 +++--
ihatemoney/templates/history.html | 32 +++--
ihatemoney/translations/cs/LC_MESSAGES/messages.po | 41 +++---
ihatemoney/translations/de/LC_MESSAGES/messages.po | 41 +++---
ihatemoney/translations/el/LC_MESSAGES/messages.po | 41 +++---
.../translations/es_419/LC_MESSAGES/messages.po | 41 +++---
ihatemoney/translations/fr/LC_MESSAGES/messages.po | 149 +++++++++++++-------
ihatemoney/translations/id/LC_MESSAGES/messages.po | 41 +++---
.../translations/nb_NO/LC_MESSAGES/messages.po | 41 +++---
ihatemoney/translations/nl/LC_MESSAGES/messages.po | 156 +++------------------
ihatemoney/translations/tr/LC_MESSAGES/messages.po | 41 +++---
ihatemoney/translations/uk/LC_MESSAGES/messages.po | 41 +++---
.../zh_HANS-CN/LC_MESSAGES/messages.po | 41 +++---
13 files changed, 317 insertions(+), 427 deletions(-)
diff --git a/ihatemoney/messages.pot b/ihatemoney/messages.pot
index a03f8e2..dfd1877 100644
--- a/ihatemoney/messages.pot
+++ b/ihatemoney/messages.pot
@@ -396,23 +396,23 @@ msgstr ""
msgid "Balance"
msgstr ""
+#, python-format
msgid ""
-"This project has history disabled. New actions won't appear below. You "
-"can enable history on the"
-msgstr ""
-
-msgid "settings page"
+"\n"
+" This project has history disabled. New actions won't "
+"appear below. You can enable history on the\n"
+" settings page\n"
+" "
msgstr ""
msgid ""
-"The table below reflects actions recorded prior to disabling project "
-"history. You can "
-msgstr ""
-
-msgid "clear project history"
-msgstr ""
-
-msgid "to remove them."
+"\n"
+" The table below reflects actions recorded prior to "
+"disabling project history. You can\n"
+" clear project history to remove "
+"them.
\n"
+" "
msgstr ""
msgid ""
@@ -441,16 +441,10 @@ msgstr ""
msgid "Event"
msgstr ""
-msgid "IP address recording can be"
-msgstr ""
-
-msgid "enabled"
-msgstr ""
-
-msgid "disabled"
+msgid "IP address recording can be enabled on the settings page"
msgstr ""
-msgid "on the Settings page"
+msgid "IP address recording can be disabled on the settings page"
msgstr ""
msgid "From IP"
@@ -477,7 +471,7 @@ msgstr ""
msgid "reactivated"
msgstr ""
-msgid "renamed"
+msgid "renamed to"
msgstr ""
msgid "External link changed to"
diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html
index 875040e..6bd7e26 100644
--- a/ihatemoney/templates/history.html
+++ b/ihatemoney/templates/history.html
@@ -124,18 +124,25 @@
{% if current_log_pref == LoggingMode.DISABLED or (current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses) %}
{% if current_log_pref == LoggingMode.DISABLED %}
-
- {{ _("This project has history disabled. New actions won't appear below. You can enable history on the") }}
- {{ _("settings page") }}
+
{% set url = url_for(".edit_project") %}
+ {% trans %}
+ This project has history disabled. New actions won't appear below. You can enable history on the
+ settings page
+ {% endtrans %}
{% if history %}
-
{{ _("The table below reflects actions recorded prior to disabling project history. You can ") }}
- {{ _("clear project history") }} {{ _("to remove them.") }}
+
+ {% trans %}
+ The table below reflects actions recorded prior to disabling project history. You can
+ clear project history to remove them.
+ {% endtrans %}
{% endif %}
{% endif %}
{% if current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses %}
-
{{ _("Some entries below contain IP addresses, even though this project has IP recording disabled. ") }}
- {{ _("Delete stored IP addresses") }}
+
+ {{ _("Some entries below contain IP addresses, even though this project has IP recording disabled. ") }}
+ {{ _("Delete stored IP addresses") }}
+
{% endif %}
{% endif %}
@@ -160,10 +167,11 @@