Skip to content

Commit

Permalink
UHF-10903: Fix missing dialog translations. (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiisuominen authored Dec 4, 2024
1 parent a2aa3ef commit d51eda7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -27,7 +27,7 @@
*/
},
dialogTitle: Drupal.t('Copy application', [], { context: 'grants_handler' }),
dialogTitle: Drupal.t('Copy application'),
customSelector: 'application-copy-dialog'
})
});
Expand Down
8 changes: 8 additions & 0 deletions public/modules/custom/grants_handler/translations/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions public/modules/custom/grants_handler/translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<p><b>Kopioitava hakemus:</b> {{ webformTitle }}</p>
<p><b>Hakemustunnus:</b> {{ applicationNumber }}</p>
<p><b>{{ "Application to copy"|t({}, {'context': 'grants_handler'})}}:</b> {{ webformTitle }}</p>
<p><b>{{ "Application number"|t({}, {'context': 'grants_handler'})}}:</b> {{ applicationNumber }}</p>

0 comments on commit d51eda7

Please sign in to comment.