From d56922c24e40716577b61db45fae6ae2472195c1 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Wed, 13 May 2026 07:11:55 +0200 Subject: [PATCH] Updating background progressing string for i18n --- public/s/js/upload.js | 4 ++-- src/inc/locales/de.json | 3 ++- src/inc/locales/en.json | 3 ++- src/inc/locales/nl.json | 3 ++- src/inc/locales/zange.json | 5 ++++- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/public/s/js/upload.js b/public/s/js/upload.js index 3f899e3..766cd0e 100644 --- a/public/s/js/upload.js +++ b/public/s/js/upload.js @@ -1687,9 +1687,9 @@ window.initUploadForm = (selector) => { successCount++; lastData = res; if (res.pending) { - // Background URL download — show toast using server's message + // Background URL download — show i18n toast if (typeof window.flashMessage === 'function') { - window.flashMessage(res.msg, 4000, 'info'); + window.flashMessage(window.f0ckI18n?.upload_url_queued_background || res.msg, 4000, 'info'); } } if (res.itemid) { diff --git a/src/inc/locales/de.json b/src/inc/locales/de.json index ed996a2..eb0ded7 100644 --- a/src/inc/locales/de.json +++ b/src/inc/locales/de.json @@ -67,7 +67,8 @@ "item_comment_placeholder": "Kommentar (optional)...", "item_tags_placeholder": "Tags...", "btn_add_urls": "URL(s) hinzufügen", - "tags_required_shitpost": "Alle Beiträge benötigen Tags" + "tags_required_shitpost": "Alle Beiträge benötigen Tags", + "url_queued_background": "URL Verarbeitung im Hintergrund gestartet." }, "auth": { "registering": "Wird registriert...", diff --git a/src/inc/locales/en.json b/src/inc/locales/en.json index a4d3ee0..93a6280 100644 --- a/src/inc/locales/en.json +++ b/src/inc/locales/en.json @@ -68,7 +68,8 @@ "item_comment_placeholder": "Comment (optional)...", "item_tags_placeholder": "Tags...", "btn_add_urls": "Add URL(s)", - "tags_required_shitpost": "All items need tags" + "tags_required_shitpost": "All items need tags", + "url_queued_background": "URL processing started in background." }, "auth": { "registering": "Registering...", diff --git a/src/inc/locales/nl.json b/src/inc/locales/nl.json index 6569354..40f29b2 100644 --- a/src/inc/locales/nl.json +++ b/src/inc/locales/nl.json @@ -67,7 +67,8 @@ "item_comment_placeholder": "Opmerking (optioneel)...", "item_tags_placeholder": "Etiketten...", "btn_add_urls": "URL(s) toevoegen", - "tags_required_shitpost": "Alle items hebben tags nodig" + "tags_required_shitpost": "Alle items hebben tags nodig", + "url_queued_background": "URL wordt op de achtergrond verwerkt." }, "auth": { "registering": "Registreren...", diff --git a/src/inc/locales/zange.json b/src/inc/locales/zange.json index 20cc56c..78ac0d7 100644 --- a/src/inc/locales/zange.json +++ b/src/inc/locales/zange.json @@ -65,7 +65,10 @@ "shitpost_success": "{n} Fetzen erfolgreich gepfeffert!", "shitposting_status": "Wird gepfeffert", "item_comment_placeholder": "Senf dazugeben (optional)...", - "item_tags_placeholder": "Etiketten..." + "item_tags_placeholder": "Etiketten...", + "btn_add_urls": "Elfe hinzufügen", + "tags_required_shitpost": "Alle Fetzen brauchen Etiketten", + "url_queued_background": "Elfen-Hintergrundverarbeitung gestartet." }, "auth": { "registering": "Registrierung wird in die Wege geleitet...",