From 8b71b1e995c1c0b18239d74b7ff288b9a4925600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Mon, 19 Jan 2026 15:51:30 +0100 Subject: [PATCH] Fix some Scribe translations - Added missing translations - Removed missing translations - Some small translations updates --- lib/l10n/intl_fr.arb | 6 ---- lib/l10n/intl_ru.arb | 6 ---- lib/l10n/intl_vi.arb | 6 ---- scribe/lib/scribe/ai/l10n/intl_en.arb | 28 +++++++++++-------- scribe/lib/scribe/ai/l10n/intl_fr.arb | 28 +++++++++++-------- scribe/lib/scribe/ai/l10n/intl_messages.arb | 16 ++--------- scribe/lib/scribe/ai/l10n/intl_ru.arb | 28 +++++++++++-------- scribe/lib/scribe/ai/l10n/intl_vi.arb | 28 +++++++++++-------- .../localizations/scribe_localizations.dart | 16 +---------- .../widgets/search/ai_scribe_bar.dart | 2 +- 10 files changed, 72 insertions(+), 92 deletions(-) diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb index c27a24ecf..e59b586b5 100644 --- a/lib/l10n/intl_fr.arb +++ b/lib/l10n/intl_fr.arb @@ -5492,12 +5492,6 @@ "placeholders_order": [], "placeholders": {} }, - "aiAssistant": "Assistant IA", - "@aiAssistant": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "createLabel": "Créer un libellé", "@createLabel": { "type": "text", diff --git a/lib/l10n/intl_ru.arb b/lib/l10n/intl_ru.arb index 99e169830..61c85840e 100644 --- a/lib/l10n/intl_ru.arb +++ b/lib/l10n/intl_ru.arb @@ -5510,12 +5510,6 @@ "placeholders_order": [], "placeholders": {} }, - "aiAssistant": "Помощник ИИ", - "@aiAssistant": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "createLabel": "Создать метку", "@createLabel": { "type": "text", diff --git a/lib/l10n/intl_vi.arb b/lib/l10n/intl_vi.arb index a9cf6cd5d..e7865f7cf 100644 --- a/lib/l10n/intl_vi.arb +++ b/lib/l10n/intl_vi.arb @@ -5498,12 +5498,6 @@ "placeholders_order": [], "placeholders": {} }, - "aiAssistant": "Trợ lý AI", - "@aiAssistant": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "createLabel": "Tạo nhãn", "@createLabel": { "type": "text", diff --git a/scribe/lib/scribe/ai/l10n/intl_en.arb b/scribe/lib/scribe/ai/l10n/intl_en.arb index 45384b644..743b56bb8 100644 --- a/scribe/lib/scribe/ai/l10n/intl_en.arb +++ b/scribe/lib/scribe/ai/l10n/intl_en.arb @@ -1,6 +1,6 @@ { "@@last_modified": "2025-12-09T06:57:10.911448", - "categoryCorrectGrammar": "Correct grammar", + "categoryCorrectGrammar": "Correct", "@categoryCorrectGrammar": { "type": "text", "placeholders_order": [], @@ -90,12 +90,6 @@ "placeholders_order": [], "placeholders": {} }, - "inputPlaceholder": "Help me write", - "@inputPlaceholder": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "customPromptAction": "Help me write", "@customPromptAction": { "type": "text", @@ -108,14 +102,26 @@ "placeholders_order": [], "placeholders": {} }, - "insertButton": "Insert", - "@insertButton": { + "generatingResponse": "Generating response", + "@generatingResponse": { "type": "text", "placeholders_order": [], "placeholders": {} }, - "replaceButton": "Replace", - "@replaceButton": { + "insert": "Insert", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "Replace", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "AI assistant", + "@aiAssistant": { "type": "text", "placeholders_order": [], "placeholders": {} diff --git a/scribe/lib/scribe/ai/l10n/intl_fr.arb b/scribe/lib/scribe/ai/l10n/intl_fr.arb index 42626526e..ad9abd004 100644 --- a/scribe/lib/scribe/ai/l10n/intl_fr.arb +++ b/scribe/lib/scribe/ai/l10n/intl_fr.arb @@ -1,6 +1,6 @@ { "@@last_modified": "2025-12-09T07:30:00.000000", - "categoryCorrectGrammar": "Corriger la grammaire", + "categoryCorrectGrammar": "Corriger", "@categoryCorrectGrammar": { "type": "text", "placeholders_order": [], @@ -90,12 +90,6 @@ "placeholders_order": [], "placeholders": {} }, - "inputPlaceholder": "Aidez-moi à écrire", - "@inputPlaceholder": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "customPromptAction": "Aidez-moi à écrire", "@customPromptAction": { "type": "text", @@ -108,14 +102,26 @@ "placeholders_order": [], "placeholders": {} }, - "insertButton": "Insérer", - "@insertButton": { + "generatingResponse": "Génération de la réponse", + "@generatingResponse": { "type": "text", "placeholders_order": [], "placeholders": {} }, - "replaceButton": "Remplacer", - "@replaceButton": { + "insert": "Insérer", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "Remplacer", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "Assistant IA", + "@aiAssistant": { "type": "text", "placeholders_order": [], "placeholders": {} diff --git a/scribe/lib/scribe/ai/l10n/intl_messages.arb b/scribe/lib/scribe/ai/l10n/intl_messages.arb index b47b4bd07..422b23841 100644 --- a/scribe/lib/scribe/ai/l10n/intl_messages.arb +++ b/scribe/lib/scribe/ai/l10n/intl_messages.arb @@ -1,6 +1,6 @@ { - "@@last_modified": "2025-12-18T02:49:48.638213", - "categoryCorrectGrammar": "Correct grammar", + "@@last_modified": "2026-01-20T08:05:38.377619", + "categoryCorrectGrammar": "Correct", "@categoryCorrectGrammar": { "type": "text", "placeholders_order": [], @@ -90,12 +90,6 @@ "placeholders_order": [], "placeholders": {} }, - "inputPlaceholder": "Help me write", - "@inputPlaceholder": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "customPromptAction": "Help me write", "@customPromptAction": { "type": "text", @@ -108,12 +102,6 @@ "placeholders_order": [], "placeholders": {} }, - "insertButton": "Insert", - "@insertButton": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "aiAssistant": "AI assistant", "@aiAssistant": { "type": "text", diff --git a/scribe/lib/scribe/ai/l10n/intl_ru.arb b/scribe/lib/scribe/ai/l10n/intl_ru.arb index c67135054..bbf385559 100644 --- a/scribe/lib/scribe/ai/l10n/intl_ru.arb +++ b/scribe/lib/scribe/ai/l10n/intl_ru.arb @@ -1,6 +1,6 @@ { "@@last_modified": "2025-12-09T07:30:00.000000", - "categoryCorrectGrammar": "Исправить грамматику", + "categoryCorrectGrammar": "Исправить", "@categoryCorrectGrammar": { "type": "text", "placeholders_order": [], @@ -90,12 +90,6 @@ "placeholders_order": [], "placeholders": {} }, - "inputPlaceholder": "Помогите мне написать", - "@inputPlaceholder": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "customPromptAction": "Помогите мне написать", "@customPromptAction": { "type": "text", @@ -108,14 +102,26 @@ "placeholders_order": [], "placeholders": {} }, - "insertButton": "Вставить", - "@insertButton": { + "generatingResponse": "Генерация ответа", + "@generatingResponse": { "type": "text", "placeholders_order": [], "placeholders": {} }, - "replaceButton": "Заменить", - "@replaceButton": { + "insert": "Вставить", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "Заменить", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "Помощник ИИ", + "@aiAssistant": { "type": "text", "placeholders_order": [], "placeholders": {} diff --git a/scribe/lib/scribe/ai/l10n/intl_vi.arb b/scribe/lib/scribe/ai/l10n/intl_vi.arb index 04b7e9da1..f6615fa06 100644 --- a/scribe/lib/scribe/ai/l10n/intl_vi.arb +++ b/scribe/lib/scribe/ai/l10n/intl_vi.arb @@ -1,6 +1,6 @@ { "@@last_modified": "2025-12-09T07:30:00.000000", - "categoryCorrectGrammar": "Sửa ngữ pháp", + "categoryCorrectGrammar": "Sửa chữa", "@categoryCorrectGrammar": { "type": "text", "placeholders_order": [], @@ -90,12 +90,6 @@ "placeholders_order": [], "placeholders": {} }, - "inputPlaceholder": "Giúp tôi viết", - "@inputPlaceholder": { - "type": "text", - "placeholders_order": [], - "placeholders": {} - }, "customPromptAction": "Giúp tôi viết", "@customPromptAction": { "type": "text", @@ -108,14 +102,26 @@ "placeholders_order": [], "placeholders": {} }, - "insertButton": "Chèn", - "@insertButton": { + "generatingResponse": "Tạo phản hồi", + "@generatingResponse": { "type": "text", "placeholders_order": [], "placeholders": {} }, - "replaceButton": "Thay thế", - "@replaceButton": { + "insert": "Chèn", + "@insert": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "replace": "Thay thế", + "@replace": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "aiAssistant": "Trợ lý AI", + "@aiAssistant": { "type": "text", "placeholders_order": [], "placeholders": {} diff --git a/scribe/lib/scribe/ai/localizations/scribe_localizations.dart b/scribe/lib/scribe/ai/localizations/scribe_localizations.dart index d55686abe..5601503b0 100644 --- a/scribe/lib/scribe/ai/localizations/scribe_localizations.dart +++ b/scribe/lib/scribe/ai/localizations/scribe_localizations.dart @@ -23,7 +23,7 @@ class ScribeLocalizations { // Menu Categories String get categoryCorrectGrammar { return Intl.message( - 'Correct grammar', + 'Correct', name: 'categoryCorrectGrammar', ); } @@ -130,13 +130,6 @@ class ScribeLocalizations { } // Input Bar - String get inputPlaceholder { - return Intl.message( - 'Help me write', - name: 'inputPlaceholder', - ); - } - String get customPromptAction { return Intl.message( 'Help me write', @@ -152,13 +145,6 @@ class ScribeLocalizations { ); } - String get insertButton { - return Intl.message( - 'Insert', - name: 'insertButton', - ); - } - String get aiAssistant { return Intl.message( 'AI assistant', diff --git a/scribe/lib/scribe/ai/presentation/widgets/search/ai_scribe_bar.dart b/scribe/lib/scribe/ai/presentation/widgets/search/ai_scribe_bar.dart index b4f804ee5..f06082b44 100644 --- a/scribe/lib/scribe/ai/presentation/widgets/search/ai_scribe_bar.dart +++ b/scribe/lib/scribe/ai/presentation/widgets/search/ai_scribe_bar.dart @@ -80,7 +80,7 @@ class _AIScribeBarState extends State { child: TextField( controller: _controller, decoration: InputDecoration( - hintText: ScribeLocalizations.of(context).inputPlaceholder, + hintText: ScribeLocalizations.of(context).customPromptAction, hintStyle: AIScribeTextStyles.searchBarHint, border: InputBorder.none, contentPadding: const EdgeInsets.symmetric(vertical: 8),