Browse Source

bug: Incorrect copy for "Run" command when approving execution (#8179)

Bruno Bergher 3 months ago
parent
commit
07684c017d

+ 3 - 1
webview-ui/src/components/chat/ChatRow.tsx

@@ -232,7 +232,9 @@ export const ChatRowContent = ({
 					) : (
 						<TerminalSquare className="size-4" aria-label="Terminal icon" />
 					),
-					<span style={{ color: normalColor, fontWeight: "bold" }}>{t("chat:runCommand.title")}</span>,
+					<span style={{ color: normalColor, fontWeight: "bold" }}>
+						{t("chat:commandExecution.running")}
+					</span>,
 				]
 			case "use_mcp_server":
 				const mcpServerUse = safeJsonParse<ClineAskUseMcpServer>(message.text)

+ 1 - 1
webview-ui/src/i18n/locales/ca/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "Sortida de la comanda",
 	"commandExecution": {
-		"running": "Corrent",
 		"abort": "Avortar",
+		"running": "En execució",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "S'ha sortit amb l'estat {{exitCode}}",
 		"manageCommands": "Comandes aprovades automàticament",

+ 1 - 1
webview-ui/src/i18n/locales/de/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "Befehlsausgabe",
 	"commandExecution": {
-		"running": "Wird ausgeführt",
 		"abort": "Abbrechen",
+		"running": "Wird ausgeführt",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Beendet mit Status {{exitCode}}",
 		"manageCommands": "Automatisch genehmigte Befehle",

+ 2 - 2
webview-ui/src/i18n/locales/en/chat.json

@@ -69,7 +69,7 @@
 		}
 	},
 	"runCommand": {
-		"title": "Command",
+		"title": "Run",
 		"tooltip": "Execute this command"
 	},
 	"proceedWhileRunning": {
@@ -222,8 +222,8 @@
 	},
 	"commandOutput": "Command Output",
 	"commandExecution": {
-		"running": "Running",
 		"abort": "Abort",
+		"running": "Running",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Exited with status {{exitCode}}",
 		"manageCommands": "Auto-approved commands",

+ 1 - 1
webview-ui/src/i18n/locales/es/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "Salida del comando",
 	"commandExecution": {
-		"running": "Corriendo",
 		"abort": "Abortar",
+		"running": "Ejecutando",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Salió con el estado {{exitCode}}",
 		"manageCommands": "Comandos aprobados automáticamente",

+ 1 - 1
webview-ui/src/i18n/locales/fr/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "Sortie de la Commande",
 	"commandExecution": {
-		"running": "En cours",
 		"abort": "Abandonner",
+		"running": "En cours d'exécution",
 		"pid": "PID : {{pid}}",
 		"exitStatus": "Terminé avec le statut {{exitCode}}",
 		"manageCommands": "Commandes approuvées automatiquement",

+ 1 - 1
webview-ui/src/i18n/locales/hi/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "कमांड आउटपुट",
 	"commandExecution": {
-		"running": "चल रहा है",
 		"abort": "रद्द करें",
+		"running": "चल रहा है",
 		"pid": "पीआईडी: {{pid}}",
 		"exitStatus": "{{exitCode}} स्थिति के साथ बाहर निकल गया",
 		"manageCommands": "स्वतः-अनुमोदित कमांड",

+ 1 - 1
webview-ui/src/i18n/locales/id/chat.json

@@ -225,8 +225,8 @@
 	},
 	"commandOutput": "Keluaran Perintah",
 	"commandExecution": {
-		"running": "Sedang berjalan",
 		"abort": "Batalkan",
+		"running": "Menjalankan",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Keluar dengan status {{exitCode}}",
 		"manageCommands": "Perintah yang disetujui secara otomatis",

+ 1 - 1
webview-ui/src/i18n/locales/it/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "Output del Comando",
 	"commandExecution": {
-		"running": "In esecuzione",
 		"abort": "Interrompi",
+		"running": "In esecuzione",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Uscito con stato {{exitCode}}",
 		"manageCommands": "Comandi approvati automaticamente",

+ 1 - 1
webview-ui/src/i18n/locales/ja/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "コマンド出力",
 	"commandExecution": {
-		"running": "実行中",
 		"abort": "中止",
+		"running": "実行中",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "ステータス {{exitCode}} で終了しました",
 		"manageCommands": "自動承認されたコマンド",

+ 1 - 1
webview-ui/src/i18n/locales/ko/chat.json

@@ -203,8 +203,8 @@
 	},
 	"commandOutput": "명령 출력",
 	"commandExecution": {
-		"running": "실행 중",
 		"abort": "중단",
+		"running": "실행 중",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "상태 {{exitCode}}(으)로 종료됨",
 		"manageCommands": "자동 승인된 명령",

+ 1 - 0
webview-ui/src/i18n/locales/nl/chat.json

@@ -200,6 +200,7 @@
 	"commandExecution": {
 		"running": "Lopend",
 		"abort": "Afbreken",
+		"running": "Lopend",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Afgesloten met status {{exitCode}}",
 		"manageCommands": "Automatisch goedgekeurde commando's",

+ 1 - 0
webview-ui/src/i18n/locales/pl/chat.json

@@ -205,6 +205,7 @@
 	"commandExecution": {
 		"running": "Wykonywanie",
 		"abort": "Przerwij",
+		"running": "Uruchomiony",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Zakończono ze statusem {{exitCode}}",
 		"manageCommands": "Polecenia zatwierdzone automatycznie",

+ 1 - 0
webview-ui/src/i18n/locales/ru/chat.json

@@ -200,6 +200,7 @@
 	"commandExecution": {
 		"running": "Выполняется",
 		"abort": "Прервать",
+		"running": "Выполняется",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Завершено со статусом {{exitCode}}",
 		"manageCommands": "Управление разрешениями команд",

+ 1 - 0
webview-ui/src/i18n/locales/tr/chat.json

@@ -205,6 +205,7 @@
 	"commandExecution": {
 		"running": "Çalışıyor",
 		"abort": "İptal Et",
+		"running": "Çalışıyor",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "{{exitCode}} durumuyla çıkıldı",
 		"manageCommands": "Komut İzinlerini Yönet",

+ 1 - 0
webview-ui/src/i18n/locales/vi/chat.json

@@ -205,6 +205,7 @@
 	"commandExecution": {
 		"running": "Đang chạy",
 		"abort": "Hủy bỏ",
+		"running": "Đang chạy",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "Đã thoát với trạng thái {{exitCode}}",
 		"manageCommands": "Quản lý quyền lệnh",

+ 1 - 0
webview-ui/src/i18n/locales/zh-CN/chat.json

@@ -205,6 +205,7 @@
 	"commandExecution": {
 		"running": "正在运行",
 		"abort": "中止",
+		"running": "运行中",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "已退出,状态码 {{exitCode}}",
 		"manageCommands": "管理命令权限",

+ 1 - 0
webview-ui/src/i18n/locales/zh-TW/chat.json

@@ -224,6 +224,7 @@
 	"commandExecution": {
 		"running": "正在執行",
 		"abort": "中止",
+		"running": "執行中",
 		"pid": "PID: {{pid}}",
 		"exitStatus": "已結束,狀態碼 {{exitCode}}",
 		"manageCommands": "管理命令權限",