Skip to content

Commit 0106e43

Browse files
authored
Merge pull request #4 from mittwald/feat/notice-bold-leadins
Bold lead-ins for migration notices + refreshed German copy
2 parents 720ddad + 6591072 commit 0106e43

3 files changed

Lines changed: 23 additions & 12 deletions

File tree

imapsync.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public function render_form(array $attrib): string
155155
html::tag('strong', ['class' => 'imapsync-notice-title'], rcube::Q($this->gettext('noticetitle')))
156156
. html::tag('ul', ['class' => 'imapsync-notice-list'],
157157
html::tag('li', [], rcube::Q($this->gettext('noticepreserves')))
158-
. html::tag('li', [], rcube::Q($this->gettext('noticesynchronous')))
159-
. html::tag('li', [], rcube::Q($this->retryNoticeText()))
158+
. $this->noticeItem('noticesynchronoustitle', $this->gettext('noticesynchronous'))
159+
. $this->noticeItem('noticeretrytitle', $this->retryNoticeText())
160160
. html::tag('li', [], rcube::Q($this->gettext('noticeduration')))
161161
)
162162
);
@@ -359,6 +359,13 @@ private function allowInsecure(): bool
359359
return (bool) $this->rc->config->get('imapsync_allow_insecure', false);
360360
}
361361

362+
private function noticeItem(string $titleKey, string $body): string
363+
{
364+
return html::tag('li', [],
365+
html::tag('strong', [], rcube::Q($this->gettext($titleKey))) . ': ' . rcube::Q($body)
366+
);
367+
}
368+
362369
private function retryNoticeText(): string
363370
{
364371
$maxExecutionTime = $this->maxExecutionTime();

localization/de_DE.inc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77

88
$labels = [];
99
$labels['pagetitle'] = 'E-Mail Umzug';
10-
$labels['intro'] = 'Kopiert E-Mails aus einem anderen IMAP-Konto in dieses Postfach.';
11-
$labels['noticetitle'] = 'Bitte beachten';
12-
$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.';
13-
$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.';
14-
$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.';
15-
$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.';
16-
$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.';
10+
$labels['intro'] = 'Zieh deine Mails aus einem anderen IMAP-Konto direkt in dieses Postfach.';
11+
$labels['noticetitle'] = 'Gut zu wissen';
12+
$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.';
13+
$labels['noticesynchronoustitle'] = 'Tab offen lassen';
14+
$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.';
15+
$labels['noticeretrytitle'] = 'Bei Verbindungsabbruch';
16+
$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.';
17+
$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.';
18+
$labels['noticeduration'] = 'Bei großen Postfächern kann der Umzug ein paar Minuten dauern. Den Fortschritt siehst du erst am Ende – nicht zwischendurch.';
1719
$labels['sourcehost'] = 'Quellserver';
1820
$labels['sourceport'] = 'Quellport';
1921
$labels['encryption'] = 'Verschlüsselung';

localization/en_US.inc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ $labels['pagetitle'] = 'Email migration';
1010
$labels['intro'] = 'Copy mail from another IMAP account into this mailbox.';
1111
$labels['noticetitle'] = 'Before you start';
1212
$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.';
13-
$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.';
14-
$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.';
15-
$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.';
13+
$labels['noticesynchronoustitle'] = 'Keep this tab open';
14+
$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.';
15+
$labels['noticeretrytitle'] = 'If the connection drops';
16+
$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.';
17+
$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.';
1618
$labels['noticeduration'] = 'Large mailboxes can take a few minutes. You won\'t see progress while it runs — the summary shows up at the end.';
1719
$labels['sourcehost'] = 'Source host';
1820
$labels['sourceport'] = 'Source port';

0 commit comments

Comments
 (0)