diff --git a/imapsync.php b/imapsync.php index b57a6bc..f2c3786 100644 --- a/imapsync.php +++ b/imapsync.php @@ -155,8 +155,8 @@ public function render_form(array $attrib): string html::tag('strong', ['class' => 'imapsync-notice-title'], rcube::Q($this->gettext('noticetitle'))) . html::tag('ul', ['class' => 'imapsync-notice-list'], html::tag('li', [], rcube::Q($this->gettext('noticepreserves'))) - . html::tag('li', [], rcube::Q($this->gettext('noticesynchronous'))) - . html::tag('li', [], rcube::Q($this->retryNoticeText())) + . $this->noticeItem('noticesynchronoustitle', $this->gettext('noticesynchronous')) + . $this->noticeItem('noticeretrytitle', $this->retryNoticeText()) . html::tag('li', [], rcube::Q($this->gettext('noticeduration'))) ) ); @@ -359,6 +359,13 @@ private function allowInsecure(): bool return (bool) $this->rc->config->get('imapsync_allow_insecure', false); } + private function noticeItem(string $titleKey, string $body): string + { + return html::tag('li', [], + html::tag('strong', [], rcube::Q($this->gettext($titleKey))) . ': ' . rcube::Q($body) + ); + } + private function retryNoticeText(): string { $maxExecutionTime = $this->maxExecutionTime(); diff --git a/localization/de_DE.inc b/localization/de_DE.inc index 87bec04..3bc49d4 100644 --- a/localization/de_DE.inc +++ b/localization/de_DE.inc @@ -7,13 +7,15 @@ $labels = []; $labels['pagetitle'] = 'E-Mail Umzug'; -$labels['intro'] = 'Kopiert E-Mails aus einem anderen IMAP-Konto in dieses Postfach.'; -$labels['noticetitle'] = 'Bitte beachten'; -$labels['noticepreserves'] = 'Deine vorhandenen Mails bleiben unangetastet — der Umzug fügt nur die neuen Nachrichten aus dem Quellkonto zusätzlich hinzu. Es wird nichts überschrieben oder gelöscht.'; -$labels['noticesynchronous'] = 'Lass diesen Tab geöffnet, bis der Vorgang abgeschlossen ist. Schließt du ihn vorher, läuft der Umzug möglicherweise nicht vollständig durch — und du siehst am Ende auch nicht, was tatsächlich kopiert wurde.'; -$labels['noticeretry'] = 'Wenn etwas dazwischenkommt — Tab versehentlich geschlossen, kurz kein Internet, Timeout — starte nicht sofort neu. Der Vorgang läuft im Hintergrund oft noch ein paar Minuten weiter. Schau ins Postfach: sobald keine neuen Mails mehr eintreffen und die Postfachgröße nicht weiter wächst, ist er abgeschlossen und du kannst beruhigt erneut starten. Bereits kopierte Mails überspringt der nächste Lauf automatisch.'; -$labels['noticeretrylimit'] = 'Der Sync läuft bis zu %seconds% Sekunden. Wenn dein Browser vorher aufgibt (Tab geschlossen, kurz kein Internet, JavaScript-Timeout), läuft der Vorgang serverseitig bis zu dieser Grenze trotzdem weiter, auch wenn du nichts mehr siehst. Starte deshalb nicht sofort neu. Schau ins Postfach: sobald keine neuen Mails mehr eintreffen und die Postfachgröße nicht weiter wächst, ist er abgeschlossen und du kannst beruhigt erneut starten. Bereits kopierte Mails überspringt der nächste Lauf automatisch.'; -$labels['noticeduration'] = 'Bei großen Postfächern kann das ein paar Minuten dauern. Während es läuft, siehst du keinen Fortschritt — die Übersicht erscheint erst am Ende.'; +$labels['intro'] = 'Zieh deine Mails aus einem anderen IMAP-Konto direkt in dieses Postfach.'; +$labels['noticetitle'] = 'Gut zu wissen'; +$labels['noticepreserves'] = 'Deine vorhandenen Mails bleiben unverändert – wir fügen nur neue Nachrichten aus dem Quellkonto hinzu. Es wird nichts überschrieben oder gelöscht.'; +$labels['noticesynchronoustitle'] = 'Tab offen lassen'; +$labels['noticesynchronous'] = 'Lass diese Seite geöffnet, bis der Umzug abgeschlossen ist. Schließt du den Tab vorher, kann der Vorgang abbrechen – und du siehst am Ende möglicherweise nicht alles, was kopiert wurde.'; +$labels['noticeretrytitle'] = 'Bei Verbindungsabbruch'; +$labels['noticeretry'] = 'Kein Problem – der Umzug läuft serverseitig weiter, auch wenn dein Browser zwischendurch geschlossen wird oder die Verbindung kurz abbricht. Starte den Vorgang danach einfach neu; bereits kopierte Mails werden automatisch übersprungen.'; +$labels['noticeretrylimit'] = 'Kein Problem – der Umzug läuft serverseitig bis zu %seconds% Sekunden weiter, auch wenn dein Browser zwischendurch geschlossen wird oder die Verbindung kurz abbricht. Starte den Vorgang danach einfach neu; bereits kopierte Mails werden automatisch übersprungen.'; +$labels['noticeduration'] = 'Bei großen Postfächern kann der Umzug ein paar Minuten dauern. Den Fortschritt siehst du erst am Ende – nicht zwischendurch.'; $labels['sourcehost'] = 'Quellserver'; $labels['sourceport'] = 'Quellport'; $labels['encryption'] = 'Verschlüsselung'; diff --git a/localization/en_US.inc b/localization/en_US.inc index 06f96fc..7cffd87 100644 --- a/localization/en_US.inc +++ b/localization/en_US.inc @@ -10,9 +10,11 @@ $labels['pagetitle'] = 'Email migration'; $labels['intro'] = 'Copy mail from another IMAP account into this mailbox.'; $labels['noticetitle'] = 'Before you start'; $labels['noticepreserves'] = 'Your existing messages stay untouched — the migration only adds new ones from the source account on top of what is already here. Nothing is overwritten or deleted.'; -$labels['noticesynchronous'] = 'Keep this tab open until the migration finishes. If you close it earlier, the migration may not run to completion — and you won\'t see what was actually copied either.'; -$labels['noticeretry'] = 'If something cuts the migration short — you closed the tab, your internet dropped for a moment, a timeout hit — don\'t restart right away. The previous run often keeps going for a few more minutes in the background. Check your mailbox: once new messages stop arriving and the mailbox size stops growing, it\'s done and you can safely start over. The next run skips messages that are already there.'; -$labels['noticeretrylimit'] = 'The sync runs for up to %seconds% seconds. If your browser gives up earlier (tab closed, brief network blip, JavaScript timeout), the migration keeps going on the server up to that limit even though you cannot see it. So do not restart right away. Check your mailbox: once new messages stop arriving and the mailbox size stops growing, it is done and you can safely start over. Already-copied messages are skipped on the next run.'; +$labels['noticesynchronoustitle'] = 'Keep this tab open'; +$labels['noticesynchronous'] = 'Leave this page open until the migration finishes. If you close the tab first, the run can stop, and you might not see everything that was copied.'; +$labels['noticeretrytitle'] = 'If the connection drops'; +$labels['noticeretry'] = 'No problem. The migration keeps running on the server even if your browser closes or the connection drops briefly. Just start it again afterwards; already-copied messages are skipped automatically.'; +$labels['noticeretrylimit'] = 'No problem. The migration keeps running on the server for up to %seconds% seconds, even if your browser closes or the connection drops briefly. Just start it again afterwards; already-copied messages are skipped automatically.'; $labels['noticeduration'] = 'Large mailboxes can take a few minutes. You won\'t see progress while it runs — the summary shows up at the end.'; $labels['sourcehost'] = 'Source host'; $labels['sourceport'] = 'Source port';