From 3bd530024f335062d75bd39bb0a082a28fcac652 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Fri, 20 Sep 2024 18:05:33 +0200 Subject: [PATCH] add no board selected alert, add missing translations --- public/translations/ar/default.json | 5 ++++- public/translations/bn/default.json | 5 ++++- public/translations/cs/default.json | 5 ++++- public/translations/da/default.json | 5 ++++- public/translations/de/default.json | 5 ++++- public/translations/el/default.json | 5 ++++- public/translations/en/default.json | 5 ++++- public/translations/es/default.json | 5 ++++- public/translations/fa/default.json | 5 ++++- public/translations/fi/default.json | 5 ++++- public/translations/fil/default.json | 5 ++++- public/translations/fr/default.json | 5 ++++- public/translations/he/default.json | 5 ++++- public/translations/hi/default.json | 5 ++++- public/translations/hu/default.json | 5 ++++- public/translations/id/default.json | 5 ++++- public/translations/it/default.json | 5 ++++- public/translations/ja/default.json | 5 ++++- public/translations/ko/default.json | 5 ++++- public/translations/mr/default.json | 5 ++++- public/translations/nl/default.json | 5 ++++- public/translations/no/default.json | 5 ++++- public/translations/pl/default.json | 5 ++++- public/translations/pt/default.json | 5 ++++- public/translations/ro/default.json | 5 ++++- public/translations/ru/default.json | 5 ++++- public/translations/sq/default.json | 5 ++++- public/translations/sv/default.json | 5 ++++- public/translations/te/default.json | 5 ++++- public/translations/th/default.json | 5 ++++- public/translations/tr/default.json | 5 ++++- public/translations/uk/default.json | 5 ++++- public/translations/ur/default.json | 5 ++++- public/translations/vi/default.json | 5 ++++- public/translations/zh/default.json | 5 ++++- src/components/post-form/post-form.tsx | 15 ++++++++++----- src/components/reply-modal/reply-modal.tsx | 4 ++-- 37 files changed, 152 insertions(+), 42 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 25028594..5658f742 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -233,5 +233,8 @@ "order": "ترتيب", "text": "نص", "filtered_threads": "المواضيع المفلترة", - "missing_link_confirm": "مشاركتك تفتقر إلى رابط يحتوي على صورة، سيتم تصفيتها افتراضيًا على Plebchan. يمكنك تعطيل هذا الفلتر في الإعدادات، أو عرض مشاركتك على عميل Plebbit آخر، مثل Seedit. هل تريد النشر على أي حال؟" + "missing_link_confirm": "مشاركتك تفتقر إلى رابط يحتوي على صورة، سيتم تصفيتها افتراضيًا على Plebchan. يمكنك تعطيل هذا الفلتر في الإعدادات، أو عرض مشاركتك على عميل Plebbit آخر، مثل Seedit. هل تريد النشر على أي حال؟", + "no_board_selected_warning": "يرجى تحديد لوحة قبل النشر.", + "invalid_url_alert": "الرابط المقدم ليس عنوان URL صالحًا.", + "empty_comment_alert": "لا يمكن نشر تعليق فارغ." } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index c89b8093..7e5b1e9a 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -233,5 +233,8 @@ "order": "অর্ডার", "text": "টেক্সট", "filtered_threads": "ফিল্টার করা থ্রেড", - "missing_link_confirm": "আপনার পোস্টে একটি চিত্র সহ একটি লিঙ্ক নেই, এটি ডিফল্টভাবে Plebchan এ ফিল্টার করা হবে। আপনি সেটিংসে এই ফিল্টারটি অক্ষম করতে পারেন, অথবা Seedit এর মতো অন্য Plebbit ক্লায়েন্টে আপনার পোস্টটি দেখতে পারেন। তবুও পোস্ট করতে চান?" + "missing_link_confirm": "আপনার পোস্টে একটি চিত্র সহ একটি লিঙ্ক নেই, এটি ডিফল্টভাবে Plebchan এ ফিল্টার করা হবে। আপনি সেটিংসে এই ফিল্টারটি অক্ষম করতে পারেন, অথবা Seedit এর মতো অন্য Plebbit ক্লায়েন্টে আপনার পোস্টটি দেখতে পারেন। তবুও পোস্ট করতে চান?", + "no_board_selected_warning": "পোস্ট করার আগে একটি বোর্ড নির্বাচন করুন।", + "invalid_url_alert": "দেওয়া লিঙ্কটি একটি বৈধ URL নয়।", + "empty_comment_alert": "খালি মন্তব্য পোস্ট করা যাবে না।" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 04ac50ea..1314578b 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -233,5 +233,8 @@ "order": "Pořadí", "text": "Text", "filtered_threads": "Filtr threads", - "missing_link_confirm": "Váš příspěvek postrádá odkaz s obrázkem, ve výchozím nastavení bude na Plebchanu filtrován. Tento filtr můžete vypnout v nastavení nebo si můžete svůj příspěvek prohlédnout na jiném klientovi Plebbit, jako je Seedit. Přesto zveřejnit?" + "missing_link_confirm": "Váš příspěvek postrádá odkaz s obrázkem, ve výchozím nastavení bude na Plebchanu filtrován. Tento filtr můžete vypnout v nastavení nebo si můžete svůj příspěvek prohlédnout na jiném klientovi Plebbit, jako je Seedit. Přesto zveřejnit?", + "no_board_selected_warning": "Vyberte desku před odesláním.", + "invalid_url_alert": "Poskytnutý odkaz není platná adresa URL.", + "empty_comment_alert": "Nelze publikovat prázdný komentář." } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index d871da1c..963fb5f4 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -233,5 +233,8 @@ "order": "Rækkefølge", "text": "Tekst", "filtered_threads": "Filtrerede tråde", - "missing_link_confirm": "Dit indlæg mangler et link med et billede, det vil som standard blive filtreret på Plebchan. Du kan deaktivere dette filter i indstillingerne eller se dit indlæg på en anden Plebbit-klient, som Seedit. Vil du alligevel poste?" + "missing_link_confirm": "Dit indlæg mangler et link med et billede, det vil som standard blive filtreret på Plebchan. Du kan deaktivere dette filter i indstillingerne eller se dit indlæg på en anden Plebbit-klient, som Seedit. Vil du alligevel poste?", + "no_board_selected_warning": "Vælg en tavle, før du poster.", + "invalid_url_alert": "Det angivne link er ikke en gyldig URL.", + "empty_comment_alert": "Kan ikke poste en tom kommentar." } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 18261438..25d81110 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -233,5 +233,8 @@ "order": "Reihenfolge", "text": "Text", "filtered_threads": "Gefilterte Threads", - "missing_link_confirm": "Ihr Beitrag fehlt ein Link mit einem Bild, er wird standardmäßig auf Plebchan herausgefiltert. Sie können diesen Filter in den Einstellungen deaktivieren oder Ihren Beitrag in einem anderen Plebbit-Client wie Seedit anzeigen. Trotzdem posten?" + "missing_link_confirm": "Ihr Beitrag fehlt ein Link mit einem Bild, er wird standardmäßig auf Plebchan herausgefiltert. Sie können diesen Filter in den Einstellungen deaktivieren oder Ihren Beitrag in einem anderen Plebbit-Client wie Seedit anzeigen. Trotzdem posten?", + "no_board_selected_warning": "Bitte wählen Sie ein Board, bevor Sie posten.", + "invalid_url_alert": "Der bereitgestellte Link ist keine gültige URL.", + "empty_comment_alert": "Kann keinen leeren Kommentar posten." } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index eaacf120..d6721d6c 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -233,5 +233,8 @@ "order": "Σειρά", "text": "Κείμενο", "filtered_threads": "Φιλτραρισμένα θέματα", - "missing_link_confirm": "Η ανάρτησή σας λείπει από έναν σύνδεσμο με μια εικόνα, θα φιλτραριστεί από προεπιλογή στο Plebchan. Μπορείτε να απενεργοποιήσετε αυτό το φίλτρο στις ρυθμίσεις ή να δείτε την ανάρτησή σας σε έναν άλλο πελάτη Plebbit, όπως το Seedit. Θέλετε να δημοσιεύσετε ούτως ή άλλως;" + "missing_link_confirm": "Η ανάρτησή σας λείπει από έναν σύνδεσμο με μια εικόνα, θα φιλτραριστεί από προεπιλογή στο Plebchan. Μπορείτε να απενεργοποιήσετε αυτό το φίλτρο στις ρυθμίσεις ή να δείτε την ανάρτησή σας σε έναν άλλο πελάτη Plebbit, όπως το Seedit. Θέλετε να δημοσιεύσετε ούτως ή άλλως;", + "no_board_selected_warning": "Παρακαλώ επιλέξτε μια κατηγορία πριν δημοσιεύσετε.", + "invalid_url_alert": "Ο παρεχόμενος σύνδεσμος δεν είναι έγκυρη διεύθυνση URL.", + "empty_comment_alert": "Δεν μπορεί να δημοσιευτεί κενό σχόλιο." } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 9bb0e77b..d9212265 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -233,5 +233,8 @@ "order": "Order", "text": "Text", "filtered_threads": "Filtered threads", - "missing_link_confirm": "Your post is missing a link with an image, it will be filtered out by default on Plebchan. You can disable this filter in the settings, or view your post on another Plebbit client, like Seedit. Post anyway?" + "missing_link_confirm": "Your post is missing a link with an image, it will be filtered out by default on Plebchan. You can disable this filter in the settings, or view your post on another Plebbit client, like Seedit. Post anyway?", + "no_board_selected_warning": "Please select a board before posting.", + "invalid_url_alert": "The provided link is not a valid URL.", + "empty_comment_alert": "Cannot post empty comment." } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index b2254052..460ef69d 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -233,5 +233,8 @@ "order": "Orden", "text": "Texto", "filtered_threads": "Hilos filtrados", - "missing_link_confirm": "Tu publicación falta un enlace con una imagen, se filtrará de forma predeterminada en Plebchan. Puedes desactivar este filtro en la configuración, o ver tu publicación en otro cliente de Plebbit, como Seedit. ¿Publicar de todos modos?" + "missing_link_confirm": "Tu publicación falta un enlace con una imagen, se filtrará de forma predeterminada en Plebchan. Puedes desactivar este filtro en la configuración, o ver tu publicación en otro cliente de Plebbit, como Seedit. ¿Publicar de todos modos?", + "no_board_selected_warning": "Por favor, selecciona una tabla antes de publicar.", + "invalid_url_alert": "El enlace proporcionado no es una URL válida.", + "empty_comment_alert": "No se puede publicar un comentario vacío." } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 04439e45..b4545512 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -233,5 +233,8 @@ "order": "ترتیب", "text": "متن", "filtered_threads": "رشته‌های فیلتر شده", - "missing_link_confirm": "پست شما دارای یک لینک با تصویر نیست، به‌طور پیش‌فرض در Plebchan فیلتر خواهد شد. شما می‌توانید این فیلتر را در تنظیمات غیرفعال کنید یا پست خود را در یک کلاینت Plebbit دیگر، مانند Seedit مشاهده کنید. با این حال، پست کنید؟" + "missing_link_confirm": "پست شما دارای یک لینک با تصویر نیست، به‌طور پیش‌فرض در Plebchan فیلتر خواهد شد. شما می‌توانید این فیلتر را در تنظیمات غیرفعال کنید یا پست خود را در یک کلاینت Plebbit دیگر، مانند Seedit مشاهده کنید. با این حال، پست کنید؟", + "no_board_selected_warning": "لطفاً قبل از ارسال یک تابلو انتخاب کنید.", + "invalid_url_alert": "لینک ارائه شده یک URL معتبر نیست.", + "empty_comment_alert": "نمی‌توان نظر خالی ارسال کرد." } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index cd8eb5ef..de2205a4 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -233,5 +233,8 @@ "order": "Järjestys", "text": "Teksti", "filtered_threads": "Suodatetut ketjut", - "missing_link_confirm": "Viestistäsi puuttuu kuvaan liittyvä linkki, se suodatetaan oletusarvoisesti Plebchanissa. Voit poistaa tämän suodattimen käytöstä asetuksissa tai katsoa viestiäsi toisella Plebbit-asiakkaalla, kuten Seedit. Haluaako silti julkaista?" + "missing_link_confirm": "Viestistäsi puuttuu kuvaan liittyvä linkki, se suodatetaan oletusarvoisesti Plebchanissa. Voit poistaa tämän suodattimen käytöstä asetuksissa tai katsoa viestiäsi toisella Plebbit-asiakkaalla, kuten Seedit. Haluaako silti julkaista?", + "no_board_selected_warning": "Valitse taulu ennen julkaisemista.", + "invalid_url_alert": "Annettu linkki ei ole voimassa oleva URL.", + "empty_comment_alert": "Ei voi julkaista tyhjää kommenttia." } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index a1bb1b91..f5c50431 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -233,5 +233,8 @@ "order": "Kaayusan", "text": "Teksto", "filtered_threads": "Na-filter na mga thread", - "missing_link_confirm": "Ang iyong post ay walang link na may larawan, ito ay awtomatikong magiging filter sa Plebchan. Maaari mong huwag paganahin ang filter na ito sa mga setting, o tingnan ang iyong post sa ibang Plebbit client, tulad ng Seedit. Mag-post pa rin?" + "missing_link_confirm": "Ang iyong post ay walang link na may larawan, ito ay awtomatikong magiging filter sa Plebchan. Maaari mong huwag paganahin ang filter na ito sa mga setting, o tingnan ang iyong post sa ibang Plebbit client, tulad ng Seedit. Mag-post pa rin?", + "no_board_selected_warning": "Mangyaring pumili ng board bago mag-post.", + "invalid_url_alert": "Ang ibinigay na link ay hindi isang wastong URL.", + "empty_comment_alert": "Hindi makapag-post ng walang laman na komento." } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 4405f671..9a9828c2 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -233,5 +233,8 @@ "order": "Ordre", "text": "Texte", "filtered_threads": "Threads filtrés", - "missing_link_confirm": "Votre publication est manquante d'un lien avec une image, elle sera filtrée par défaut sur Plebchan. Vous pouvez désactiver ce filtre dans les paramètres, ou voir votre publication sur un autre client Plebbit, comme Seedit. Publier quand même ?" + "missing_link_confirm": "Votre publication est manquante d'un lien avec une image, elle sera filtrée par défaut sur Plebchan. Vous pouvez désactiver ce filtre dans les paramètres, ou voir votre publication sur un autre client Plebbit, comme Seedit. Publier quand même ?", + "no_board_selected_warning": "Veuillez sélectionner un tableau avant de publier.", + "invalid_url_alert": "Le lien fourni n'est pas une URL valide.", + "empty_comment_alert": "Impossible de publier un commentaire vide." } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index b94207af..3e41fd83 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -233,5 +233,8 @@ "order": "סדר", "text": "טקסט", "filtered_threads": "אשכולות ממוינים", - "missing_link_confirm": "הפוסט שלך חסר קישור עם תמונה, הוא ית过滤 ברירת מחדל ב-Plebchan. אתה יכול לבטל את הפילטר הזה בהגדרות, או לצפות בפוסט שלך בלקוח Plebbit אחר, כמו Seedit. לפרסם בכל מקרה?" + "missing_link_confirm": "הפוסט שלך חסר קישור עם תמונה, הוא ית过滤 ברירת מחדל ב-Plebchan. אתה יכול לבטל את הפילטר הזה בהגדרות, או לצפות בפוסט שלך בלקוח Plebbit אחר, כמו Seedit. לפרסם בכל מקרה?", + "no_board_selected_warning": "אנא בחר לוח לפני פרסום.", + "invalid_url_alert": "הלינק שסופק אינו כתובת URL חוקית.", + "empty_comment_alert": "לא ניתן לפרסם תגובה ריקה." } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index cdc74c37..ac268617 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -233,5 +233,8 @@ "order": "क्रम", "text": "पाठ", "filtered_threads": "फ़िल्टर किए गए थ्रेड्स", - "missing_link_confirm": "आपके पोस्ट में एक छवि के साथ लिंक नहीं है, इसे डिफ़ॉल्ट रूप से Plebchan पर फ़िल्टर किया जाएगा। आप सेटिंग्स में इस फ़िल्टर को अक्षम कर सकते हैं, या अपने पोस्ट को किसी अन्य Plebbit क्लाइंट, जैसे Seedit पर देख सकते हैं। फिर भी पोस्ट करें?" + "missing_link_confirm": "आपके पोस्ट में एक छवि के साथ लिंक नहीं है, इसे डिफ़ॉल्ट रूप से Plebchan पर फ़िल्टर किया जाएगा। आप सेटिंग्स में इस फ़िल्टर को अक्षम कर सकते हैं, या अपने पोस्ट को किसी अन्य Plebbit क्लाइंट, जैसे Seedit पर देख सकते हैं। फिर भी पोस्ट करें?", + "no_board_selected_warning": "पोस्ट करने से पहले कृपया एक बोर्ड चुनें।", + "invalid_url_alert": "प्रदत्त लिंक एक वैध URL नहीं है।", + "empty_comment_alert": "खाली टिप्पणी पोस्ट नहीं कर सकते।" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 76644f6b..7697c66a 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -233,5 +233,8 @@ "order": "Rendelés", "text": "Szöveg", "filtered_threads": "Szűrt szálak", - "missing_link_confirm": "A bejegyzésedből hiányzik egy képet tartalmazó hivatkozás, alapértelmezés szerint kiszűrésre kerül a Plebchan-on. Ezt a szűrőt letilthatod a beállításokban, vagy megnézheted a bejegyzésedet egy másik Plebbit kliensben, például a Seedit-en. Mégis posztolj?" + "missing_link_confirm": "A bejegyzésedből hiányzik egy képet tartalmazó hivatkozás, alapértelmezés szerint kiszűrésre kerül a Plebchan-on. Ezt a szűrőt letilthatod a beállításokban, vagy megnézheted a bejegyzésedet egy másik Plebbit kliensben, például a Seedit-en. Mégis posztolj?", + "no_board_selected_warning": "Kérlek, válassz egy táblát a közzététel előtt.", + "invalid_url_alert": "A megadott hivatkozás nem érvényes URL.", + "empty_comment_alert": "Üres hozzászólást nem lehet közzétenni." } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 20af70c7..9896cf4b 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -233,5 +233,8 @@ "order": "Urutan", "text": "Teks", "filtered_threads": "Thread yang difilter", - "missing_link_confirm": "Postingan Anda tidak memiliki tautan dengan gambar, itu akan difilter secara default di Plebchan. Anda dapat menonaktifkan filter ini di pengaturan, atau melihat postingan Anda di klien Plebbit lain, seperti Seedit. Posting saja?" + "missing_link_confirm": "Postingan Anda tidak memiliki tautan dengan gambar, itu akan difilter secara default di Plebchan. Anda dapat menonaktifkan filter ini di pengaturan, atau melihat postingan Anda di klien Plebbit lain, seperti Seedit. Posting saja?", + "no_board_selected_warning": "Silakan pilih papan sebelum memposting.", + "invalid_url_alert": "Tautan yang diberikan bukan URL yang valid.", + "empty_comment_alert": "Tidak dapat memposting komentar kosong." } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 9320ab57..77142f9c 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -233,5 +233,8 @@ "order": "Ordine", "text": "Testo", "filtered_threads": "Thread filtrati", - "missing_link_confirm": "Il tuo post è privo di un link con un'immagine, verrà filtrato per impostazione predefinita su Plebchan. Puoi disabilitare questo filtro nelle impostazioni o visualizzare il tuo post su un altro client Plebbit, come Seedit. Pubblica comunque?" + "missing_link_confirm": "Il tuo post è privo di un link con un'immagine, verrà filtrato per impostazione predefinita su Plebchan. Puoi disabilitare questo filtro nelle impostazioni o visualizzare il tuo post su un altro client Plebbit, come Seedit. Pubblica comunque?", + "no_board_selected_warning": "Per favore, seleziona una board prima di pubblicare.", + "invalid_url_alert": "Il link fornito non è un URL valido.", + "empty_comment_alert": "Impossibile pubblicare un commento vuoto." } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index d41d38fd..3e34f8fe 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -233,5 +233,8 @@ "order": "順序", "text": "テキスト", "filtered_threads": "フィルタリングされたスレッド", - "missing_link_confirm": "あなたの投稿には画像付きのリンクがありません。それはPlebchanでデフォルトでフィルタリングされます。このフィルタを設定で無効にするか、Seeditのような別のPlebbitクライアントで投稿を表示できます。それでも投稿しますか?" + "missing_link_confirm": "あなたの投稿には画像付きのリンクがありません。それはPlebchanでデフォルトでフィルタリングされます。このフィルタを設定で無効にするか、Seeditのような別のPlebbitクライアントで投稿を表示できます。それでも投稿しますか?", + "no_board_selected_warning": "投稿する前にボードを選択してください。", + "invalid_url_alert": "提供されたリンクは有効なURLではありません。", + "empty_comment_alert": "空のコメントは投稿できません。" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index f707dcd9..23b9aacf 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -233,5 +233,8 @@ "order": "순서", "text": "텍스트", "filtered_threads": "필터링된 스레드", - "missing_link_confirm": "당신의 게시물에는 이미지가 포함된 링크가 없습니다. 기본적으로 Plebchan에서 필터링됩니다. 설정에서 이 필터를 비활성화하거나 Seedit와 같은 다른 Plebbit 클라이언트에서 게시물을 볼 수 있습니다. 그래도 게시하시겠습니까?" + "missing_link_confirm": "당신의 게시물에는 이미지가 포함된 링크가 없습니다. 기본적으로 Plebchan에서 필터링됩니다. 설정에서 이 필터를 비활성화하거나 Seedit와 같은 다른 Plebbit 클라이언트에서 게시물을 볼 수 있습니다. 그래도 게시하시겠습니까?", + "no_board_selected_warning": "게시하기 전에 보드를 선택하십시오.", + "invalid_url_alert": "제공된 링크는 유효한 URL이 아닙니다.", + "empty_comment_alert": "빈 댓글을 게시할 수 없습니다." } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index d6943a08..31e9f034 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -233,5 +233,8 @@ "order": "आदेश", "text": "पाठ", "filtered_threads": "फिल्टर केलेले ध糹रे", - "missing_link_confirm": "तुमच्या पोस्टमध्ये चित्रासह लिंक नाही, हे डिफॉल्टवर Plebchan द्वारे फिल्टर केले जाईल. तुम्ही सेटिंग्जमध्ये हा फिल्टर अक्षम करू शकता किंवा Seedit सारख्या दुसऱ्या Plebbit क्लायंटवर तुमचा पोस्ट पाहू शकता. तरीही पोस्ट करायचे आहे का?" + "missing_link_confirm": "तुमच्या पोस्टमध्ये चित्रासह लिंक नाही, हे डिफॉल्टवर Plebchan द्वारे फिल्टर केले जाईल. तुम्ही सेटिंग्जमध्ये हा फिल्टर अक्षम करू शकता किंवा Seedit सारख्या दुसऱ्या Plebbit क्लायंटवर तुमचा पोस्ट पाहू शकता. तरीही पोस्ट करायचे आहे का?", + "no_board_selected_warning": "पोस्ट करण्यापूर्वी कृपया एक बोर्ड निवडा.", + "invalid_url_alert": "दिलेला लिंक वैध URL नाही.", + "empty_comment_alert": "रिक्त टिप्पणी पोस्ट करू शकत नाही." } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 4096f5e6..44a1e2b8 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -233,5 +233,8 @@ "order": "Volgorde", "text": "Tekst", "filtered_threads": "Gefilterde threads", - "missing_link_confirm": "Je bericht mist een link met een afbeelding, deze zal standaard op Plebchan worden gefilterd. Je kunt deze filter in de instellingen uitschakelen of je bericht bekijken op een andere Plebbit-client, zoals Seedit. Toch posten?" + "missing_link_confirm": "Je bericht mist een link met een afbeelding, deze zal standaard op Plebchan worden gefilterd. Je kunt deze filter in de instellingen uitschakelen of je bericht bekijken op een andere Plebbit-client, zoals Seedit. Toch posten?", + "no_board_selected_warning": "Selecteer een bord voordat je plaatst.", + "invalid_url_alert": "De opgegeven link is geen geldige URL.", + "empty_comment_alert": "Kan geen lege opmerking plaatsen." } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 1c9d8a49..5fc05925 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -233,5 +233,8 @@ "order": "Rekkefølge", "text": "Tekst", "filtered_threads": "Filtrerte tråder", - "missing_link_confirm": "Innlegget ditt mangler en lenke med et bilde, og vil bli filtrert som standard på Plebchan. Du kan deaktivere dette filteret i innstillingene, eller se innlegget ditt på en annen Plebbit-klient, som Seedit. Vil du legge ut uansett?" + "missing_link_confirm": "Innlegget ditt mangler en lenke med et bilde, og vil bli filtrert som standard på Plebchan. Du kan deaktivere dette filteret i innstillingene, eller se innlegget ditt på en annen Plebbit-klient, som Seedit. Vil du legge ut uansett?", + "no_board_selected_warning": "Vennligst velg et brett før du poster.", + "invalid_url_alert": "Den angitte lenken er ikke en gyldig URL.", + "empty_comment_alert": "Kan ikke poste tom kommentar." } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 625d612a..6088463d 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -233,5 +233,8 @@ "order": "Kolejność", "text": "Tekst", "filtered_threads": "Filtrowane wątki", - "missing_link_confirm": "Twój post nie zawiera linku z obrazem, domyślnie zostanie przefiltrowany na Plebchan. Możesz wyłączyć ten filtr w ustawieniach lub zobaczyć swój post w innym kliencie Plebbit, takim jak Seedit. Chcesz opublikować mimo to?" + "missing_link_confirm": "Twój post nie zawiera linku z obrazem, domyślnie zostanie przefiltrowany na Plebchan. Możesz wyłączyć ten filtr w ustawieniach lub zobaczyć swój post w innym kliencie Plebbit, takim jak Seedit. Chcesz opublikować mimo to?", + "no_board_selected_warning": "Proszę wybrać tablicę przed opublikowaniem.", + "invalid_url_alert": "Podany link nie jest poprawnym adresem URL.", + "empty_comment_alert": "Nie można opublikować pustego komentarza." } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 819690be..14d47473 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -233,5 +233,8 @@ "order": "Ordem", "text": "Texto", "filtered_threads": "Threads filtrados", - "missing_link_confirm": "Sua postagem está faltando um link com uma imagem, ela será filtrada por padrão no Plebchan. Você pode desativar esse filtro nas configurações ou visualizar sua postagem em outro cliente Plebbit, como o Seedit. Postar mesmo assim?" + "missing_link_confirm": "Sua postagem está faltando um link com uma imagem, ela será filtrada por padrão no Plebchan. Você pode desativar esse filtro nas configurações ou visualizar sua postagem em outro cliente Plebbit, como o Seedit. Postar mesmo assim?", + "no_board_selected_warning": "Por favor, selecione um quadro antes de postar.", + "invalid_url_alert": "O link fornecido não é uma URL válida.", + "empty_comment_alert": "Não é possível postar um comentário vazio." } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index e8d5e6a2..52630c26 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -233,5 +233,8 @@ "order": "Ordine", "text": "Text", "filtered_threads": "Fire filtrate", - "missing_link_confirm": "Postarea ta nu are un link cu o imagine, va fi filtrată în mod implicit pe Plebchan. Poți dezactiva acest filtru în setări sau vizualiza postarea ta pe un alt client Plebbit, cum ar fi Seedit. Postează oricum?" + "missing_link_confirm": "Postarea ta nu are un link cu o imagine, va fi filtrată în mod implicit pe Plebchan. Poți dezactiva acest filtru în setări sau vizualiza postarea ta pe un alt client Plebbit, cum ar fi Seedit. Postează oricum?", + "no_board_selected_warning": "Vă rugăm să selectați un tablou înainte de a publica.", + "invalid_url_alert": "Linkul furnizat nu este un URL valid.", + "empty_comment_alert": "Nu se poate publica un comentariu gol." } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 5db6b1a5..b9ad98b3 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -233,5 +233,8 @@ "order": "Порядок", "text": "Текст", "filtered_threads": "Отфильтрованные темы", - "missing_link_confirm": "Ваш пост не содержит ссылки с изображением, он будет отфильтрован по умолчанию на Plebchan. Вы можете отключить этот фильтр в настройках или просмотреть свой пост в другом клиенте Plebbit, таком как Seedit. Опубликовать все равно?" + "missing_link_confirm": "Ваш пост не содержит ссылки с изображением, он будет отфильтрован по умолчанию на Plebchan. Вы можете отключить этот фильтр в настройках или просмотреть свой пост в другом клиенте Plebbit, таком как Seedit. Опубликовать все равно?", + "no_board_selected_warning": "Пожалуйста, выберите доску перед публикацией.", + "invalid_url_alert": "Предоставленная ссылка не является действительным URL.", + "empty_comment_alert": "Невозможно опубликовать пустой комментарий." } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index ff7e236e..eb234d06 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -233,5 +233,8 @@ "order": "Rendit", "text": "Tekst", "filtered_threads": "Tema të filtruar", - "missing_link_confirm": "Postimi juaj i mungon një lidhje me një imazh, ai do të filtrohet automatikisht në Plebchan. Mund ta çaktivizoni këtë filtër në cilësimet, ose të shihni postimin tuaj në një klient tjetër Plebbit, si Seedit. A dëshironi të postoni gjithsesi?" + "missing_link_confirm": "Postimi juaj i mungon një lidhje me një imazh, ai do të filtrohet automatikisht në Plebchan. Mund ta çaktivizoni këtë filtër në cilësimet, ose të shihni postimin tuaj në një klient tjetër Plebbit, si Seedit. A dëshironi të postoni gjithsesi?", + "no_board_selected_warning": "Ju lutemi zgjidhni një bord para se të postoni.", + "invalid_url_alert": "Lidhja e ofruar nuk është një URL e vlefshme.", + "empty_comment_alert": "Nuk mund të postoni një koment bosh." } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 15198e22..6c425163 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -233,5 +233,8 @@ "order": "Ordning", "text": "Text", "filtered_threads": "Filtrerade trådar", - "missing_link_confirm": "Ditt inlägg saknar en länk med en bild, det kommer att filtreras som standard på Plebchan. Du kan inaktivera detta filter i inställningarna, eller visa ditt inlägg på en annan Plebbit-klient, som Seedit. Vill du ändå posta?" + "missing_link_confirm": "Ditt inlägg saknar en länk med en bild, det kommer att filtreras som standard på Plebchan. Du kan inaktivera detta filter i inställningarna, eller visa ditt inlägg på en annan Plebbit-klient, som Seedit. Vill du ändå posta?", + "no_board_selected_warning": "Vänligen välj en tavla innan du postar.", + "invalid_url_alert": "Den angivna länken är inte en giltig URL.", + "empty_comment_alert": "Kan inte posta tom kommentar." } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 22442384..8fb92265 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -233,5 +233,8 @@ "order": "ఆర్డర్", "text": "పాఠం", "filtered_threads": "ఫిల్టర్ చేయబడిన థ్రెడ్లు", - "missing_link_confirm": "మీ పోస్టు చిత్రంతో లింక్ మిస్సింగ్ ఉంది, ఇది Plebchan లో డిఫాల్ట్‌గా ఫిల్టర్ అవుతుంది. మీరు ఈ ఫిల్టర్‌ను సెటింగ్స్ లో డిసేబుల్ చేయవచ్చు, లేదా Seedit వంటి మరో Plebbit క్లయింట్ లో మీ పోస్టును చూడవచ్చు. అయినప్పటికీ పోస్టు చేయాలా?" + "missing_link_confirm": "మీ పోస్టు చిత్రంతో లింక్ మిస్సింగ్ ఉంది, ఇది Plebchan లో డిఫాల్ట్‌గా ఫిల్టర్ అవుతుంది. మీరు ఈ ఫిల్టర్‌ను సెటింగ్స్ లో డిసేబుల్ చేయవచ్చు, లేదా Seedit వంటి మరో Plebbit క్లయింట్ లో మీ పోస్టును చూడవచ్చు. అయినప్పటికీ పోస్టు చేయాలా?", + "no_board_selected_warning": "పోస్ట్ చేయడానికి ముందు దయచేసి ఒక బోర్డు ఎంచుకోండి.", + "invalid_url_alert": "నివేదిక ఇవ్వబడిన లింక్ చెల్లుబాటులో లేని URL.", + "empty_comment_alert": "ఖాళీ వ్యాఖ్యను పోస్ట్ చేయలేరు." } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 2ce40173..daf404cf 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -233,5 +233,8 @@ "order": "ลำดับ", "text": "ข้อความ", "filtered_threads": "กระทู้ที่กรองแล้ว", - "missing_link_confirm": "โพสต์ของคุณขาดลิงก์ที่มีรูปภาพจะถูกกรองตามค่าเริ่มต้นใน Plebchan คุณสามารถปิดการกรองนี้ในการตั้งค่าหรือดูโพสต์ของคุณในไคลเอนต์ Plebbit อื่น เช่น Seedit คุณจะโพสต์อยู่ดีไหม?" + "missing_link_confirm": "โพสต์ของคุณขาดลิงก์ที่มีรูปภาพจะถูกกรองตามค่าเริ่มต้นใน Plebchan คุณสามารถปิดการกรองนี้ในการตั้งค่าหรือดูโพสต์ของคุณในไคลเอนต์ Plebbit อื่น เช่น Seedit คุณจะโพสต์อยู่ดีไหม?", + "no_board_selected_warning": "กรุณาเลือกกระดานก่อนที่จะโพสต์.", + "invalid_url_alert": "ลิงก์ที่ให้ไม่ใช่ URL ที่ถูกต้อง", + "empty_comment_alert": "ไม่สามารถโพสต์ความคิดเห็นว่างเปล่าได้" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index c7f65c4d..d0b38f8a 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -233,5 +233,8 @@ "order": "Sıra", "text": "Metin", "filtered_threads": "Filtrelenmiş başlıklar", - "missing_link_confirm": "Gönderinizin bir resmi içeren bağlantısı yok, varsayılan olarak Plebchan'da filtrelenecek. Bu filtreyi ayarlardan devre dışı bırakabilir veya gönderinizi Seedit gibi başka bir Plebbit istemcisinde görüntüleyebilirsiniz. Yine de gönderi paylaşmak ister misiniz?" + "missing_link_confirm": "Gönderinizin bir resmi içeren bağlantısı yok, varsayılan olarak Plebchan'da filtrelenecek. Bu filtreyi ayarlardan devre dışı bırakabilir veya gönderinizi Seedit gibi başka bir Plebbit istemcisinde görüntüleyebilirsiniz. Yine de gönderi paylaşmak ister misiniz?", + "no_board_selected_warning": "Lütfen gönderimden önce bir pano seçin.", + "invalid_url_alert": "Verilen bağlantı geçerli bir URL değildir.", + "empty_comment_alert": "Boş yorum gönderilemez." } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 220b762a..9f66647e 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -233,5 +233,8 @@ "order": "Порядок", "text": "Текст", "filtered_threads": "Відфільтровані треди", - "missing_link_confirm": "Ваш пост не має посилання з зображенням, за замовчуванням він буде відфільтровано на Plebchan. Ви можете вимкнути цей фільтр у налаштуваннях або переглянути свій пост в іншому клієнті Plebbit, такому як Seedit. Все ж таки опублікувати?" + "missing_link_confirm": "Ваш пост не має посилання з зображенням, за замовчуванням він буде відфільтровано на Plebchan. Ви можете вимкнути цей фільтр у налаштуваннях або переглянути свій пост в іншому клієнті Plebbit, такому як Seedit. Все ж таки опублікувати?", + "no_board_selected_warning": "Будь ласка, виберіть дошку перед публікацією.", + "invalid_url_alert": "Надане посилання не є дійсною URL-адресою.", + "empty_comment_alert": "Не можна опублікувати порожній коментар." } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 091febc8..e04d6e92 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -233,5 +233,8 @@ "order": "ترتیب", "text": "متن", "filtered_threads": "فلٹر کیے گئے تھریڈز", - "missing_link_confirm": "آپ کی پوسٹ میں ایک تصویر کے ساتھ ایک لنک غائب ہے، یہ Plebchan پر ڈیفالٹ کے طور پر فلٹر ہوگی۔ آپ اس فلٹر کو سیٹنگز میں غیر فعال کرسکتے ہیں، یا اپنے پوسٹ کو کسی دوسرے Plebbit کلائنٹ، جیسے Seedit پر دیکھ سکتے ہیں۔ پھر بھی پوسٹ کریں؟" + "missing_link_confirm": "آپ کی پوسٹ میں ایک تصویر کے ساتھ ایک لنک غائب ہے، یہ Plebchan پر ڈیفالٹ کے طور پر فلٹر ہوگی۔ آپ اس فلٹر کو سیٹنگز میں غیر فعال کرسکتے ہیں، یا اپنے پوسٹ کو کسی دوسرے Plebbit کلائنٹ، جیسے Seedit پر دیکھ سکتے ہیں۔ پھر بھی پوسٹ کریں؟", + "no_board_selected_warning": "براہ کرم پوسٹ کرنے سے پہلے ایک بورڈ منتخب کریں۔", + "invalid_url_alert": "فراہم کردہ لنک درست URL نہیں ہے۔", + "empty_comment_alert": "خالی تبصرہ پوسٹ نہیں کیا جا سکتا۔" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 6274bad2..9d331230 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -233,5 +233,8 @@ "order": "Thứ tự", "text": "Văn bản", "filtered_threads": "Các chủ đề đã lọc", - "missing_link_confirm": "Bài đăng của bạn thiếu một liên kết với hình ảnh, nó sẽ bị lọc theo mặc định trên Plebchan. Bạn có thể tắt bộ lọc này trong cài đặt hoặc xem bài đăng của bạn trên một khách hàng Plebbit khác, như Seedit. Vẫn muốn đăng?" + "missing_link_confirm": "Bài đăng của bạn thiếu một liên kết với hình ảnh, nó sẽ bị lọc theo mặc định trên Plebchan. Bạn có thể tắt bộ lọc này trong cài đặt hoặc xem bài đăng của bạn trên một khách hàng Plebbit khác, như Seedit. Vẫn muốn đăng?", + "no_board_selected_warning": "Vui lòng chọn một bảng trước khi đăng.", + "invalid_url_alert": "Liên kết được cung cấp không phải là một URL hợp lệ.", + "empty_comment_alert": "Không thể đăng bình luận trống." } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 46851a32..3ce25342 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -233,5 +233,8 @@ "order": "顺序", "text": "文本", "filtered_threads": "已过滤的帖子", - "missing_link_confirm": "您的帖子缺少带图像的链接,默认情况下将在 Plebchan 中被过滤。您可以在设置中禁用此过滤器,或者在另一个 Plebbit 客户端(如 Seedit)中查看您的帖子。还是发布吗?" + "missing_link_confirm": "您的帖子缺少带图像的链接,默认情况下将在 Plebchan 中被过滤。您可以在设置中禁用此过滤器,或者在另一个 Plebbit 客户端(如 Seedit)中查看您的帖子。还是发布吗?", + "no_board_selected_warning": "请在发布之前选择一个板块。", + "invalid_url_alert": "提供的链接不是有效的 URL。", + "empty_comment_alert": "无法发布空评论。" } \ No newline at end of file diff --git a/src/components/post-form/post-form.tsx b/src/components/post-form/post-form.tsx index 746c556e..98daa920 100644 --- a/src/components/post-form/post-form.tsx +++ b/src/components/post-form/post-form.tsx @@ -128,7 +128,7 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid: const author = account?.author || {}; const { displayName } = author || {}; const [url, setUrl] = useState(''); - const { link, publishCommentOptions, setSubmitStore, resetSubmitStore } = useSubmitStore(); + const { publishCommentOptions, setSubmitStore, resetSubmitStore } = useSubmitStore(); const { index, publishComment } = usePublishComment(publishCommentOptions); useEffect(() => { @@ -195,11 +195,16 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid: const currentUrl = urlRef.current?.value.trim() || ''; if (!currentTitle && !currentContent && !currentUrl) { - alert(`Cannot post empty comment`); + alert(t('empty_comment_alert')); return; } if (currentUrl && !isValidURL(currentUrl)) { - alert('The provided link is not a valid URL.'); + alert(t('invalid_url_alert')); + return; + } + + if ((isInAllView || isInSubscriptionsView) && !publishCommentOptions.subplebbitAddress) { + alert(t('no_board_selected_warning')); return; } @@ -277,12 +282,12 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid: const currentUrl = urlRef.current?.value.trim() || ''; if (!currentContent && !currentUrl) { - alert(`Cannot post empty comment`); + alert(t('empty_comment_alert')); return; } if (currentUrl && !isValidURL(currentUrl)) { - alert('The provided link is not a valid URL.'); + alert(t('invalid_url_alert')); return; } diff --git a/src/components/reply-modal/reply-modal.tsx b/src/components/reply-modal/reply-modal.tsx index 4f039b16..7e048008 100644 --- a/src/components/reply-modal/reply-modal.tsx +++ b/src/components/reply-modal/reply-modal.tsx @@ -73,12 +73,12 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s const currentUrl = urlRef.current?.value.trim() || ''; if (!currentContent && !currentUrl) { - alert(`Cannot post empty comment`); + alert(t('empty_comment_alert')); return; } if (currentUrl && !isValidURL(currentUrl)) { - alert('The provided link is not a valid URL.'); + alert(t('invalid_url_alert')); return; }