diff client/src/components/importconfiguration/ScheduledImports.vue @ 4231:6f31a99cd92d

clinet: fix translations process and update source strings * move strings for translations from *.po files to the component itself to let gettext() mark only the strings without the html elements. (make makemessages complains to have html elements in the .po files and stops the process).
author Fadi Abbud <fadi.abbud@intevation.de>
date Wed, 21 Aug 2019 11:13:12 +0200
parents 03e8e6cc0b79
children 3759b47f20f3
line wrap: on
line diff
--- a/client/src/components/importconfiguration/ScheduledImports.vue	Tue Aug 20 17:15:06 2019 +0200
+++ b/client/src/components/importconfiguration/ScheduledImports.vue	Wed Aug 21 11:13:12 2019 +0200
@@ -655,10 +655,26 @@
       return true;
     },
     ttWaitRetry() {
-      return this.$gettext("retryDelayDescription");
+      return `${this.$gettext(
+        "Time between retries. Valid units are 's' , 'm' and 'h' "
+      )}<div style="text-align:left;">${this.$gettext(
+        "Examples:"
+      )}<ul><li>${this.$gettext("60 for 60 Seconds ")}
+      </li><li> ${this.$gettext("30m for 30 Minutes")}</li><li> ${this.$gettext(
+        "2h45m for for two hours and 45 Minutes"
+      )}</li></ul></div>`;
     },
     ttRetries() {
-      return this.$gettext("retryCountDescription");
+      return ` ${this.$gettext("Maximum retry count")}<br> ${this.$gettext(
+        "If there is no error during import, there will be no retry"
+      )}
+        <br><div style="margin-left:45px;text-align:left;"<ul><li> ${this.$gettext(
+          "Negative values mean endless retry"
+        )}
+        </li><li> ${this.$gettext("0 means no retry")}</li><li> ${this.$gettext(
+        "Positive values are the upper limit for retries"
+      )}
+        </li></ul></div>`;
     },
     ttRetry() {
       return this.$gettext("retryDescription");