diff --git a/public/modules/custom/grants_handler/js/application-copy-dialog.js b/public/modules/custom/grants_handler/js/application-copy-dialog.js index ae1477e94..3482db5ca 100644 --- a/public/modules/custom/grants_handler/js/application-copy-dialog.js +++ b/public/modules/custom/grants_handler/js/application-copy-dialog.js @@ -12,9 +12,9 @@ Drupal.dialogFunctions.createDialog({ dialogContent: htmlContent, - actionButtonText: Drupal.t('Copy application', [], { context: 'grants_handler' }), - backButtonText: Drupal.t('Close', [], { context: 'grants_handler' }), - closeButtonText: Drupal.t('Close', [], { context: 'grants_handler' }), + actionButtonText: Drupal.t('Copy application'), + backButtonText: Drupal.t('Close', {}, { context: 'grants_handler' }), + closeButtonText: Drupal.t('Close', {}, { context: 'grants_handler' }), actionButtonCallback: () => { // Redirect to a new URL window.location.href = copyUrl; @@ -27,7 +27,7 @@ */ }, - dialogTitle: Drupal.t('Copy application', [], { context: 'grants_handler' }), + dialogTitle: Drupal.t('Copy application'), customSelector: 'application-copy-dialog' }) }); diff --git a/public/modules/custom/grants_handler/translations/fi.po b/public/modules/custom/grants_handler/translations/fi.po index 88e95d82b..315997501 100644 --- a/public/modules/custom/grants_handler/translations/fi.po +++ b/public/modules/custom/grants_handler/translations/fi.po @@ -667,3 +667,11 @@ msgstr "Huomio" msgctxt "grants_handler" msgid "You must visit all pages in the form before you can submit the application." msgstr "Käy kaikilla sivuilla ennen kuin lähetät hakemuksen." + +msgctxt "grants_handler" +msgid "Application to copy" +msgstr "Kopioitava hakemus" + +msgctxt "grants_handler" +msgid "Application to copy" +msgstr "Kopioitava hakemus" diff --git a/public/modules/custom/grants_handler/translations/sv.po b/public/modules/custom/grants_handler/translations/sv.po index 10ee57444..7b8dcd42c 100644 --- a/public/modules/custom/grants_handler/translations/sv.po +++ b/public/modules/custom/grants_handler/translations/sv.po @@ -663,3 +663,7 @@ msgstr "Observera" msgctxt "grants_handler" msgid "You must visit all pages in the form before you can submit the application." msgstr "Du måste besöka alla sidor i formuläret innan du kan skicka in ansökan." + +msgctxt "grants_handler" +msgid "Application to copy" +msgstr "Ansökan om att kopiera" diff --git a/public/themes/custom/hdbt_subtheme/templates/webform/application-copy-dialog-content.html.twig b/public/themes/custom/hdbt_subtheme/templates/webform/application-copy-dialog-content.html.twig index 11fdb8af1..3cc165767 100644 --- a/public/themes/custom/hdbt_subtheme/templates/webform/application-copy-dialog-content.html.twig +++ b/public/themes/custom/hdbt_subtheme/templates/webform/application-copy-dialog-content.html.twig @@ -1,2 +1,2 @@ -
Kopioitava hakemus: {{ webformTitle }}
-Hakemustunnus: {{ applicationNumber }}
+{{ "Application to copy"|t({}, {'context': 'grants_handler'})}}: {{ webformTitle }}
+{{ "Application number"|t({}, {'context': 'grants_handler'})}}: {{ applicationNumber }}