From 30d6b0e2232005f5d6e2cbf5086a4257ed2b7a0f Mon Sep 17 00:00:00 2001
From: brownrw8
Date: Mon, 27 Jan 2025 13:24:59 -1000
Subject: [PATCH] translations fix
---
webview-ui/src/components/chat/ChatRow.tsx | 23 ++++++++++++++++++-
webview-ui/src/locales/en/translation.json | 20 ++++++++--------
webview-ui/src/locales/ja/translation.json | 2 +-
webview-ui/src/locales/zh-cn/translation.json | 2 +-
webview-ui/src/locales/zh-tw/translation.json | 2 +-
5 files changed, 35 insertions(+), 14 deletions(-)
diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx
index e5d912d6ad..979bf3b274 100644
--- a/webview-ui/src/components/chat/ChatRow.tsx
+++ b/webview-ui/src/components/chat/ChatRow.tsx
@@ -3,6 +3,7 @@ import deepEqual from "fast-deep-equal"
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from "react"
import { useEvent, useSize } from "react-use"
import { useTranslation } from "react-i18next"
+import { Trans } from "react-i18next"
import styled from "styled-components"
import {
ClineApiReqInfo,
@@ -786,7 +787,21 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi
<>
- {t("troubleshootingGuide")}
+
+ PowerShell
+
+ ),
+ }}
+ />
>
)}
@@ -1032,6 +1047,12 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi
{t("response")}
+
>
)
diff --git a/webview-ui/src/locales/en/translation.json b/webview-ui/src/locales/en/translation.json
index 0d3e428fb8..0578d51c48 100644
--- a/webview-ui/src/locales/en/translation.json
+++ b/webview-ui/src/locales/en/translation.json
@@ -87,8 +87,8 @@
},
"chatRow": {
"error": "Error",
- "mistakeLimitReached": "Mistake limit reached",
- "autoApprovalMaxReqReached": "Auto approval max request reached",
+ "mistakeLimitReached": "Cline is having trouble...",
+ "autoApprovalMaxReqReached": "Maximum Requests Reached",
"command": {
"ask": "Cline wants to execute this command:",
"say": "Cline executed this command:"
@@ -99,13 +99,13 @@
"tool": "tool",
"resource": "resource"
},
- "completionResult": "Completion result",
- "apiReqCancelled": "API request cancelled",
- "apiStreamingFailed": "API streaming failed",
- "apiRequest": "API request",
- "apiRequestFailed": "API request failed",
- "apiRequestInProgress": "API request in progress",
- "followup": "Follow-up",
+ "completionResult": "Task Completed",
+ "apiReqCancelled": "API Request Cancelled",
+ "apiStreamingFailed": "API Streaming Failed",
+ "apiRequest": "API Request",
+ "apiRequestFailed": "API Request Failed",
+ "apiRequestInProgress": "API Request...",
+ "followup": "Cline has a question:",
"tool": {
"editedExistingFile": {
"ask": "Cline wants to edit this file:",
@@ -129,7 +129,7 @@
"planModeResponse": "Plan Mode Response",
"seeNewChanges": "See new changes",
"commandRequiresApproval": "The model has determined this command requires explicit approval.",
- "troubleshootingGuide": "troubleshooting guide",
+ "troubleshootingGuide": "It seems like you're having Windows PowerShell issues, please see this troubleshooting guide",
"clineWantsToViewTopLevelFiles": "Cline wants to view the top level files in this directory:",
"clineViewedTopLevelFiles": "Cline viewed the top level files in this directory:",
"clineWantsToRecursivelyViewFiles": "Cline wants to recursively view all files in this directory:",
diff --git a/webview-ui/src/locales/ja/translation.json b/webview-ui/src/locales/ja/translation.json
index f3211dba10..353979f572 100644
--- a/webview-ui/src/locales/ja/translation.json
+++ b/webview-ui/src/locales/ja/translation.json
@@ -129,7 +129,7 @@
"planModeResponse": "計画モード応答",
"seeNewChanges": "新しい変更を見る",
"commandRequiresApproval": "このコマンドは明示的な承認が必要です。",
- "troubleshootingGuide": "トラブルシューティングガイド",
+ "troubleshootingGuide": "Windows PowerShellの問題が発生しているようです。このトラブルシューティングガイドをご覧ください。",
"clineWantsToViewTopLevelFiles": "クラインがこのディレクトリのトップレベルファイルを表示したいと考えています:",
"clineViewedTopLevelFiles": "クラインがこのディレクトリのトップレベルファイルを表示しました:",
"clineWantsToRecursivelyViewFiles": "クラインがこのディレクトリのすべてのファイルを再帰的に表示したいと考えています:",
diff --git a/webview-ui/src/locales/zh-cn/translation.json b/webview-ui/src/locales/zh-cn/translation.json
index ddbacceef8..5faed68afa 100644
--- a/webview-ui/src/locales/zh-cn/translation.json
+++ b/webview-ui/src/locales/zh-cn/translation.json
@@ -124,7 +124,7 @@
"planModeResponse": "计划模式响应",
"seeNewChanges": "查看新更改",
"commandRequiresApproval": "模型已确定此命令需要明确批准。",
- "troubleshootingGuide": "故障排除指南",
+ "troubleshootingGuide": "看起来你遇到了 Windows PowerShell 问题,请参阅此 故障排除指南",
"clineWantsToViewTopLevelFiles": "Cline 想查看此目录中的顶级文件:",
"clineViewedTopLevelFiles": "Cline 查看了此目录中的顶级文件:",
"clineWantsToRecursivelyViewFiles": "Cline 想递归查看此目录中的所有文件:",
diff --git a/webview-ui/src/locales/zh-tw/translation.json b/webview-ui/src/locales/zh-tw/translation.json
index a79716116d..1245b4d343 100644
--- a/webview-ui/src/locales/zh-tw/translation.json
+++ b/webview-ui/src/locales/zh-tw/translation.json
@@ -124,7 +124,7 @@
"planModeResponse": "計劃模式響應",
"seeNewChanges": "查看新變更",
"commandRequiresApproval": "模型已確定此命令需要明確批准。",
- "troubleshootingGuide": "故障排除指南",
+ "troubleshootingGuide": "看起來您遇到了 Windows PowerShell 問題,請參閱此 故障排除指南",
"clineWantsToViewTopLevelFiles": "Cline 想要查看此目錄中的頂層文件:",
"clineViewedTopLevelFiles": "Cline 查看了此目錄中的頂層文件:",
"clineWantsToRecursivelyViewFiles": "Cline 想要遞歸查看此目錄中的所有文件:",