From d1989d89f52dc25a1367b7f144dbce6d94c5a9c0 Mon Sep 17 00:00:00 2001 From: Harald Schilly Date: Tue, 15 Oct 2024 11:29:57 +0200 Subject: [PATCH] frontend/project: translate project deleted banner and make it a proper banner --- src/packages/frontend/i18n/trans/ar_EG.json | 1 + src/packages/frontend/i18n/trans/de_DE.json | 1 + src/packages/frontend/i18n/trans/es_ES.json | 1 + src/packages/frontend/i18n/trans/fr_FR.json | 1 + src/packages/frontend/i18n/trans/he_IL.json | 1 + src/packages/frontend/i18n/trans/hi_IN.json | 1 + src/packages/frontend/i18n/trans/hu_HU.json | 1 + src/packages/frontend/i18n/trans/it_IT.json | 1 + src/packages/frontend/i18n/trans/ja_JP.json | 1 + src/packages/frontend/i18n/trans/ko_KR.json | 1 + src/packages/frontend/i18n/trans/pl_PL.json | 1 + src/packages/frontend/i18n/trans/pt_PT.json | 1 + src/packages/frontend/i18n/trans/ru_RU.json | 1 + src/packages/frontend/i18n/trans/tr_TR.json | 1 + src/packages/frontend/i18n/trans/zh_CN.json | 1 + .../frontend/project/warnings/deleted.tsx | 22 +++++++++++-------- 16 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/packages/frontend/i18n/trans/ar_EG.json b/src/packages/frontend/i18n/trans/ar_EG.json index 55556b99a4..8787b606c1 100644 --- a/src/packages/frontend/i18n/trans/ar_EG.json +++ b/src/packages/frontend/i18n/trans/ar_EG.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {بدء المشروع} other {ابدأ المشروع}}", "project.start-button.trial.description": "لا توجد سعة لمشاريع التجربة المجانية على CoCalc في الوقت الحالي. {br} قم بترقية مشروعك باستخدام رخصة أو {A4}.", "project.start-button.trial.message": "عدد كبير جدًا من المشاريع التجريبية المجانية", + "project.warnings.deleted.banner": "

{icon} تحذير: هذا المشروع محذوف!

إذا كنت تنوي استخدام هذا المشروع، ينبغي عليك استعادته في إعدادات المشروع.", "projects.filename-search.placeholder": "ابحث عن أسماء الملفات التي قمت بتحريرها...", "projects.load-all.label": "عرض كل المشاريع...", "projects.search.placeholder": "ابحث عن المشاريع (استخدم /re/ للبحث المنتظم)...", diff --git a/src/packages/frontend/i18n/trans/de_DE.json b/src/packages/frontend/i18n/trans/de_DE.json index 7859e993b6..133ea27cbc 100644 --- a/src/packages/frontend/i18n/trans/de_DE.json +++ b/src/packages/frontend/i18n/trans/de_DE.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Projekt wird gestartet} other {Projekt starten}}", "project.start-button.trial.description": "Es gibt derzeit keine Kapazität mehr für Free Trial Projekte auf CoCalc. {br} Upgrade dieses Projekt mit einer Lizenz oder {A4}.", "project.start-button.trial.message": "Zu viele kostenlose Probeprojekte", + "project.warnings.deleted.banner": "

{icon} Warnung: dieses Projekt ist gelöscht!

Wenn Sie dieses Projekt nutzen möchten, sollten Sie es in den Projekteinstellungen wiederherstellen.", "projects.filename-search.placeholder": "Suche nach Dateien, die Sie bearbeitet haben...", "projects.load-all.label": "Zeige alle Projekte...", "projects.search.placeholder": "Suche nach Projekten (verwende /re/ für reguläre Ausdrücke)", diff --git a/src/packages/frontend/i18n/trans/es_ES.json b/src/packages/frontend/i18n/trans/es_ES.json index ab241dc01d..2045ff10bf 100644 --- a/src/packages/frontend/i18n/trans/es_ES.json +++ b/src/packages/frontend/i18n/trans/es_ES.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Iniciando proyecto} other {Iniciar proyecto}}", "project.start-button.trial.description": "No hay más capacidad para proyectos de Prueba Gratuita en CoCalc en este momento. {br} Actualiza tu proyecto usando una licencia o {A4}.", "project.start-button.trial.message": "Demasiados Proyectos de Prueba Gratuita", + "project.warnings.deleted.banner": "

{icon} Advertencia: este proyecto está ¡eliminado!

Si tienes la intención de usar este proyecto, debes recuperarlo en la configuración del proyecto.", "projects.filename-search.placeholder": "Buscar nombres de archivos que editaste", "projects.load-all.label": "Mostrar todos los proyectos...", "projects.search.placeholder": "Buscar proyectos (use /re/ para regexp)...", diff --git a/src/packages/frontend/i18n/trans/fr_FR.json b/src/packages/frontend/i18n/trans/fr_FR.json index 2aa978f34d..dd02966b71 100644 --- a/src/packages/frontend/i18n/trans/fr_FR.json +++ b/src/packages/frontend/i18n/trans/fr_FR.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Démarrage du projet} other {Démarrer le projet}}", "project.start-button.trial.description": "Il n'y a plus de capacité pour les projets d'essai gratuit sur CoCalc pour le moment. {br} Améliorez votre projet en utilisant une licence ou {A4}.", "project.start-button.trial.message": "Trop de projets d'essai gratuits", + "project.warnings.deleted.banner": "

{icon} Avertissement : ce projet est supprimé !

Si vous avez l'intention d'utiliser ce projet, vous devriez le restaurer dans les paramètres du projet.", "projects.filename-search.placeholder": "Rechercher les noms de fichiers que vous avez modifiés...", "projects.load-all.label": "Afficher tous les projets...", "projects.search.placeholder": "Rechercher des projets (utiliser /re/ pour les expressions régulières)...", diff --git a/src/packages/frontend/i18n/trans/he_IL.json b/src/packages/frontend/i18n/trans/he_IL.json index d1ba821922..b4369ef9e7 100644 --- a/src/packages/frontend/i18n/trans/he_IL.json +++ b/src/packages/frontend/i18n/trans/he_IL.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {מפעיל פרויקט} other {הפעל פרויקט}}", "project.start-button.trial.description": "אין יותר מקום עבור פרויקטים לניסיון חינם ב-CoCalc כרגע. {br} שדרג את הפרויקט שלך באמצעות רישיון או {A4}.", "project.start-button.trial.message": "יותר מדי פרויקטים של ניסיון חינם", + "project.warnings.deleted.banner": "

{icon} אזהרה: הפרויקט הזה נמחק!

אם אתה מתכוון להשתמש בפרויקט הזה, עליך לבטל את המחיקה שלו בהגדרות הפרויקט.", "projects.filename-search.placeholder": "חפש קבצים שערכת...", "projects.load-all.label": "הצג את כל הפרויקטים...", "projects.search.placeholder": "חפש פרויקטים (השתמש ב-/re/ לחיפוש רגולרי)...", diff --git a/src/packages/frontend/i18n/trans/hi_IN.json b/src/packages/frontend/i18n/trans/hi_IN.json index c3a1476654..7dff1e3adf 100644 --- a/src/packages/frontend/i18n/trans/hi_IN.json +++ b/src/packages/frontend/i18n/trans/hi_IN.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {परियोजना शुरू हो रही है} other {परियोजना शुरू करें}}", "project.start-button.trial.description": "CoCalc पर अभी फ्री ट्रायल प्रोजेक्ट्स के लिए और क्षमता नहीं है। {br} अपने प्रोजेक्ट को अपग्रेड करें लाइसेंस का उपयोग करके या {A4}।", "project.start-button.trial.message": "बहुत सारे मुफ्त ट्रायल प्रोजेक्ट्स", + "project.warnings.deleted.banner": "

{icon} चेतावनी: यह प्रोजेक्ट हटाया गया है!

यदि आप इस प्रोजेक्ट का उपयोग करना चाहते हैं, तो आपको प्रोजेक्ट सेटिंग्स में इसे अनहटाना चाहिए।", "projects.filename-search.placeholder": "संपादित की गई फ़ाइल नाम खोजें...", "projects.load-all.label": "सभी प्रोजेक्ट दिखाएँ...", "projects.search.placeholder": "प्रोजेक्ट खोजें (regexp के लिए /re/ का उपयोग करें)...", diff --git a/src/packages/frontend/i18n/trans/hu_HU.json b/src/packages/frontend/i18n/trans/hu_HU.json index c6406b49a3..61fcb62fcc 100644 --- a/src/packages/frontend/i18n/trans/hu_HU.json +++ b/src/packages/frontend/i18n/trans/hu_HU.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Projekt indítása} other {Projekt indítása}}", "project.start-button.trial.description": "Nincs több kapacitás az Ingyenes Próba projektek számára a CoCalc-on jelenleg. {br} Frissítse projektjét licenc használatával vagy {A4}.", "project.start-button.trial.message": "Túl sok ingyenes próba projekt", + "project.warnings.deleted.banner": "

{icon} Figyelem: ez a projekt törölve van!

