From 3c2aed5f4f2a5b55e347019f488ffcab239488d9 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 18 Dec 2024 10:07:38 +0100 Subject: [PATCH] avoid adding unnecessary translation --- modules/clas/src/main/ui/DashboardUi.scala | 2 +- modules/coreI18n/src/main/key.scala | 1 - translation/source/class.xml | 1 - ui/@types/lichess/i18n.d.ts | 2 -- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/clas/src/main/ui/DashboardUi.scala b/modules/clas/src/main/ui/DashboardUi.scala index 884a26b461c5..532c19eac7f5 100644 --- a/modules/clas/src/main/ui/DashboardUi.scala +++ b/modules/clas/src/main/ui/DashboardUi.scala @@ -145,7 +145,7 @@ final class DashboardUi(helpers: Helpers, ui: ClasUi)(using NetDomain): td(momentFromNow(i.created.at)), td: postForm(action := routes.Clas.invitationRevoke(i.id)): - submitButton(cls := "button button-red button-empty")(trans.clas.revoke()) + submitButton(cls := "button button-red button-empty")(trans.site.delete()) ) ) val archivedBox = diff --git a/modules/coreI18n/src/main/key.scala b/modules/coreI18n/src/main/key.scala index 33b1e7894f0a..28538e522c02 100644 --- a/modules/coreI18n/src/main/key.scala +++ b/modules/coreI18n/src/main/key.scala @@ -284,7 +284,6 @@ object I18nKey: val `clickToViewInvitation`: I18nKey = "class:clickToViewInvitation" val `pending`: I18nKey = "class:pending" val `declined`: I18nKey = "class:declined" - val `revoke`: I18nKey = "class:revoke" val `onlyVisibleToTeachers`: I18nKey = "class:onlyVisibleToTeachers" val `lastActiveDate`: I18nKey = "class:lastActiveDate" val `managed`: I18nKey = "class:managed" diff --git a/translation/source/class.xml b/translation/source/class.xml index 4d4997e2ea96..34a02207ea46 100644 --- a/translation/source/class.xml +++ b/translation/source/class.xml @@ -59,7 +59,6 @@ Here is the link to access the class. Pending Declined - Revoke Only visible to the class teachers Active Managed diff --git a/ui/@types/lichess/i18n.d.ts b/ui/@types/lichess/i18n.d.ts index 3a842f58f4f5..7b93baaf32cf 100644 --- a/ui/@types/lichess/i18n.d.ts +++ b/ui/@types/lichess/i18n.d.ts @@ -593,8 +593,6 @@ interface I18n { reopen: string; /** Reset password */ resetPassword: string; - /** Revoke */ - revoke: string; /** Send a message to all students. */ sendAMessage: string; /** Student: %1$s */