mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor: use post number instead of shortCid in reply modal and quote previews
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} ردود محذوفة. <1>اضغط هنا</1> لعرضها.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} ردود و{{linksCount}} روابط محذوفة. <1>اضغط هنا</1> لعرضها.",
|
||||
"this_thread_is_closed": "الموضوع مغلق",
|
||||
"reply_to_cid": "الرد على {{cid}}",
|
||||
"reply_to_no": "الرد على المنشور رقم{{no}}",
|
||||
"submit": "إرسال",
|
||||
"gif": "جي آي إف",
|
||||
"moderating": "تدير",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}}টি উত্তর বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন</1>।",
|
||||
"replies_and_links_omitted": "{{repliesCount}}টি উত্তর এবং {{linksCount}}টি লিঙ্ক বাদ দেওয়া হয়েছে। <1>দেখতে এখানে ক্লিক করুন</1>।",
|
||||
"this_thread_is_closed": "থ্রেডটি বন্ধ করা হয়েছে",
|
||||
"reply_to_cid": "{{cid}}-এ উত্তর দিন",
|
||||
"reply_to_no": "পোস্ট নং{{no}}-এ উত্তর দিন",
|
||||
"submit": "জমা দিন",
|
||||
"gif": "জিআইএফ",
|
||||
"moderating": "মডারেটিং",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} odpovědí vynecháno. <1>Klikněte zde</1> pro zobrazení.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} odpovědí a {{linksCount}} odkazů vynecháno. <1>Klikněte zde</1> pro zobrazení.",
|
||||
"this_thread_is_closed": "Vlákno je uzavřeno",
|
||||
"reply_to_cid": "Odpovědět na {{cid}}",
|
||||
"reply_to_no": "Odpovědět na příspěvek č.{{no}}",
|
||||
"submit": "Odeslat",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderování",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} svar udeladt. <1>Klik her</1> for at se dem.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} svar og {{linksCount}} links udeladt. <1>Klik her</1> for at se dem.",
|
||||
"this_thread_is_closed": "Tråden er lukket",
|
||||
"reply_to_cid": "Svar til {{cid}}",
|
||||
"reply_to_no": "Svar til opslag No.{{no}}",
|
||||
"submit": "Indsend",
|
||||
"gif": "GIF",
|
||||
"moderating": "modererer",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} Antworten ausgelassen. <1>Klicken Sie hier</1>, um sie anzuzeigen.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} Antworten und {{linksCount}} Links ausgelassen. <1>Klicken Sie hier</1>, um sie anzuzeigen.",
|
||||
"this_thread_is_closed": "Der Thread ist geschlossen",
|
||||
"reply_to_cid": "Antwort an {{cid}}",
|
||||
"reply_to_no": "Antwort auf Beitrag Nr.{{no}}",
|
||||
"submit": "Einreichen",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderieren",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} απαντήσεις παραλείφθηκαν. <1>Κάντε κλικ εδώ</1> για να τις δείτε.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} απαντήσεις και {{linksCount}} σύνδεσμοι παραλείφθηκαν. <1>Κάντε κλικ εδώ</1> για να τις δείτε.",
|
||||
"this_thread_is_closed": "Το νήμα έχει κλείσει",
|
||||
"reply_to_cid": "Απάντηση σε {{cid}}",
|
||||
"reply_to_no": "Απάντηση στην ανάρτηση No.{{no}}",
|
||||
"submit": "Υποβολή",
|
||||
"gif": "GIF",
|
||||
"moderating": "διαχειρίζεστε",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} replies omitted. <1>Click here</1> to view.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} replies and {{linksCount}} links omitted. <1>Click here</1> to view.",
|
||||
"this_thread_is_closed": "This thread is closed",
|
||||
"reply_to_cid": "Reply to {{cid}}",
|
||||
"reply_to_no": "Reply to Thread No.{{no}}",
|
||||
"submit": "Submit",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderating",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} respuestas omitidas. <1>Haz clic aquí</1> para verlas.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} respuestas y {{linksCount}} enlaces omitidos. <1>Haz clic aquí</1> para verlos.",
|
||||
"this_thread_is_closed": "El hilo está cerrado",
|
||||
"reply_to_cid": "Responder a {{cid}}",
|
||||
"reply_to_no": "Responder al post No.{{no}}",
|
||||
"submit": "Enviar",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderando",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} پاسخ حذف شده است. <1>اینجا کلیک کنید</1> تا آنها را مشاهده کنید.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} پاسخ و {{linksCount}} لینک حذف شده است. <1>اینجا کلیک کنید</1> تا آنها را مشاهده کنید.",
|
||||
"this_thread_is_closed": "موضوع بسته شده است",
|
||||
"reply_to_cid": "پاسخ به {{cid}}",
|
||||
"reply_to_no": "پاسخ به پست شماره{{no}}",
|
||||
"submit": "ارسال",
|
||||
"gif": "گیف",
|
||||
"moderating": "مدیریت",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} vastausta jätetty pois. <1>Napsauta tästä</1> nähdäksesi ne.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} vastausta ja {{linksCount}} linkkiä jätetty pois. <1>Napsauta tästä</1> nähdäksesi ne.",
|
||||
"this_thread_is_closed": "Ketju on suljettu",
|
||||
"reply_to_cid": "Vastaa {{cid}}",
|
||||
"reply_to_no": "Vastaa viestiin No.{{no}}",
|
||||
"submit": "Lähetä",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderoit",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} mga tugon ang hindi ipinakita. <1>I-click dito</1> upang makita.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} mga tugon at {{linksCount}} mga link ang hindi ipinakita. <1>I-click dito</1> upang makita.",
|
||||
"this_thread_is_closed": "Sarado na ang thread",
|
||||
"reply_to_cid": "Tumugon sa {{cid}}",
|
||||
"reply_to_no": "Tumugon sa post No.{{no}}",
|
||||
"submit": "Isumite",
|
||||
"gif": "GIF",
|
||||
"moderating": "namamahala",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} réponses omises. <1>Cliquez ici</1> pour les afficher.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} réponses et {{linksCount}} liens omis. <1>Cliquez ici</1> pour les afficher.",
|
||||
"this_thread_is_closed": "Le fil est fermé",
|
||||
"reply_to_cid": "Répondre à {{cid}}",
|
||||
"reply_to_no": "Répondre au post No.{{no}}",
|
||||
"submit": "Soumettre",
|
||||
"gif": "GIF",
|
||||
"moderating": "modération",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} תגובות נשמטו. <1>לחץ כאן</1> לצפייה.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} תגובות ו{{linksCount}} קישורים נשמטו. <1>לחץ כאן</1> לצפייה.",
|
||||
"this_thread_is_closed": "האשכול סגור",
|
||||
"reply_to_cid": "תגובה ל{{cid}}",
|
||||
"reply_to_no": "תגובה להודעה מס'{{no}}",
|
||||
"submit": "שלח",
|
||||
"gif": "גיף",
|
||||
"moderating": "מנהל",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} उत्तर छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें</1>।",
|
||||
"replies_and_links_omitted": "{{repliesCount}} उत्तर और {{linksCount}} लिंक छोड़े गए हैं। <1>देखने के लिए यहां क्लिक करें</1>।",
|
||||
"this_thread_is_closed": "यह थ्रेड बंद है",
|
||||
"reply_to_cid": "{{cid}} का उत्तर दें",
|
||||
"reply_to_no": "पोस्ट No.{{no}} का उत्तर दें",
|
||||
"submit": "जमा करें",
|
||||
"gif": "जीआईएफ",
|
||||
"moderating": "मॉडरेटिंग",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} válasz kihagyva. <1>Kattintson ide</1> a megtekintéshez.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} válasz és {{linksCount}} link kihagyva. <1>Kattintson ide</1> a megtekintéshez.",
|
||||
"this_thread_is_closed": "A téma lezárva",
|
||||
"reply_to_cid": "Válasz erre: {{cid}}",
|
||||
"reply_to_no": "Válasz a No.{{no}} bejegyzésre",
|
||||
"submit": "Beküldés",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderálás",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} balasan dihilangkan. <1>Klik di sini</1> untuk melihat.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} balasan dan {{linksCount}} tautan dihilangkan. <1>Klik di sini</1> untuk melihat.",
|
||||
"this_thread_is_closed": "Thread ini ditutup",
|
||||
"reply_to_cid": "Balas ke {{cid}}",
|
||||
"reply_to_no": "Balas ke pos No.{{no}}",
|
||||
"submit": "Kirim",
|
||||
"gif": "GIF",
|
||||
"moderating": "memoderasi",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} risposte omesse. <1>Clicca qui</1> per visualizzare.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} risposte e {{linksCount}} link omessi. <1>Clicca qui</1> per visualizzare.",
|
||||
"this_thread_is_closed": "Questo thread è chiuso",
|
||||
"reply_to_cid": "Rispondi a {{cid}}",
|
||||
"reply_to_no": "Rispondi al post No.{{no}}",
|
||||
"submit": "Invia",
|
||||
"gif": "GIF",
|
||||
"moderating": "stai moderando",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}}件の返信が省略されました。 <1>ここをクリック</1>して表示。",
|
||||
"replies_and_links_omitted": "{{repliesCount}}件の返信と{{linksCount}}件のリンクが省略されました。 <1>ここをクリック</1>して表示。",
|
||||
"this_thread_is_closed": "このスレッドは閉じられています",
|
||||
"reply_to_cid": "{{cid}}に返信",
|
||||
"reply_to_no": "投稿 No.{{no}}に返信",
|
||||
"submit": "送信",
|
||||
"gif": "GIF",
|
||||
"moderating": "モデレート中",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}}개의 답글이 생략되었습니다. <1>여기를 클릭하십시오</1> 보려면.",
|
||||
"replies_and_links_omitted": "{{repliesCount}}개의 답글과 {{linksCount}}개의 링크가 생략되었습니다. <1>여기를 클릭하십시오</1> 보려면.",
|
||||
"this_thread_is_closed": "이 스레드는 닫혔습니다",
|
||||
"reply_to_cid": "{{cid}}에 답변",
|
||||
"reply_to_no": "게시글 No.{{no}}에 답변",
|
||||
"submit": "제출",
|
||||
"gif": "GIF",
|
||||
"moderating": "중재 중",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} प्रतिसाद वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा</1>.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} प्रतिसाद आणि {{linksCount}} दुवे वगळले गेले आहेत. <1>पाहण्यासाठी येथे क्लिक करा</1>.",
|
||||
"this_thread_is_closed": "हा थ्रेड बंद आहे",
|
||||
"reply_to_cid": "{{cid}} ला उत्तर द्या",
|
||||
"reply_to_no": "पोस्ट No.{{no}} ला उत्तर द्या",
|
||||
"submit": "सबमिट करा",
|
||||
"gif": "जीआईएफ",
|
||||
"moderating": "मॉडरेट करीत आहे",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} reacties weggelaten. <1>Klik hier</1> om ze te bekijken.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} reacties en {{linksCount}} links weggelaten. <1>Klik hier</1> om ze te bekijken.",
|
||||
"this_thread_is_closed": "De thread is gesloten",
|
||||
"reply_to_cid": "Reageren op {{cid}}",
|
||||
"reply_to_no": "Reageren op post No.{{no}}",
|
||||
"submit": "Verzenden",
|
||||
"gif": "GIF",
|
||||
"moderating": "modereren",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} svar utelatt. <1>Klikk her</1> for å se dem.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} svar og {{linksCount}} lenker utelatt. <1>Klikk her</1> for å se dem.",
|
||||
"this_thread_is_closed": "Tråden er stengt",
|
||||
"reply_to_cid": "Svar til {{cid}}",
|
||||
"reply_to_no": "Svar til innlegg No.{{no}}",
|
||||
"submit": "Send inn",
|
||||
"gif": "GIF",
|
||||
"moderating": "modererer",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "Pominięto {{repliesCount}} odpowiedzi. <1>Kliknij tutaj</1>, aby je zobaczyć.",
|
||||
"replies_and_links_omitted": "Pominięto {{repliesCount}} odpowiedzi i {{linksCount}} linków. <1>Kliknij tutaj</1>, aby je zobaczyć.",
|
||||
"this_thread_is_closed": "Wątek jest zamknięty",
|
||||
"reply_to_cid": "Odpowiedz na {{cid}}",
|
||||
"reply_to_no": "Odpowiedz na post No.{{no}}",
|
||||
"submit": "Zatwierdź",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderujesz",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} respostas omitidas. <1>Clique aqui</1> para visualizar.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} respostas e {{linksCount}} links omitidos. <1>Clique aqui</1> para visualizar.",
|
||||
"this_thread_is_closed": "O tópico está fechado",
|
||||
"reply_to_cid": "Responder a {{cid}}",
|
||||
"reply_to_no": "Responder ao post No.{{no}}",
|
||||
"submit": "Enviar",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderando",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} răspunsuri omise. <1>Click aici</1> pentru a le vizualiza.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} răspunsuri și {{linksCount}} linkuri omise. <1>Click aici</1> pentru a le vizualiza.",
|
||||
"this_thread_is_closed": "Acest fir de discuție este închis",
|
||||
"reply_to_cid": "Răspundeți la {{cid}}",
|
||||
"reply_to_no": "Răspundeți la postarea No.{{no}}",
|
||||
"submit": "Trimite",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderează",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} ответов пропущено. <1>Нажмите здесь</1>, чтобы посмотреть.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} ответов и {{linksCount}} ссылок пропущено. <1>Нажмите здесь</1>, чтобы посмотреть.",
|
||||
"this_thread_is_closed": "Тема закрыта",
|
||||
"reply_to_cid": "Ответить на {{cid}}",
|
||||
"reply_to_no": "Ответить на пост No.{{no}}",
|
||||
"submit": "Отправить",
|
||||
"gif": "ГИФ",
|
||||
"moderating": "модерируете",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} përgjigje janë lënë jashtë. <1>Kliko këtu</1> për t'i shikuar.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} përgjigje dhe {{linksCount}} lidhje janë lënë jashtë. <1>Kliko këtu</1> për t'i shikuar.",
|
||||
"this_thread_is_closed": "Temë është mbyllur",
|
||||
"reply_to_cid": "Përgjigju në {{cid}}",
|
||||
"reply_to_no": "Përgjigju në postin No.{{no}}",
|
||||
"submit": "Dorëzo",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderimi",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} svar utelämnade. <1>Klicka här</1> för att visa dem.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} svar och {{linksCount}} länkar utelämnade. <1>Klicka här</1> för att visa dem.",
|
||||
"this_thread_is_closed": "Tråden är stängd",
|
||||
"reply_to_cid": "Svara på {{cid}}",
|
||||
"reply_to_no": "Svara på inlägg No.{{no}}",
|
||||
"submit": "Skicka in",
|
||||
"gif": "GIF",
|
||||
"moderating": "modererar",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} స్పందనలు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి</1>.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} స్పందనలు మరియు {{linksCount}} లింకులు వదిలివేయబడ్డాయి. <1>చూడటానికి ఇక్కడ క్లిక్ చేయండి</1>.",
|
||||
"this_thread_is_closed": "ఈ థ్రెడ్ మూసివేయబడింది",
|
||||
"reply_to_cid": "{{cid}}కి స్పందించండి",
|
||||
"reply_to_no": "పోస్ట్ No.{{no}}కి స్పందించండి",
|
||||
"submit": "సమర్పించు",
|
||||
"gif": "జీఐఎఫ్",
|
||||
"moderating": "మాడరేటింగ్",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "ข้าม {{repliesCount}} คำตอบ <1>คลิกที่นี่</1> เพื่อดู.",
|
||||
"replies_and_links_omitted": "ข้าม {{repliesCount}} คำตอบและ {{linksCount}} ลิงก์ <1>คลิกที่นี่</1> เพื่อดู.",
|
||||
"this_thread_is_closed": "กระทู้นี้ถูกปิด",
|
||||
"reply_to_cid": "ตอบกลับ {{cid}}",
|
||||
"reply_to_no": "ตอบกลับกระทู้ No.{{no}}",
|
||||
"submit": "ส่ง",
|
||||
"gif": "จีไอเอฟ",
|
||||
"moderating": "กำลังดูแล",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} yanıt göz ardı edildi. <1>Buraya tıklayın</1> görüntülemek için.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} yanıt ve {{linksCount}} bağlantı göz ardı edildi. <1>Buraya tıklayın</1> görüntülemek için.",
|
||||
"this_thread_is_closed": "Bu konu kapatılmıştır",
|
||||
"reply_to_cid": "{{cid}}’ye yanıt ver",
|
||||
"reply_to_no": "No.{{no}} gönderisine yanıt ver",
|
||||
"submit": "Gönder",
|
||||
"gif": "GIF",
|
||||
"moderating": "moderatörlük yapıyorsun",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} відповідей пропущено. <1>Натисніть тут</1>, щоб переглянути.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} відповідей та {{linksCount}} посилань пропущено. <1>Натисніть тут</1>, щоб переглянути.",
|
||||
"this_thread_is_closed": "Тему закрито",
|
||||
"reply_to_cid": "Відповісти на {{cid}}",
|
||||
"reply_to_no": "Відповісти на пост No.{{no}}",
|
||||
"submit": "Надіслати",
|
||||
"gif": "ГІФ",
|
||||
"moderating": "модеруєте",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} جوابات چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں</1>۔",
|
||||
"replies_and_links_omitted": "{{repliesCount}} جوابات اور {{linksCount}} لنکس چھوڑ دیے گئے ہیں۔ <1>مکمل دیکھنے کے لیے یہاں کلک کریں</1>۔",
|
||||
"this_thread_is_closed": "یہ دھاگہ بند ہے",
|
||||
"reply_to_cid": "{{cid}} کا جواب دیں",
|
||||
"reply_to_no": "پوسٹ No.{{no}} کا جواب دیں",
|
||||
"submit": "جمع کرائیں",
|
||||
"gif": "جی آئی ایف",
|
||||
"moderating": "منتظم کر رہے ہیں",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "{{repliesCount}} câu trả lời bị bỏ qua. <1>Nhấn vào đây</1> để xem.",
|
||||
"replies_and_links_omitted": "{{repliesCount}} câu trả lời và {{linksCount}} liên kết bị bỏ qua. <1>Nhấn vào đây</1> để xem.",
|
||||
"this_thread_is_closed": "Chủ đề này đã đóng",
|
||||
"reply_to_cid": "Trả lời {{cid}}",
|
||||
"reply_to_no": "Trả lời bài No.{{no}}",
|
||||
"submit": "Gửi",
|
||||
"gif": "GIF",
|
||||
"moderating": "đang điều hành",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"replies_omitted": "省略了{{repliesCount}}条回复。 <1>点击这里</1>查看。",
|
||||
"replies_and_links_omitted": "省略了{{repliesCount}}条回复和{{linksCount}}个链接。 <1>点击这里</1>查看。",
|
||||
"this_thread_is_closed": "该主题已关闭",
|
||||
"reply_to_cid": "回复{{cid}}",
|
||||
"reply_to_no": "回复帖子 No.{{no}}",
|
||||
"submit": "提交",
|
||||
"gif": "GIF",
|
||||
"moderating": "正在管理",
|
||||
|
||||
+2
-1
@@ -113,7 +113,7 @@ const GlobalLayout = () => {
|
||||
}
|
||||
}, [theme]);
|
||||
|
||||
const { activeCid, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
|
||||
const { activeCid, parentNumber, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
|
||||
|
||||
const location = useLocation();
|
||||
const isInSettingsView = location.pathname.endsWith('/settings');
|
||||
@@ -125,6 +125,7 @@ const GlobalLayout = () => {
|
||||
<ReplyModal
|
||||
closeModal={closeModal}
|
||||
parentCid={activeCid}
|
||||
parentNumber={parentNumber}
|
||||
postCid={threadCid}
|
||||
scrollY={scrollY}
|
||||
showReplyModal={showReplyModal}
|
||||
|
||||
@@ -94,7 +94,7 @@ const PostInfo = ({ post, postReplyCount = 0, roles, isHidden }: PostProps) => {
|
||||
? isReply
|
||||
? alert(t('this_reply_was_removed'))
|
||||
: alert(t('this_thread_was_removed'))
|
||||
: openReplyModal && openReplyModal(cid, postCid, subplebbitAddress);
|
||||
: openReplyModal && openReplyModal(cid, post?.number, postCid, subplebbitAddress);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -78,7 +78,7 @@ const PostInfoAndMedia = ({ post, postReplyCount = 0, roles }: PostProps) => {
|
||||
? isReply
|
||||
? alert(t('this_reply_was_removed'))
|
||||
: alert(t('this_thread_was_removed'))
|
||||
: openReplyModal && openReplyModal(cid, postCid, subplebbitAddress);
|
||||
: openReplyModal && openReplyModal(cid, post?.number, postCid, subplebbitAddress);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -3,7 +3,6 @@ import { useLocation, useParams } from 'react-router-dom';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
import { setAccount, useAccount } from '@plebbit/plebbit-react-hooks';
|
||||
import useSubplebbitsStore from '@plebbit/plebbit-react-hooks/dist/stores/subplebbits';
|
||||
import Plebbit from '@plebbit/plebbit-js';
|
||||
import { formatMarkdown } from '../../lib/utils/post-utils';
|
||||
import { getFormattedTimeAgo } from '../../lib/utils/time-utils';
|
||||
import { isValidURL } from '../../lib/utils/url-utils';
|
||||
@@ -25,12 +24,14 @@ interface ReplyModalProps {
|
||||
closeModal: () => void;
|
||||
showReplyModal: boolean;
|
||||
parentCid: string;
|
||||
parentNumber: number | null;
|
||||
postNumber: number | null;
|
||||
postCid: string;
|
||||
scrollY: number;
|
||||
subplebbitAddress: string;
|
||||
}
|
||||
|
||||
const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, subplebbitAddress }: ReplyModalProps) => {
|
||||
const ReplyModal = ({ closeModal, showReplyModal, parentCid, parentNumber, postNumber, postCid, scrollY, subplebbitAddress }: ReplyModalProps) => {
|
||||
const { t } = useTranslation();
|
||||
const { setPublishReplyOptions, publishReply, resetPublishReplyOptions, replyIndex } = usePublishReply({
|
||||
cid: parentCid,
|
||||
@@ -178,7 +179,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
|
||||
}
|
||||
}, []);
|
||||
|
||||
const contentPrefix = `>>${parentCid && Plebbit.getShortCid({ cid: parentCid })}\n`;
|
||||
const contentPrefix = `>>${parentNumber ?? '?'}\n`;
|
||||
|
||||
// enable spellcheck after the prefix is set
|
||||
useEffect(() => {
|
||||
@@ -259,7 +260,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
|
||||
}}
|
||||
>
|
||||
<div className={`replyModalHandle ${styles.title}`} {...(!isMobile ? bind() : {})}>
|
||||
{t('reply_to_cid', { cid: `CID:${parentCid && Plebbit.getShortCid({ cid: parentCid })}`, interpolation: { escapeValue: false } })}
|
||||
{t('reply_to_no', { no: postNumber ?? '?' })}
|
||||
<button
|
||||
className={styles.closeIcon}
|
||||
onClick={(e) => {
|
||||
|
||||
@@ -144,7 +144,7 @@ const DesktopQuotePreview = ({ backlinkReply, quotelinkReply, isBacklinkReply, i
|
||||
onClick={(e) => handleClick(e, backlinkReply?.cid, backlinkReply?.subplebbitAddress)}
|
||||
>
|
||||
{'>>'}
|
||||
{backlinkReply?.shortCid}
|
||||
{backlinkReply?.number ?? '?'}
|
||||
</Link>
|
||||
{hoveredCid === backlinkReply?.cid &&
|
||||
outOfViewCid === backlinkReply?.cid &&
|
||||
@@ -172,7 +172,7 @@ const DesktopQuotePreview = ({ backlinkReply, quotelinkReply, isBacklinkReply, i
|
||||
onMouseLeave={() => handleMouseLeave(quotelinkReply?.cid)}
|
||||
onClick={(e) => handleClick(e, quotelinkReply?.cid, quotelinkReply?.subplebbitAddress)}
|
||||
>
|
||||
{quotelinkReply?.shortCid && `>>${quotelinkReply?.shortCid}`}
|
||||
{`>>${quotelinkReply?.number ?? '?'}`}
|
||||
{quotelinkReply?.author?.address === account?.author?.address && ' (You)'}
|
||||
</Link>
|
||||
<br />
|
||||
@@ -251,9 +251,9 @@ const MobileQuotePreview = ({ backlinkReply, quotelinkReply, isBacklinkReply, is
|
||||
onMouseOver={() => handleMouseOver(backlinkReply?.cid)}
|
||||
onMouseLeave={() => handleMouseLeave(backlinkReply?.cid)}
|
||||
>
|
||||
{backlinkReply?.shortCid && `>>${backlinkReply?.shortCid}`}
|
||||
{`>>${backlinkReply?.number ?? '?'}`}
|
||||
</span>
|
||||
{backlinkReply?.shortCid &&
|
||||
{backlinkReply?.number &&
|
||||
(() => {
|
||||
const backlinkBoardPath = backlinkReply?.subplebbitAddress ? getBoardPath(backlinkReply.subplebbitAddress, defaultSubplebbits) : undefined;
|
||||
const backlinkRoute = backlinkReply?.cid ? (backlinkBoardPath ? `/${backlinkBoardPath}/thread/${backlinkReply.cid}` : `/thread/${backlinkReply.cid}`) : '#';
|
||||
@@ -285,10 +285,10 @@ const MobileQuotePreview = ({ backlinkReply, quotelinkReply, isBacklinkReply, is
|
||||
onMouseOver={() => handleMouseOver(quotelinkReply?.cid)}
|
||||
onMouseLeave={() => handleMouseLeave(quotelinkReply?.cid)}
|
||||
>
|
||||
{quotelinkReply?.shortCid && `>>${quotelinkReply?.shortCid}`}
|
||||
{`>>${quotelinkReply?.number ?? '?'}`}
|
||||
{quotelinkReply?.author?.address === account?.author?.address && ' (You)'}
|
||||
</span>
|
||||
{quotelinkReply?.shortCid &&
|
||||
{quotelinkReply?.number &&
|
||||
(() => {
|
||||
const quotelinkBoardPath = quotelinkReply?.subplebbitAddress ? getBoardPath(quotelinkReply.subplebbitAddress, defaultSubplebbits) : undefined;
|
||||
const quotelinkRoute = quotelinkReply?.cid
|
||||
|
||||
@@ -5,6 +5,7 @@ import useSelectedTextStore from '../stores/use-selected-text-store';
|
||||
const useReplyModal = () => {
|
||||
const [showReplyModal, setShowReplyModal] = useState(false);
|
||||
const [activeCid, setActiveCid] = useState<string | null>(null);
|
||||
const [parentNumber, setParentNumber] = useState<number | null>(null);
|
||||
const [threadCid, setThreadCid] = useState<string | null>(null);
|
||||
const [subplebbitAddress, setSubplebbitAddress] = useState<string | null>(null);
|
||||
const { resetSelectedText, setSelectedText } = useSelectedTextStore();
|
||||
@@ -16,6 +17,7 @@ const useReplyModal = () => {
|
||||
const closeModal = useCallback(() => {
|
||||
resetSelectedText();
|
||||
setActiveCid(null);
|
||||
setParentNumber(null);
|
||||
setShowReplyModal(false);
|
||||
}, [resetSelectedText, setActiveCid, setShowReplyModal]);
|
||||
|
||||
@@ -24,7 +26,7 @@ const useReplyModal = () => {
|
||||
if (text) setSelectedText(`>${text}\n`);
|
||||
};
|
||||
|
||||
const openReplyModal = (parentCid: string, postCid: string, subplebbitAddress: string) => {
|
||||
const openReplyModal = (parentCid: string, parentNum: number | undefined, postCid: string, subplebbitAddress: string) => {
|
||||
getSelectedText();
|
||||
|
||||
if (isMobile) {
|
||||
@@ -36,12 +38,13 @@ const useReplyModal = () => {
|
||||
return;
|
||||
}
|
||||
setActiveCid(parentCid);
|
||||
setParentNumber(parentNum ?? null);
|
||||
setThreadCid(postCid);
|
||||
setShowReplyModal(true);
|
||||
setSubplebbitAddress(subplebbitAddress);
|
||||
};
|
||||
|
||||
return { activeCid, threadCid, closeModal, openReplyModal, scrollY, showReplyModal, subplebbitAddress };
|
||||
return { activeCid, parentNumber, threadCid, closeModal, openReplyModal, scrollY, showReplyModal, subplebbitAddress };
|
||||
};
|
||||
|
||||
export default useReplyModal;
|
||||
|
||||
@@ -4,16 +4,18 @@ import useSelectedTextStore from './use-selected-text-store';
|
||||
interface ReplyModalState {
|
||||
showReplyModal: boolean;
|
||||
activeCid: string | null;
|
||||
parentNumber: number | null;
|
||||
threadCid: string | null;
|
||||
subplebbitAddress: string | null;
|
||||
scrollY: number;
|
||||
closeModal: () => void;
|
||||
openReplyModal: (parentCid: string, postCid: string, subplebbitAddress: string) => void;
|
||||
openReplyModal: (parentCid: string, parentNumber: number | undefined, postCid: string, subplebbitAddress: string) => void;
|
||||
}
|
||||
|
||||
const useReplyModalStore = create<ReplyModalState>((set, get) => ({
|
||||
showReplyModal: false,
|
||||
activeCid: null,
|
||||
parentNumber: null,
|
||||
threadCid: null,
|
||||
subplebbitAddress: null,
|
||||
scrollY: 0,
|
||||
@@ -24,10 +26,11 @@ const useReplyModalStore = create<ReplyModalState>((set, get) => ({
|
||||
set({
|
||||
showReplyModal: false,
|
||||
activeCid: null,
|
||||
parentNumber: null,
|
||||
});
|
||||
},
|
||||
|
||||
openReplyModal: (parentCid, postCid, subplebbitAddress) => {
|
||||
openReplyModal: (parentCid, parentNumber, postCid, subplebbitAddress) => {
|
||||
// Don't update if already open with different parent
|
||||
if (get().activeCid && get().activeCid !== parentCid) {
|
||||
window.alert('Multiple quotes are not possible on 5chan for the time being, because of a protocol limitation. Please reply to one post at a time.');
|
||||
@@ -46,6 +49,7 @@ const useReplyModalStore = create<ReplyModalState>((set, get) => ({
|
||||
|
||||
set({
|
||||
activeCid: parentCid,
|
||||
parentNumber: parentNumber ?? null,
|
||||
threadCid: postCid,
|
||||
showReplyModal: true,
|
||||
subplebbitAddress,
|
||||
|
||||
Reference in New Issue
Block a user