Ha használni szeretné ezt a projektet, akkor vissza kell állítania a projekt beállításaiban.", "projects.filename-search.placeholder": "Keressen a szerkesztett fájlnevek között...", "projects.load-all.label": "Összes projekt megjelenítése...", "projects.search.placeholder": "Projektek keresése (használja a /re/ a regexphez)...", diff --git a/src/packages/frontend/i18n/trans/it_IT.json b/src/packages/frontend/i18n/trans/it_IT.json index 215448190f..c953f4c46d 100644 --- a/src/packages/frontend/i18n/trans/it_IT.json +++ b/src/packages/frontend/i18n/trans/it_IT.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Avvio progetto} other {Avvia progetto}}", "project.start-button.trial.description": "Non c'è più capacità per i progetti Free Trial su CoCalc in questo momento. {br} Aggiorna il tuo progetto utilizzando una licenza o {A4}.", "project.start-button.trial.message": "Troppi Progetti di Prova Gratuita", + "project.warnings.deleted.banner": "

{icon} Attenzione: questo progetto è eliminato!

Se intendi utilizzare questo progetto, dovresti ripristinarlo nelle impostazioni del progetto.", "projects.filename-search.placeholder": "Cerca i nomi dei file che hai modificato...", "projects.load-all.label": "Mostra tutti i progetti...", "projects.search.placeholder": "Cerca progetti (usa /re/ per regexp)...", diff --git a/src/packages/frontend/i18n/trans/ja_JP.json b/src/packages/frontend/i18n/trans/ja_JP.json index 05abbcdd43..2b6ec7e095 100644 --- a/src/packages/frontend/i18n/trans/ja_JP.json +++ b/src/packages/frontend/i18n/trans/ja_JP.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {プロジェクトを開始しています} other {プロジェクトを開始}}", "project.start-button.trial.description": "現在CoCalcでは無料試用プロジェクトの容量がありません。 {br} ライセンスを使用してプロジェクトをアップグレードするか{A4}。", "project.start-button.trial.message": "無料トライアルプロジェクトが多すぎます", + "project.warnings.deleted.banner": "

{icon} 警告: このプロジェクトは削除されました!

このプロジェクトを使用するつもりなら、プロジェクト設定で削除を取り消してください。", "projects.filename-search.placeholder": "編集したファイル名を検索...", "projects.load-all.label": "すべてのプロジェクトを表示...", "projects.search.placeholder": "プロジェクトを検索 (/re/ を正規表現として使用)...", diff --git a/src/packages/frontend/i18n/trans/ko_KR.json b/src/packages/frontend/i18n/trans/ko_KR.json index 22622b92cb..1e905ae183 100644 --- a/src/packages/frontend/i18n/trans/ko_KR.json +++ b/src/packages/frontend/i18n/trans/ko_KR.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {프로젝트 시작 중} other {프로젝트 시작}}", "project.start-button.trial.description": "현재 CoCalc에는 무료 체험 프로젝트의 추가 용량이 없습니다. {br} 라이선스를 사용하여 프로젝트를 업그레이드하거나 {A4}하십시오.", "project.start-button.trial.message": "무료 체험 프로젝트가 너무 많음", + "project.warnings.deleted.banner": "

{icon} 경고: 이 프로젝트는 삭제되었습니다!

이 프로젝트를 사용하려면 프로젝트 설정에서 삭제 취소를 해야 합니다.", "projects.filename-search.placeholder": "편집한 파일 이름 검색...", "projects.load-all.label": "모든 프로젝트 보기...", "projects.search.placeholder": "프로젝트 검색 (/re/ 정규식 사용)...", diff --git a/src/packages/frontend/i18n/trans/pl_PL.json b/src/packages/frontend/i18n/trans/pl_PL.json index 2744017f82..d97f1a1171 100644 --- a/src/packages/frontend/i18n/trans/pl_PL.json +++ b/src/packages/frontend/i18n/trans/pl_PL.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Uruchamianie projektu} other {Uruchom projekt}}", "project.start-button.trial.description": "Nie ma już więcej miejsca na projekty w bezpłatnej wersji próbnej na CoCalc w tej chwili. {br} Uaktualnij swój projekt używając licencji lub {A4}.", "project.start-button.trial.message": "Zbyt Wiele Projektów w Darmowej Wersji Próbnej", + "project.warnings.deleted.banner": "

{icon} Ostrzeżenie: ten projekt jest usunięty!

Jeśli zamierzasz korzystać z tego projektu, powinieneś przywrócić go w ustawieniach projektu.", "projects.filename-search.placeholder": "Szukaj nazw plików, które edytowałeś...", "projects.load-all.label": "Pokaż wszystkie projekty...", "projects.search.placeholder": "Wyszukaj projekty (użyj /re/ dla wyrażeń regularnych)...", diff --git a/src/packages/frontend/i18n/trans/pt_PT.json b/src/packages/frontend/i18n/trans/pt_PT.json index ceabdbca15..acebeec01b 100644 --- a/src/packages/frontend/i18n/trans/pt_PT.json +++ b/src/packages/frontend/i18n/trans/pt_PT.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {A iniciar projeto} other {Iniciar projeto}}", "project.start-button.trial.description": "Não há mais capacidade para projetos de Teste Gratuito no CoCalc neste momento. {br} Atualize o seu projeto usando uma licença ou {A4}.", "project.start-button.trial.message": "Demasiados Projetos de Teste Gratuitos", + "project.warnings.deleted.banner": "

