Skip to content

Commit

Permalink
Fix and improve translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 1, 2024
1 parent 334b53b commit 06acbdb
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/templates/_settings/general/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{ forms.field({
label: "Cron Job"|t('campaign'),
instructions: "Create a cron job using the following console command to queue and run pending sendouts on a scheduled basis (every 10 minutes for example). Change `{phpBinPath}` to your PHP path (if different)."|t('campaign', {phpBinPath: phpBinPath}),
warning: isDynamicWebAliasUsed ? 'It appears that one or more of your site or asset volume URLs is using a dynamic `@web` alias. If not explicitly defined, the `@web` alias is unavailable with console commands and will return a blank string. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>'|t('campaign', {url: 'https://putyourlightson.com/plugins/campaign#how-sendouts-are-sent'}),
warning: isDynamicWebAliasUsed ? 'It appears that one or more of your site or asset volume URLs is using a dynamic `@web` alias. If not explicitly defined, the `@web` alias is unavailable with console commands and will return a blank string.'|t('campaign') ~ ' <a href="https://putyourlightson.com/plugins/campaign#how-sendouts-are-sent" class="go" target="_blank" rel="noopener">' ~ 'Learn more'|t('campaign') ~ '</a>',
}, code) }}

{{ forms.autosuggestField({
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_settings/recaptcha/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ forms.lightswitchField({
first: true,
label: "reCAPTCHA"|t('campaign'),
instructions: 'Enable reCAPTCHA v3 to protect mailing list subscription forms from bots. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>'|t('campaign', { url: 'https://developers.google.com/recaptcha/docs/v3' }),
instructions: 'Enable reCAPTCHA v3 to protect mailing list subscription forms from bots.'|t('campaign') ~ ' <a href="https://developers.google.com/recaptcha/docs/v3" class="go" target="_blank" rel="noopener">' ~ 'Learn more'|t('campaign') ~ '</a>',
warning: (config.reCaptcha is defined ? macros.configWarning('reCaptcha')),
id: 'reCaptcha',
name: 'reCaptcha',
Expand Down
4 changes: 2 additions & 2 deletions src/templates/_settings/turnstile/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ forms.lightswitchField({
first: true,
label: "Turnstile"|t('campaign'),
instructions: 'Enable Turnstile to protect mailing list subscription forms from bots using the “invisible” Turnstile widget. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>'|t('campaign', { url: 'https://developers.cloudflare.com/turnstile/' }),
instructions: 'Enable Turnstile to protect mailing list subscription forms from bots using the “invisible” Turnstile widget.'|t('campaign') ~ ' <a href="https://developers.cloudflare.com/turnstile/" class="go" target="_blank" rel="noopener">' ~ 'Learn more'|t('campaign') ~ '</a>',
warning: (config.turnstile is defined ? macros.configWarning('turnstile')),
id: 'turnstile',
name: 'turnstile',
Expand Down Expand Up @@ -56,7 +56,7 @@

{{ forms.autosuggestField({
label: "Turnstile Error Message"|t('campaign'),
instructions: "Your form submission was blocked. Please go back and verify that you are human."|t('campaign'),
instructions: "The error message to display if a form submission is blocked."|t('campaign'),
warning: (config.turnstileErrorMessage is defined ? macros.configWarning('turnstileErrorMessage')),
id: 'turnstileErrorMessage',
name: 'turnstileErrorMessage',
Expand Down
17 changes: 15 additions & 2 deletions src/translations/de/campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// -------------------------------------------------------------------------
'“{name}” Campaigns' => '',
'“{name}” Mailing Lists' => '',
'“Include original headers” must be enabled for each notification type.<br>See this <a href="{url}" target="_blank">article</a> for details on where and how to enable this.' => '',
'(reply to {email})' => '(an {email} antworten)',
'{count} pending sendout(s) queued.' => '{count} Sendung(en) in Warteschlange',
'{num, plural, =1{mailing list} other{mailing lists}}' => '{num, plural, =1{Mailing-Liste} other{Mailing-Listen}}',
Expand Down Expand Up @@ -233,6 +234,7 @@
'Create a template condition to apply to this segment. The `contact` tag is available in this context.' => 'Erstelle eine Template-Bedingung, die diesem Segment zugeordnet werden soll. Der `contact`-Tag ist in diesem Kontext verfügbar.',
'Create and view your ipstack.com API key at {link}' => 'Erstellen und betrachten Sie Ihren ipstack.com API-Schlüssel unter {link}',
'Create and view your reCAPTCHA keys at {link}' => 'Erstellen und betrachten Sie Ihre reCAPTCHA-Schlüssel unter {link}',
'Create and view your Turnstile keys at {link}' => '',
'Cron Job' => 'Cronjob',
'CSV file successfully queued for importing.' => 'CSV-Datei wurde erfolgreich in die Import-Warteschlange geladen.',
'CSV File' => 'CSV-Datei',
Expand Down Expand Up @@ -266,9 +268,10 @@
'Email settings saved.' => 'E-Mail-Einstellungen gespeichert.',
'Email Settings' => 'E-Mail-Einstellungen',
'Email' => 'E-Mail',
'Enable Anonymous Tracking' => '',
'Enable GeoIP to geolocate contacts by their IP addresses.' => 'Aktivieren Sie GeoIP, um Kontakte über ihre IP-Adresse zu lokalisieren.',
'Enable reCAPTCHA v3 to protect mailing list subscription forms from bots. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>' => 'Aktivieren Sie reCAPTCHA v3, um Mailing-Listen-Formulare vor Bots zu schützen. <a href="{url}" class="go" target="_blank" rel="noopener">Mehr erfahren</a>',
'Enable Anonymous Tracking' => '',
'Enable Turnstile to protect mailing list subscription forms from bots using the “invisible” Turnstile widget.' => '',
'End Date' => 'Enddatum',
'ends with' => 'endet mit',
'equals' => 'entspricht',
Expand Down Expand Up @@ -330,12 +333,13 @@
'is not' => 'ist nicht',
'is on' => 'ist auf',
'is' => 'ist',
'It appears that one or more of your site or asset volume URLs is using a dynamic `@web` alias. If not explicitly defined, the `@web` alias is unavailable with console commands and will return a blank string. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>' => 'Es sieht so aus, als ob eine oder mehrere Site- oder Datei-Volumen-URLs einen dynamischen `@web`-Alias nutzen. Falls nicht expliziert definiert ist der `@web`-Alias für Konsolen-Befehle nicht verfügbar und gibt einen leeren String zurück. <a href="{url}" class="go" target="_blank" rel="noopener">Mehr erfahren</a>',
'It appears that one or more of your site or asset volume URLs is using a dynamic `@web` alias. If not explicitly defined, the `@web` alias is unavailable with console commands and will return a blank string.' => 'Es sieht so aus, als ob eine oder mehrere Site- oder Datei-Volumen-URLs einen dynamischen `@web`-Alias nutzen. Falls nicht expliziert definiert ist der `@web`-Alias für Konsolen-Befehle nicht verfügbar und gibt einen leeren String zurück.',
'Last Activity' => 'Letzte Aktivität',
'Last activity' => 'Letzte Aktivität',
'Last Name' => 'Nachname',
'Last Sent' => 'Zuletzt gesendet',
'Last sent' => 'Zuletzt gesendet',
'Learn more' => 'Mehr erfahren',
'Light' => 'Hell',
'Link not found.' => 'Link nicht gefunden.',
'Links' => 'Links',
Expand Down Expand Up @@ -418,6 +422,7 @@
'No user groups exist.' => 'Es existiert keine Benutzergruppe.',
'None' => 'Keine',
'Normal' => 'Normal',
'Notification Contacts' => '',
'Notification Email Address' => 'Benachrichtigungs-E-Mail-Adresse',
'One or more condition rules to apply to this segment.' => 'Eine oder mehrere Bedingungen, die auf dieses Segment angewendet werden sollen.',
'One or more condition rules to apply to this sendout.' => 'Eine oder mehrere Bedingungen, die auf dieses Sendout angewendet werden sollen.',
Expand Down Expand Up @@ -592,13 +597,15 @@
'The amount of time to wait after subscribers join the list(s). Set to 0 for immediately.' => 'Die Zeitspanne, die nach Eintragung in die Liste(n) abgewartet werden muss. Auf 0 setzen für keine Wartezeit.',
'The campaign to send.' => 'Die zu sendende Kampagne.',
'The color theme of the reCAPTCHA widget.' => 'Das Farb-Theme des reCAPTCHA-Widgets.',
'The contacts to notify when sending of sendouts is complete or fails.' => '',
'The date and time at which to begin sending.' => 'Datum und Uhrzeit ab denen gesendet werden soll.',
'The date on which to end sending (leave blank for forever).' => 'Das Datum, ab dem nicht mehr gesendet werden soll (leerlassen für keinen Endzeitpunkt)',
'The days of the month on which to send.' => 'Tage im Monat, an denen gesendet werden soll.',
'The days of the week on which to send.' => 'Wochentage, an denen gesendet werden soll.',
'The default contacts to use for test emails (leave blank to use a contact with the same email address as the currently logged-in user).' => 'Die Standard-Kontakte für Test-E-Mails (Leerlassen nutzt den aktuell angemeldeten Benutzer)',
'The email sending service to use for sending.' => 'Der E-Mail-Service, der zum Senden genutzt werden soll.',
'The email subject (emojis allowed 🎉).' => 'Betreff der E-Mail (Emojis erlaubt 🎉).',
'The error message to display if a form submission is blocked.' => '',
'The execution time limit per sendout batch in seconds (set to 0 for unlimited).' => 'Das Zeitlimit zum Ausführen einer Sende-Charge in Sekunden (auf 0 setzen bedeutet ungebrenzte Zeit)',
'The file you selected to upload must be a CSV file.' => 'Die Datei, die Sie zum Hochladen ausgewählt haben, muss eine CSV-Datei sein.',
'The following contact fields are available:' => 'Die folgenden Kontakt-Felder sind verfügbar:',
Expand Down Expand Up @@ -631,6 +638,8 @@
'The template to use when a contact successfully unsubscribes from a mailing list (leave blank for default message template).' => 'Das Template, das genutzt werden soll, wenn ein Kontakt sich erfolgreich von einer Mailing-Liste abmeldet (Leerlassen für Standard-Template).',
'The template to use when a contact verifies their email address (leave blank for default message template).' => 'Das Template, das genutzt werden soll, wenn ein Kontakt seine E-Mail-Adresse verifiziert (Leerlassen für Standard-Template).',
'The time of day at which to send (recommended).' => 'Tageszeit, zu der gesendet werden soll (empfohlen)',
'The Turnstile secret key for this domain.' => '',
'The Turnstile site key for this domain.' => '',
'The value in the CSV file should be an array of element IDs surrounded by double quotation marks, for example: {value}' => '',
'The value in the CSV file should be an array of option values surrounded by double quotation marks, for example: {value1}. Two double quotation marks should be used for escaping string values, for example: {value2}' => '',
'This email address is blocked from subscribing.' => 'Diese E-Mail-Adresse wurde blockiert.',
Expand All @@ -651,6 +660,10 @@
'To' => 'An',
'Total' => 'Gesamt',
'Transport Type' => 'Transportart',
'Turnstile Error Message' => '',
'Turnstile Secret Key' => '',
'Turnstile Settings' => '',
'Turnstile Site Key' => '',
'Unable to upload CSV file.' => 'Hochladen der CSV-Datei nicht möglich.',
'Unknown' => 'Unbekannt',
'Unlimited' => 'Unbegrenzt',
Expand Down
18 changes: 16 additions & 2 deletions src/translations/en/campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// -------------------------------------------------------------------------
'“{name}” Campaigns' => '',
'“{name}” Mailing Lists' => '',
'“Include original headers” must be enabled for each notification type.<br>See this <a href="{url}" target="_blank">article</a> for details on where and how to enable this.' => '',
'(reply to {email})' => '',
'{count} pending sendout(s) queued.' => '',
'{num, plural, =1{mailing list} other{mailing lists}}' => '',
Expand Down Expand Up @@ -232,6 +233,8 @@
'Create a template condition to apply to this segment. The `contact` tag is available in this context.' => '',
'Create and view your ipstack.com API key at {link}' => '',
'Create and view your reCAPTCHA keys at {link}' => '',

Check failure on line 235 in src/translations/en/campaign.php

View workflow job for this annotation

GitHub Actions / PHPStan

Array has 2 duplicate keys with value 'Create and view your reCAPTCHA keys at {link}' ('Create and view your reCAPTCHA keys at {link}', 'Create and view your reCAPTCHA keys at {link}').
'Create and view your reCAPTCHA keys at {link}' => '',
'Create and view your Turnstile keys at {link}' => '',
'Cron Job' => '',
'CSV file successfully queued for importing.' => '',
'CSV File' => '',
Expand Down Expand Up @@ -265,9 +268,10 @@
'Email settings saved.' => '',
'Email Settings' => '',
'Email' => '',
'Enable Anonymous Tracking' => '',
'Enable GeoIP to geolocate contacts by their IP addresses.' => '',
'Enable reCAPTCHA v3 to protect mailing list subscription forms from bots. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>' => '',
'Enable Anonymous Tracking' => '',
'Enable Turnstile to protect mailing list subscription forms from bots using the “invisible” Turnstile widget.' => '',
'End Date' => '',
'ends with' => '',
'equals' => '',
Expand Down Expand Up @@ -329,12 +333,13 @@
'is not' => '',
'is on' => '',
'is' => '',
'It appears that one or more of your site or asset volume URLs is using a dynamic `@web` alias. If not explicitly defined, the `@web` alias is unavailable with console commands and will return a blank string. <a href="{url}" class="go" target="_blank" rel="noopener">Learn more</a>' => '',
'It appears that one or more of your site or asset volume URLs is using a dynamic `@web` alias. If not explicitly defined, the `@web` alias is unavailable with console commands and will return a blank string.' => '',
'Last Activity' => '',
'Last activity' => '',
'Last Name' => '',
'Last Sent' => '',
'Last sent' => '',
'Learn more' => '',
'Light' => '',
'Link not found.' => '',
'Links' => '',
Expand Down Expand Up @@ -417,6 +422,7 @@
'No user groups exist.' => '',
'None' => '',
'Normal' => '',
'Notification Contacts' => '',
'Notification Email Address' => '',
'One or more condition rules to apply to this segment.' => '',
'One or more condition rules to apply to this sendout.' => '',
Expand Down Expand Up @@ -591,13 +597,15 @@
'The amount of time to wait after subscribers join the list(s). Set to 0 for immediately.' => '',
'The campaign to send.' => '',
'The color theme of the reCAPTCHA widget.' => '',
'The contacts to notify when sending of sendouts is complete or fails.' => '',
'The date and time at which to begin sending.' => '',
'The date on which to end sending (leave blank for forever).' => '',
'The days of the month on which to send.' => '',
'The days of the week on which to send.' => '',
'The default contacts to use for test emails (leave blank to use a contact with the same email address as the currently logged-in user).' => '',
'The email sending service to use for sending.' => '',
'The email subject (emojis allowed 🎉).' => '',
'The error message to display if a form submission is blocked.' => '',
'The execution time limit per sendout batch in seconds (set to 0 for unlimited).' => '',
'The file you selected to upload must be a CSV file.' => '',
'The following contact fields are available:' => '',
Expand Down Expand Up @@ -630,6 +638,8 @@
'The template to use when a contact successfully unsubscribes from a mailing list (leave blank for default message template).' => '',
'The template to use when a contact verifies their email address (leave blank for default message template).' => '',
'The time of day at which to send (recommended).' => '',
'The Turnstile secret key for this domain.' => '',
'The Turnstile site key for this domain.' => '',
'The value in the CSV file should be an array of element IDs surrounded by double quotation marks, for example: {value}' => '',
'The value in the CSV file should be an array of option values surrounded by double quotation marks, for example: {value1}. Two double quotation marks should be used for escaping string values, for example: {value2}' => '',
'This email address is blocked from subscribing.' => '',
Expand All @@ -650,6 +660,10 @@
'To' => '',
'Total' => '',
'Transport Type' => '',
'Turnstile Error Message' => '',
'Turnstile Secret Key' => '',
'Turnstile Settings' => '',
'Turnstile Site Key' => '',
'Unable to upload CSV file.' => '',
'Unknown' => '',
'Unlimited' => '',
Expand Down
Loading

0 comments on commit 06acbdb

Please sign in to comment.