From 7ebe6c9c005f7b30f59a2e039bc6eaada1ddba8f Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Fri, 31 Jan 2025 23:06:50 +0100 Subject: [PATCH] style(reply modal): adjust error/alert red box, add translation --- public/translations/ar/default.json | 3 ++- public/translations/bn/default.json | 3 ++- public/translations/cs/default.json | 3 ++- public/translations/da/default.json | 3 ++- public/translations/de/default.json | 3 ++- public/translations/el/default.json | 3 ++- public/translations/en/default.json | 3 ++- public/translations/es/default.json | 3 ++- public/translations/fa/default.json | 3 ++- public/translations/fi/default.json | 3 ++- public/translations/fil/default.json | 3 ++- public/translations/fr/default.json | 3 ++- public/translations/he/default.json | 3 ++- public/translations/hi/default.json | 3 ++- public/translations/hu/default.json | 3 ++- public/translations/id/default.json | 3 ++- public/translations/it/default.json | 3 ++- public/translations/ja/default.json | 3 ++- public/translations/ko/default.json | 3 ++- public/translations/mr/default.json | 3 ++- public/translations/nl/default.json | 3 ++- public/translations/no/default.json | 3 ++- public/translations/pl/default.json | 3 ++- public/translations/pt/default.json | 3 ++- public/translations/ro/default.json | 3 ++- public/translations/ru/default.json | 3 ++- public/translations/sq/default.json | 3 ++- public/translations/sv/default.json | 3 ++- public/translations/te/default.json | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 3 ++- public/translations/uk/default.json | 3 ++- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 3 ++- public/translations/zh/default.json | 3 ++- src/components/reply-modal/reply-modal.tsx | 5 ++--- 36 files changed, 72 insertions(+), 38 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index e6373d41..ed7b540b 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -261,5 +261,6 @@ "uploading": "جاري التحميل...", "no_file_chosen": "لم يتم اختيار أي ملف", "error": "خطأ", - "vote": "تصويت" + "vote": "تصويت", + "warning": "تحذير" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 541f328a..5e106fb9 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -261,5 +261,6 @@ "uploading": "আপলোড হচ্ছে...", "no_file_chosen": "কোন ফাইল নির্বাচিত নয়", "error": "ত্রুটি", - "vote": "ভোট" + "vote": "ভোট", + "warning": "সতর্কতা" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 17512a74..59300423 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -261,5 +261,6 @@ "uploading": "nahrávání...", "no_file_chosen": "Žádný soubor není vybrán", "error": "Chyba", - "vote": "hlasování" + "vote": "hlasování", + "warning": "Upozornění" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 434315aa..8697a84f 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -261,5 +261,6 @@ "uploading": "uploading...", "no_file_chosen": "Ingen fil valgt", "error": "Fejl", - "vote": "stem" + "vote": "stem", + "warning": "Advarsel" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 0af64156..9a5ba981 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -261,5 +261,6 @@ "uploading": "Hochladen...", "no_file_chosen": "Keine Datei ausgewählt", "error": "Fehler", - "vote": "Abstimmung" + "vote": "Abstimmung", + "warning": "Warnung" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 7b09a363..e8d326a5 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -261,5 +261,6 @@ "uploading": "ανέβασμα...", "no_file_chosen": "Δεν έχει επιλεγεί αρχείο", "error": "Σφάλμα", - "vote": "ψηφοφορία" + "vote": "ψηφοφορία", + "warning": "Προειδοποίηση" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index b86c15a1..3ebba1b4 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -261,5 +261,6 @@ "uploading": "uploading...", "no_file_chosen": "No file chosen", "error": "Error", - "vote": "vote" + "vote": "vote", + "warning": "Warning" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 840f3cfb..d488d4d6 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -261,5 +261,6 @@ "uploading": "subiendo...", "no_file_chosen": "Ningún archivo elegido", "error": "Error", - "vote": "voto" + "vote": "voto", + "warning": "Advertencia" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 938ba378..9da28496 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -261,5 +261,6 @@ "uploading": "در حال بارگذاری...", "no_file_chosen": "فایلی انتخاب نشده است", "error": "خطا", - "vote": "رای" + "vote": "رای", + "warning": "هشدار" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 6c27addc..0a2d5813 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -261,5 +261,6 @@ "uploading": "lataaminen...", "no_file_chosen": "Ei tiedostoa valittu", "error": "Virhe", - "vote": "äänestä" + "vote": "äänestä", + "warning": "Varoitus" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 20fb9b08..5232a3e0 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -261,5 +261,6 @@ "uploading": "ina-upload...", "no_file_chosen": "Walang napiling file", "error": "Error", - "vote": "bumoto" + "vote": "bumoto", + "warning": "Babala" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 2e4959f7..f0610db8 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -261,5 +261,6 @@ "uploading": "téléchargement...", "no_file_chosen": "Aucun fichier choisi", "error": "Erreur", - "vote": "vote" + "vote": "vote", + "warning": "Avertissement" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index d06b32bc..7cc64ea3 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -261,5 +261,6 @@ "uploading": "מעלה...", "no_file_chosen": "לא נבחר קובץ", "error": "שגיאה", - "vote": "הצבעה" + "vote": "הצבעה", + "warning": "אזהרה" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 9a59dcca..907e3be5 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -261,5 +261,6 @@ "uploading": "अपलोड हो रहा है...", "no_file_chosen": "कोई फ़ाइल नहीं चुनी गई", "error": "त्रुटि", - "vote": "मत डालें" + "vote": "मत डालें", + "warning": "चेतावनी" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index bd104f42..077fa899 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -261,5 +261,6 @@ "uploading": "feltöltés...", "no_file_chosen": "Nincs fájl kiválasztva", "error": "Hiba", - "vote": "szavazás" + "vote": "szavazás", + "warning": "Figyelmeztetés" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 75a4932b..8d69b540 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -261,5 +261,6 @@ "uploading": "mengupload...", "no_file_chosen": "Tidak ada file yang dipilih", "error": "Kesalahan", - "vote": "suara" + "vote": "suara", + "warning": "Peringatan" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 75a7c141..69f0ee82 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -261,5 +261,6 @@ "uploading": "caricamento...", "no_file_chosen": "Nessun file scelto", "error": "Errore", - "vote": "vota" + "vote": "vota", + "warning": "Avviso" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index c6536d30..9f2910ab 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -261,5 +261,6 @@ "uploading": "アップロード中...", "no_file_chosen": "ファイルが選択されていません", "error": "エラー", - "vote": "投票" + "vote": "投票", + "warning": "警告" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 865801f8..3b02c7f2 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -261,5 +261,6 @@ "uploading": "업로드 중...", "no_file_chosen": "선택된 파일이 없습니다", "error": "오류", - "vote": "투표" + "vote": "투표", + "warning": "경고" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 75e0cac5..c54fa8b3 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -261,5 +261,6 @@ "uploading": "अपलोड करत आहे...", "no_file_chosen": "कोणताही फाइल निवडलेली नाही", "error": "त्रुटी", - "vote": "मत" + "vote": "मत", + "warning": "चेतावणी" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 6bf09ecf..223a41aa 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -261,5 +261,6 @@ "uploading": "uploaden...", "no_file_chosen": "Geen bestand gekozen", "error": "Fout", - "vote": "stem" + "vote": "stem", + "warning": "Waarschuwing" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index cc62a424..f9d2f5bc 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -261,5 +261,6 @@ "uploading": "laster opp...", "no_file_chosen": "Ingen fil valgt", "error": "Feil", - "vote": "stemme" + "vote": "stemme", + "warning": "Advarsel" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 7ed1b216..6309466e 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -261,5 +261,6 @@ "uploading": "ładowanie...", "no_file_chosen": "Nie wybrano żadnego pliku", "error": "Błąd", - "vote": "głos" + "vote": "głos", + "warning": "Ostrzeżenie" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index eb285896..60503aac 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -261,5 +261,6 @@ "uploading": "carregando...", "no_file_chosen": "Nenhum arquivo escolhido", "error": "Erro", - "vote": "voto" + "vote": "voto", + "warning": "Aviso" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index ae8070cc..0f591a62 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -261,5 +261,6 @@ "uploading": "încărcare...", "no_file_chosen": "Niciun fișier ales", "error": "Eroare", - "vote": "vot" + "vote": "vot", + "warning": "Avertisment" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 4d8d2b29..87776d62 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -261,5 +261,6 @@ "uploading": "загрузка...", "no_file_chosen": "Файл не выбран", "error": "Ошибка", - "vote": "голосовать" + "vote": "голосовать", + "warning": "Предупреждение" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 39fd28b2..cfa40a26 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -261,5 +261,6 @@ "uploading": "duke ngarkuar...", "no_file_chosen": "Nuk është zgjedhur asnjë skedar", "error": "Gabim", - "vote": "votim" + "vote": "votim", + "warning": "Kujdes" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index c51464ca..389b860c 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -261,5 +261,6 @@ "uploading": "laddar upp...", "no_file_chosen": "Ingen fil vald", "error": "Fel", - "vote": "rösta" + "vote": "rösta", + "warning": "Varning" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 4cc812a7..083b9829 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -261,5 +261,6 @@ "uploading": "అప్‌లోడ్ అవుతోంది...", "no_file_chosen": "ఎటువంటి ఫైల్ ఎంపిక చేయబడలేదు", "error": "దోషం", - "vote": "ఐదు" + "vote": "ఐదు", + "warning": "హెచ్చరిక" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index db251173..0cdb2ee3 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -261,5 +261,6 @@ "uploading": "กำลังอัปโหลด...", "no_file_chosen": "ไม่มีไฟล์ที่เลือก", "error": "ข้อผิดพลาด", - "vote": "โหวต" + "vote": "โหวต", + "warning": "คำเตือน" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index d79c00b2..2427fa6e 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -261,5 +261,6 @@ "uploading": "yükleniyor...", "no_file_chosen": "Hiçbir dosya seçilmedi", "error": "Hata", - "vote": "oy" + "vote": "oy", + "warning": "Uyarı" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index ab3537bb..9d1b1509 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -261,5 +261,6 @@ "uploading": "завантаження...", "no_file_chosen": "Не вибрано жодного файлу", "error": "Помилка", - "vote": "голос" + "vote": "голос", + "warning": "Попередження" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index e610f99e..d51c8986 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -261,5 +261,6 @@ "uploading": "اپ لوڈ ہو رہا ہے...", "no_file_chosen": "کوئی فائل منتخب نہیں کی گئی", "error": "غلطی", - "vote": "ووٹ" + "vote": "ووٹ", + "warning": "چیتاونی" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 4ecd8e8f..34a479e0 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -261,5 +261,6 @@ "uploading": "đang tải lên...", "no_file_chosen": "Không có tệp nào được chọn", "error": "Lỗi", - "vote": "bỏ phiếu" + "vote": "bỏ phiếu", + "warning": "Cảnh báo" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index f1948838..6e40f256 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -261,5 +261,6 @@ "uploading": "正在上传...", "no_file_chosen": "未选择任何文件", "error": "错误", - "vote": "投票" + "vote": "投票", + "warning": "警告" } \ No newline at end of file diff --git a/src/components/reply-modal/reply-modal.tsx b/src/components/reply-modal/reply-modal.tsx index 08353ed4..4bad29ca 100644 --- a/src/components/reply-modal/reply-modal.tsx +++ b/src/components/reply-modal/reply-modal.tsx @@ -150,7 +150,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s const offlineAlert = updatedAt ? isBoardOffline && (
- + {t('warning')}:
) : t('subplebbit_offline_info'); @@ -291,8 +291,6 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s