{icon} Aviso: este projeto está eliminado!

Se pretender usar este projeto, deve restaurá-lo nas definições do projeto.", "projects.filename-search.placeholder": "Procurar por nomes de ficheiros que editou...", "projects.load-all.label": "Mostrar todos os projetos...", "projects.search.placeholder": "Procurar projetos (use /re/ para regexp)...", diff --git a/src/packages/frontend/i18n/trans/ru_RU.json b/src/packages/frontend/i18n/trans/ru_RU.json index 2fcd4920fc..6ec6a8d6b4 100644 --- a/src/packages/frontend/i18n/trans/ru_RU.json +++ b/src/packages/frontend/i18n/trans/ru_RU.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Запуск проекта} other {Запустить проект}}", "project.start-button.trial.description": "На CoCalc сейчас нет свободных ресурсов для бесплатных пробных проектов. {br} Обновите свой проект с помощью лицензии или {A4}.", "project.start-button.trial.message": "Слишком много пробных проектов", + "project.warnings.deleted.banner": "

{icon} Внимание: этот проект удален!

Если вы собираетесь использовать этот проект, вам следует восстановить его в настройках проекта.", "projects.filename-search.placeholder": "Искать измененные вами файлы...", "projects.load-all.label": "Показать все проекты...", "projects.search.placeholder": "Искать проекты (используйте /re/ для regexp)...", diff --git a/src/packages/frontend/i18n/trans/tr_TR.json b/src/packages/frontend/i18n/trans/tr_TR.json index 7a22bef5a2..e9355a4c0a 100644 --- a/src/packages/frontend/i18n/trans/tr_TR.json +++ b/src/packages/frontend/i18n/trans/tr_TR.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {Proje başlatılıyor} other {Projeyi başlat}}", "project.start-button.trial.description": "Şu anda CoCalc üzerinde Ücretsiz Deneme projeleri için daha fazla kapasite yok. {br} Projenizi yükseltin bir lisans kullanarak veya {A4}.", "project.start-button.trial.message": "Çok Fazla Ücretsiz Deneme Projesi", + "project.warnings.deleted.banner": "

{icon} Uyarı: bu proje silindi!

Bu projeyi kullanmayı düşünüyorsanız, proje ayarlarında silinmesini geri alın.", "projects.filename-search.placeholder": "Düzenlediğiniz dosya adlarını arayın...", "projects.load-all.label": "Tüm projeleri göster...", "projects.search.placeholder": "Projeleri ara (/re/ kullanarak düzenli ifade)...", diff --git a/src/packages/frontend/i18n/trans/zh_CN.json b/src/packages/frontend/i18n/trans/zh_CN.json index bb2465076b..d07ebc7655 100644 --- a/src/packages/frontend/i18n/trans/zh_CN.json +++ b/src/packages/frontend/i18n/trans/zh_CN.json @@ -909,6 +909,7 @@ "project.start-button.button.txt": "{starting, select, true {启动项目} other {启动项目}}", "project.start-button.trial.description": "目前CoCalc上没有更多的免费试用项目容量。{br} 使用许可证或{A4} 升级您的项目。", "project.start-button.trial.message": "免费试用项目过多", + "project.warnings.deleted.banner": "

{icon} 警告:此项目已删除!

如果您打算使用此项目,应该在项目设置中取消删除。", "projects.filename-search.placeholder": "搜索你编辑过的文件名", "projects.load-all.label": "显示所有项目...", "projects.search.placeholder": "搜索项目(使用 /re/ 进行正则表达式搜索)…", diff --git a/src/packages/frontend/project/warnings/deleted.tsx b/src/packages/frontend/project/warnings/deleted.tsx index 6bdc5b7ce3..a7d119518f 100644 --- a/src/packages/frontend/project/warnings/deleted.tsx +++ b/src/packages/frontend/project/warnings/deleted.tsx @@ -3,21 +3,25 @@ * License: MS-RSL – see LICENSE.md for details */ +import { FormattedMessage } from "react-intl"; + import { Alert } from "@cocalc/frontend/antd-bootstrap"; import { Icon } from "@cocalc/frontend/components"; // A warning to put on pages when the project is deleted export const DeletedProjectWarning: React.FC = () => { return ( - -

- Warning: this project is{" "} - deleted! -

-

- If you intend to use this project, you should{" "} - undelete it in project settings. -

+ + {icon} Warning: this project is deleted! + If you intend to use this project, you should undelete it in project settings.`} + values={{ + icon: , + strong: (c) => {c}, + h4: (c) =>

{c}

, + }} + />
); };