From 82d1bc788b26203125fba64fa83d7d94165525a2 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Oct 2025 12:28:29 -0400 Subject: [PATCH] Update IT help message and remove unreferenced InstructionsEnum entries (#4391) * Initial plan * Update IT help message and remove unreferenced enum entries Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> * Revert changes to non-English .arb files Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> * remove unreferenced copy --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> Co-authored-by: ggurdin --- lib/l10n/intl_en.arb | 12 +--- lib/l10n/intl_es.arb | 10 ---- lib/l10n/intl_et.arb | 55 ------------------- lib/l10n/intl_vi.arb | 10 ---- .../instructions/instructions_enum.dart | 27 --------- 5 files changed, 1 insertion(+), 113 deletions(-) diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 57516526a..abbfc1fae 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -3269,8 +3269,6 @@ "greenFeedback": "That's what I would put!", "yellowFeedback": "Hm, you can try that and see if it works! To use this word, just click it again.", "redFeedback": "I don't think that's right...", - "itInstructionsTitle": "I can help you translate!", - "itInstructionsBody": "You can click and hold choices for word info.", "oneday": "Last 24 hours", "oneweek": "Last 7 days", "onemonth": "Past month", @@ -3945,8 +3943,6 @@ } }, "emptyChatNameWarning": "Please enter a name for this chat", - "blurMeansTranslateTitle": "Why is the message blurred?", - "blurMeansTranslateBody": "While Immersion Mode is on, messages that are sent in your base language will be blurred while Pangea Bot translates them to your target language. Immersion Mode can be toggled in individual and course settings.", "someErrorTitle": "Hm, something's not right", "someErrorBody": "It could be an error or something in your base language.", "bestCorrectionFeedback": "That's correct!", @@ -4109,9 +4105,6 @@ "runGrammarCorrection": "Check message", "grammarCorrectionFailed": "Issues to address", "grammarCorrectionComplete": "Looks good!", - "tooltipInstructionsTitle": "Not sure what that does?", - "tooltipInstructionsMobileBody": "Press and hold items to view tooltips.", - "tooltipInstructionsBrowserBody": "Hover over items to view tooltips.", "chatCapacity": "Chat capacity", "roomFull": "This room is already at capacity.", "topicNotSet": "The topic has not been set.", @@ -4188,13 +4181,10 @@ "feedback": "Optional feedback", "reportContentIssueDescription": "Uh oh! AI can faciliate personalized learning experiences but... also hallucinates. Please provide any feedback you have and we'll try again.", "changeContent": "Uh oh! AI can faciliate personalized learning experiences but... also hallucinates. What should it be?", - "clickTheWordAgainToDeselect": "Click the selected word to deselect it.", "l2SupportNa": "Not Available", "l2SupportAlpha": "Alpha", "l2SupportBeta": "Beta", "l2SupportFull": "Full", - "missingVoiceTitle": "Missing voice", - "voiceNotAvailable": "You don't have a voice installed for this language.", "openVoiceSettings": "Open voice settings", "playAudio": "Play", "stop": "Stop", @@ -4485,7 +4475,7 @@ } }, "botModeValidation": "Please select a chat mode", - "clickBestOption": "Choose the best options to translate your message!", + "clickBestOption": "Choose the best options to translate your message! Click and hold options for a hint.", "completeActivitiesToUnlock": "Complete at least one activity to unlock the translation!", "botSettingsSubtitle": "Invite bot to moderate chat activity", "invitePeople": "Invite users", diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index 87ae76e09..74e8699ef 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -3814,8 +3814,6 @@ }, "customInputFeedback": "¡Su traducción parece estar terminada! Creó su propia traducción.", "seeAlternativeTranslations": "Ver traducciones alternativas.", - "itInstructionsTitle": "¡Le puedo ayudar a traduccir!", - "itInstructionsBody": "Puede oprimir con clic largo las opciones para más información.", "chatItemTooltip": "Use clic largo para ver opciones.", "toggleLanguages": "Cambie el idioma de los mensajes seleccionados.", "holdForInfo": "Use clic largo para ver información de la palabra.", @@ -4461,7 +4459,6 @@ } }, "emptyChatNameWarning": "Introduzca un nombre para este chat", - "blurMeansTranslateTitle": "¿Por qué está borroso el mensaje?", "monthlySubscription": "Mensualmente", "yearlySubscription": "Anualmente", "defaultSubscription": "Suscripción al chat de Pangea", @@ -4615,9 +4612,6 @@ "runGrammarCorrection": "Comprobar mensaje", "grammarCorrectionFailed": "Cuestiones a tratar", "grammarCorrectionComplete": "¡Se ve bien!", - "tooltipInstructionsTitle": "¿No sabes para qué sirve?", - "tooltipInstructionsMobileBody": "Mantenga pulsados los elementos para ver la información sobre herramientas.", - "tooltipInstructionsBrowserBody": "Pase el ratón sobre los elementos para ver información sobre herramientas.", "buildTranslation": "Construye tu traducción a partir de las opciones anteriores", "languageSettings": "Ajustes de idioma", "selectSpaceDominantLanguage": "¿Cuál es la lengua más común de los miembros del espacio?", @@ -4700,7 +4694,6 @@ "reportContentIssueTitle": "Informar sobre un problema de contenido", "feedback": "Comentarios opcionales", "reportContentIssueDescription": "¡Ups! La IA puede facilitar experiencias de aprendizaje personalizadas, pero... también alucina. Por favor, proporciona cualquier comentario que tengas y lo intentaremos de nuevo.", - "clickTheWordAgainToDeselect": "Click the selected word to deselect it.", "l2SupportNa": "Haz clic en la palabra seleccionada para deseleccionarla", "l2SupportAlpha": "Alfa", "l2SupportBeta": "Beta", @@ -4709,7 +4702,6 @@ "chatCapacityHasBeenChanged": "Capacidad de chat modificada", "chatCapacityExplanation": "La capacidad del chat limita el número de usuarios no administradores permitidos en un chat.", "tooManyRequest": "Demasiadas solicitudes, por favor inténtelo más tarde.", - "voiceNotAvailable": "Parece que no tienes una voz instalada para este idioma.", "openVoiceSettings": "Haz clic aquí para abrir los ajustes de voz", "playAudio": "Jugar", "stop": "Stop", @@ -4842,7 +4834,6 @@ "chatCapacityNotSet": "Este chat no tiene límite de capacidad.", "chatExceedsCapacity": "Este chat supera su capacidad.", "botConfig": "Configuración de bots y actividades", - "missingVoiceTitle": "La voz que falta", "grammarCopyPOSsconj": "Conjunción subordinante", "grammarCopyPOSnum": "Número", "grammarCopyPOSverb": "Verbo", @@ -5111,7 +5102,6 @@ "grammarCopyVOICErcp": "Reciprocal", "other": "Otros", "botModeValidation": "Seleccione un modo de chat", - "clickBestOption": "Elija las mejores opciones para traducir su mensaje", "botSettingsSubtitle": "Invitar a un bot a moderar la actividad del chat", "invitePeople": "Invitar a usuarios", "noCapacityLimit": "Sin límite de capacidad", diff --git a/lib/l10n/intl_et.arb b/lib/l10n/intl_et.arb index 65b042748..31eeaa366 100644 --- a/lib/l10n/intl_et.arb +++ b/lib/l10n/intl_et.arb @@ -3395,8 +3395,6 @@ "greenFeedback": "See on see, mida ma paneksin!", "yellowFeedback": "Hm, võid proovida seda ja vaadata, kas see töötab! Selle sõna kasutamiseks klõpsa seda uuesti.", "redFeedback": "Ma arvan, et see ei ole õige...", - "itInstructionsTitle": "Ma saan sind aidata tõlkida!", - "itInstructionsBody": "Sa võid klõpsata ja hoida valikuid sõna info saamiseks.", "oneday": "Viimased 24 tundi", "oneweek": "Viimased 7 päeva", "onemonth": "Eelmine kuu", @@ -4038,8 +4036,6 @@ "emptyChatNameWarning": "Palun sisestage selle vestluse nimi", "emptyClassNameWarning": "Palun sisestage selle klassi nimi", "emptySpaceNameWarning": "Palun sisestage selle ruumi nimi", - "blurMeansTranslateTitle": "Miks on sõnum udustatud?", - "blurMeansTranslateBody": "Kui Immersion Mode on sisse lülitatud, udustatakse sõnumeid, mis saadetakse teie baaskeeles, samal ajal kui Pangea Bot tõlgib neid teie sihtkeelde. Immersion Mode'i saab sisse või välja lülitada üksikute ja ruumi seadetes.", "someErrorTitle": "Hmm, midagi on valesti", "someErrorBody": "See võib olla viga või midagi teie baaskeeles.", "bestCorrectionFeedback": "See on õige!", @@ -4164,9 +4160,6 @@ "runGrammarCorrection": "Kontrolli sõnumit", "grammarCorrectionFailed": "Vajadusel parandada", "grammarCorrectionComplete": "Väga hea!", - "tooltipInstructionsTitle": "Ei tea, mida see teeb?", - "tooltipInstructionsMobileBody": "Puuduta ja hoia, et vaadata tööriistatekste.", - "tooltipInstructionsBrowserBody": "Liigu hiirega üle üksuste, et vaadata tööriistatekste.", "addSpaceToSpaceDescription": "Vali ruum, mida lisada vanemaks", "chatCapacity": "Vestluse maht", "spaceCapacity": "Ruumimaht", @@ -4229,13 +4222,10 @@ "feedback": "Valikuline tagasiside", "reportContentIssueDescription": "Oh ei! Tehisintellekt võib pakkuda isikupärastatud õpikogemusi, kuid... ka hallutsineerib. Palun andke meile tagasisidet ja proovime uuesti.", "changeContent": "Oh ei! Tehisintellekt võib pakkuda isikupärastatud õpikogemusi, kuid... ka hallutsineerib. Mis see peaks olema?", - "clickTheWordAgainToDeselect": "Klõpsa valitud sõnale, et tühistada valik.", "l2SupportNa": "Pole saadaval", "l2SupportAlpha": "Alpha", "l2SupportBeta": "Beta", "l2SupportFull": "Täielik", - "missingVoiceTitle": "Puuduv hääl", - "voiceNotAvailable": "Selle keele jaoks ei ole heli installitud.", "openVoiceSettings": "Ava hääle seaded", "playAudio": "Esita", "stop": "Lõpeta", @@ -4518,7 +4508,6 @@ "other": "Muu", "levelShort": "TASE {level}", "botModeValidation": "Palun valige vestlusrežiim", - "clickBestOption": "Valige parimad valikud, et tõlkida oma sõnum!", "completeActivitiesToUnlock": "Lõpeta vähemalt üks tegevus, et lukustada tõlge!", "botSettingsSubtitle": "Kutsuge bot modererima vestlustegevust", "invitePeople": "Kutsuge kasutajaid", @@ -4963,14 +4952,6 @@ "type": "String", "placeholders": {} }, - "@itInstructionsTitle": { - "type": "String", - "placeholders": {} - }, - "@itInstructionsBody": { - "type": "String", - "placeholders": {} - }, "@oneday": { "type": "String", "placeholders": {} @@ -7582,14 +7563,6 @@ "type": "String", "placeholders": {} }, - "@blurMeansTranslateTitle": { - "type": "String", - "placeholders": {} - }, - "@blurMeansTranslateBody": { - "type": "String", - "placeholders": {} - }, "@someErrorTitle": { "type": "String", "placeholders": {} @@ -8115,18 +8088,6 @@ "type": "String", "placeholders": {} }, - "@tooltipInstructionsTitle": { - "type": "String", - "placeholders": {} - }, - "@tooltipInstructionsMobileBody": { - "type": "String", - "placeholders": {} - }, - "@tooltipInstructionsBrowserBody": { - "type": "String", - "placeholders": {} - }, "@addSpaceToSpaceDescription": { "type": "String", "placeholders": {} @@ -8394,10 +8355,6 @@ "type": "String", "placeholders": {} }, - "@clickTheWordAgainToDeselect": { - "type": "String", - "placeholders": {} - }, "@l2SupportNa": { "type": "String", "placeholders": {} @@ -8414,14 +8371,6 @@ "type": "String", "placeholders": {} }, - "@missingVoiceTitle": { - "type": "String", - "placeholders": {} - }, - "@voiceNotAvailable": { - "type": "String", - "placeholders": {} - }, "@openVoiceSettings": { "type": "String", "placeholders": {} @@ -9554,10 +9503,6 @@ "type": "String", "placeholders": {} }, - "@clickBestOption": { - "type": "String", - "placeholders": {} - }, "@completeActivitiesToUnlock": { "type": "String", "placeholders": {} diff --git a/lib/l10n/intl_vi.arb b/lib/l10n/intl_vi.arb index b7389fab6..6a42101e2 100644 --- a/lib/l10n/intl_vi.arb +++ b/lib/l10n/intl_vi.arb @@ -1739,8 +1739,6 @@ "yellowFeedback": "Bạn có thể thử từ đó! Nhấn lại để dùng.", "redFeedback": "Tôi nghĩ không đúng lắm...", "customInputFeedbackChoice": "Bạn tự viết. Hay đấy!", - "itInstructionsTitle": "Tôi có thể giúp bạn dịch!", - "itInstructionsBody": "Bạn có thể nhấn và giữ lựa chọn để xem giải thích chi tiết.", "toggleLanguages": "Chuyển ngôn ngữ của tin nhắn đã chọn.", "classWelcomeChat": "Phòng chào mừng", "deleteSpace": "Xóa Không gian", @@ -2451,7 +2449,6 @@ } }, "emptyChatNameWarning": "Vui lòng nhập tên cho cuộc trò chuyện này", - "blurMeansTranslateTitle": "Tại sao tin nhắn bị làm mờ?", "someErrorTitle": "Hmm, có gì đó không đúng", "someErrorBody": "Có thể đây là lỗi hoặc nội dung bằng ngôn ngữ khác.", "bestCorrectionFeedback": "Đúng rồi!", @@ -2797,9 +2794,6 @@ "runGrammarCorrection": "Kiểm tra ngữ pháp", "grammarCorrectionFailed": "Có vấn đề cần sửa", "grammarCorrectionComplete": "Có vẻ ổn!", - "tooltipInstructionsTitle": "Chưa rõ tính năng này?", - "tooltipInstructionsMobileBody": "Giữ lâu để xem giải thích.", - "tooltipInstructionsBrowserBody": "Di chuột để xem giải thích.", "chatCapacity": "Giới hạn thành viên trò chuyện", "roomFull": "Phòng đã đạt giới hạn.", "topicNotSet": "Chưa đặt chủ đề.", @@ -2926,13 +2920,10 @@ "feedback": "Phản hồi (tùy chọn)", "reportContentIssueDescription": "Ôi không! AI hỗ trợ cá nhân hóa nhưng đôi khi vẫn nhầm lẫn. Hãy cho chúng tôi biết phản hồi của bạn hoặc ta sẽ thử lại.", "changeContent": "Bạn muốn thay đổi nội dung như thế nào?", - "clickTheWordAgainToDeselect": "Nhấn lại vào từ đã chọn để bỏ chọn.", "l2SupportNa": "Không khả dụng", "l2SupportAlpha": "Bản Alpha", "l2SupportBeta": "Bản Beta", "l2SupportFull": "Hoàn chỉnh", - "missingVoiceTitle": "Thiếu giọng đọc", - "voiceNotAvailable": "Bạn chưa cài đặt giọng đọc cho ngôn ngữ này.", "openVoiceSettings": "Mở cài đặt giọng nói", "playAudio": "Phát", "stop": "Dừng", @@ -3221,7 +3212,6 @@ } }, "botModeValidation": "Vui lòng chọn một chế độ trò chuyện", - "clickBestOption": "Chọn phương án tốt nhất để dịch tin nhắn của bạn!", "botSettingsSubtitle": "Mời bot kiểm duyệt hoặc khởi tạo hoạt động trò chuyện", "invitePeople": "Mời người dùng", "invitePeopleChatSubtitle": "Mời người dùng hoặc quản trị viên đến cuộc trò chuyện này", diff --git a/lib/pangea/instructions/instructions_enum.dart b/lib/pangea/instructions/instructions_enum.dart index ae989974b..ae0d821d1 100644 --- a/lib/pangea/instructions/instructions_enum.dart +++ b/lib/pangea/instructions/instructions_enum.dart @@ -4,19 +4,13 @@ import 'package:flutter/foundation.dart'; import 'package:fluffychat/l10n/l10n.dart'; import 'package:fluffychat/pangea/common/utils/error_handler.dart'; -import 'package:fluffychat/utils/platform_infos.dart'; import 'package:fluffychat/widgets/matrix.dart'; enum InstructionsEnum { - itInstructions, clickMessage, - blurMeansTranslate, - tooltipInstructions, speechToText, l1Translation, translationChoices, - clickAgainToDeselect, - missingVoice, clickBestOption, completeActivitiesToUnlock, chooseLemmaMeaning, @@ -37,22 +31,13 @@ enum InstructionsEnum { extension InstructionsEnumExtension on InstructionsEnum { String title(L10n l10n) { switch (this) { - case InstructionsEnum.itInstructions: - return l10n.itInstructionsTitle; case InstructionsEnum.clickMessage: return l10n.clickMessageTitle; - case InstructionsEnum.blurMeansTranslate: - return l10n.blurMeansTranslateTitle; - case InstructionsEnum.tooltipInstructions: - return l10n.tooltipInstructionsTitle; - case InstructionsEnum.missingVoice: - return l10n.missingVoiceTitle; case InstructionsEnum.ttsDisabled: return l10n.ttsDisbledTitle; case InstructionsEnum.chooseWordAudio: case InstructionsEnum.chooseEmoji: case InstructionsEnum.activityPlannerOverview: - case InstructionsEnum.clickAgainToDeselect: case InstructionsEnum.speechToText: case InstructionsEnum.l1Translation: case InstructionsEnum.translationChoices: @@ -82,26 +67,14 @@ extension InstructionsEnumExtension on InstructionsEnum { String body(L10n l10n) { switch (this) { - case InstructionsEnum.itInstructions: - return l10n.itInstructionsBody; case InstructionsEnum.clickMessage: return l10n.clickMessageBody; - case InstructionsEnum.blurMeansTranslate: - return l10n.blurMeansTranslateBody; case InstructionsEnum.speechToText: return l10n.speechToTextBody; case InstructionsEnum.l1Translation: return l10n.l1TranslationBody; case InstructionsEnum.translationChoices: return l10n.translationChoicesBody; - case InstructionsEnum.clickAgainToDeselect: - return l10n.clickTheWordAgainToDeselect; - case InstructionsEnum.tooltipInstructions: - return PlatformInfos.isMobile - ? l10n.tooltipInstructionsMobileBody - : l10n.tooltipInstructionsBrowserBody; - case InstructionsEnum.missingVoice: - return l10n.voiceNotAvailable; case InstructionsEnum.clickBestOption: return l10n.clickBestOption; case InstructionsEnum.completeActivitiesToUnlock: