Skip to content

Commit 680c783

Browse files
committed
feat: add internationalized visual feedback for command timeout
1 parent c6d798a commit 680c783

File tree

19 files changed

+20
-1
lines changed

19 files changed

+20
-1
lines changed

src/core/tools/executeCommandTool.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { ExitCodeDetails, RooTerminalCallbacks, RooTerminalProcess } from "../..
1616
import { TerminalRegistry } from "../../integrations/terminal/TerminalRegistry"
1717
import { Terminal } from "../../integrations/terminal/Terminal"
1818
import { Package } from "../../shared/package"
19+
import { t } from "../../i18n"
1920

2021
class ShellIntegrationError extends Error {}
2122

@@ -251,7 +252,7 @@ export async function executeCommand(
251252
clineProvider?.postMessageToWebview({ type: "commandExecutionStatus", text: JSON.stringify(status) })
252253

253254
// Add visual feedback for timeout
254-
await cline.say("text", `Command execution timed out after ${commandExecutionTimeoutSeconds} seconds`)
255+
await cline.say("text", t("common:command_timeout", { seconds: commandExecutionTimeoutSeconds }))
255256

256257
cline.terminalProcess = undefined
257258

src/i18n/locales/ca/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"url_page_not_found": "No s'ha trobat la pàgina. Comprova si la URL és correcta.",
7272
"url_fetch_failed": "Error en obtenir el contingut de la URL: {{error}}",
7373
"url_fetch_error_with_url": "Error en obtenir contingut per {{url}}: {{error}}",
74+
"command_timeout": "L'execució de la comanda ha superat el temps d'espera de {{seconds}} segons",
7475
"share_task_failed": "Ha fallat compartir la tasca. Si us plau, torna-ho a provar.",
7576
"share_no_active_task": "No hi ha cap tasca activa per compartir",
7677
"share_auth_required": "Es requereix autenticació. Si us plau, inicia sessió per compartir tasques.",

src/i18n/locales/de/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "Die Seite wurde nicht gefunden. Bitte prüfe, ob die URL korrekt ist.",
6868
"url_fetch_failed": "Fehler beim Abrufen des URL-Inhalts: {{error}}",
6969
"url_fetch_error_with_url": "Fehler beim Abrufen des Inhalts für {{url}}: {{error}}",
70+
"command_timeout": "Zeitüberschreitung bei der Befehlsausführung nach {{seconds}} Sekunden",
7071
"share_task_failed": "Teilen der Aufgabe fehlgeschlagen. Bitte versuche es erneut.",
7172
"share_no_active_task": "Keine aktive Aufgabe zum Teilen",
7273
"share_auth_required": "Authentifizierung erforderlich. Bitte melde dich an, um Aufgaben zu teilen.",

src/i18n/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "The page was not found. Please check if the URL is correct.",
6868
"url_fetch_failed": "Failed to fetch URL content: {{error}}",
6969
"url_fetch_error_with_url": "Error fetching content for {{url}}: {{error}}",
70+
"command_timeout": "Command execution timed out after {{seconds}} seconds",
7071
"share_task_failed": "Failed to share task. Please try again.",
7172
"share_no_active_task": "No active task to share",
7273
"share_auth_required": "Authentication required. Please sign in to share tasks.",

src/i18n/locales/es/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "La página no fue encontrada. Por favor verifica si la URL es correcta.",
6868
"url_fetch_failed": "Error al obtener el contenido de la URL: {{error}}",
6969
"url_fetch_error_with_url": "Error al obtener contenido para {{url}}: {{error}}",
70+
"command_timeout": "La ejecución del comando superó el tiempo de espera de {{seconds}} segundos",
7071
"share_task_failed": "Error al compartir la tarea. Por favor, inténtalo de nuevo.",
7172
"share_no_active_task": "No hay tarea activa para compartir",
7273
"share_auth_required": "Se requiere autenticación. Por favor, inicia sesión para compartir tareas.",

src/i18n/locales/fr/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "La page n'a pas été trouvée. Vérifie si l'URL est correcte.",
6868
"url_fetch_failed": "Échec de récupération du contenu de l'URL : {{error}}",
6969
"url_fetch_error_with_url": "Erreur lors de la récupération du contenu pour {{url}} : {{error}}",
70+
"command_timeout": "L'exécution de la commande a expiré après {{seconds}} secondes",
7071
"share_task_failed": "Échec du partage de la tâche. Veuillez réessayer.",
7172
"share_no_active_task": "Aucune tâche active à partager",
7273
"share_auth_required": "Authentification requise. Veuillez vous connecter pour partager des tâches.",

src/i18n/locales/hi/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "पेज नहीं मिला। कृपया जांचें कि URL सही है।",
6868
"url_fetch_failed": "URL सामग्री प्राप्त करने में त्रुटि: {{error}}",
6969
"url_fetch_error_with_url": "{{url}} के लिए सामग्री प्राप्त करने में त्रुटि: {{error}}",
70+
"command_timeout": "कमांड निष्पादन {{seconds}} सेकंड के बाद समय समाप्त हो गया",
7071
"share_task_failed": "कार्य साझा करने में विफल। कृपया पुनः प्रयास करें।",
7172
"share_no_active_task": "साझा करने के लिए कोई सक्रिय कार्य नहीं",
7273
"share_auth_required": "प्रमाणीकरण आवश्यक है। कार्य साझा करने के लिए कृपया साइन इन करें।",

src/i18n/locales/id/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "Halaman tidak ditemukan. Silakan periksa apakah URL sudah benar.",
6868
"url_fetch_failed": "Gagal mengambil konten URL: {{error}}",
6969
"url_fetch_error_with_url": "Error mengambil konten untuk {{url}}: {{error}}",
70+
"command_timeout": "Eksekusi perintah timed out setelah {{seconds}} detik",
7071
"share_task_failed": "Gagal membagikan tugas. Silakan coba lagi.",
7172
"share_no_active_task": "Tidak ada tugas aktif untuk dibagikan",
7273
"share_auth_required": "Autentikasi diperlukan. Silakan masuk untuk berbagi tugas.",

src/i18n/locales/it/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "La pagina non è stata trovata. Verifica se l'URL è corretto.",
6868
"url_fetch_failed": "Errore nel recupero del contenuto URL: {{error}}",
6969
"url_fetch_error_with_url": "Errore nel recupero del contenuto per {{url}}: {{error}}",
70+
"command_timeout": "Esecuzione del comando scaduta dopo {{seconds}} secondi",
7071
"share_task_failed": "Condivisione dell'attività fallita. Riprova.",
7172
"share_no_active_task": "Nessuna attività attiva da condividere",
7273
"share_auth_required": "Autenticazione richiesta. Accedi per condividere le attività.",

src/i18n/locales/ja/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"url_page_not_found": "ページが見つかりませんでした。URLが正しいか確認してください。",
6868
"url_fetch_failed": "URLコンテンツの取得に失敗しました:{{error}}",
6969
"url_fetch_error_with_url": "{{url}} のコンテンツ取得エラー:{{error}}",
70+
"command_timeout": "コマンドの実行が{{seconds}}秒後にタイムアウトしました",
7071
"share_task_failed": "タスクの共有に失敗しました",
7172
"share_no_active_task": "共有するアクティブなタスクがありません",
7273
"share_auth_required": "認証が必要です。タスクを共有するにはサインインしてください。",

0 commit comments

Comments
 (0)