Skip to content

Commit 7f0931d

Browse files
committed
fix(i18n): correct server translation in Chinese
- Change "服务器" to "服务" in Chinese localization - Remove redundant comments in Kotlin classes - Clean up error handling in RequestDetailPanel
1 parent a62384b commit 7f0931d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

core/src/main/kotlin/cc/unitmesh/devti/mcp/ui/eval/RequestDetailPanel.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import kotlin.collections.component1
1616
import kotlin.collections.component2
1717
import kotlin.collections.forEach
1818

19-
/**
20-
* Panel for displaying request details from MCP messages
21-
*/
2219
class RequestDetailPanel : JPanel(BorderLayout()) {
2320
private val headerPanel = JPanel(BorderLayout()).apply {
2421
border = JBUI.Borders.empty(10, 10, 5, 10)
@@ -52,10 +49,7 @@ class RequestDetailPanel : JPanel(BorderLayout()) {
5249
val parsedJson = json.parseToJsonElement(paramJson).jsonObject
5350
parameterDisplay.displayParameters(parsedJson)
5451
} catch (e: Exception) {
55-
// If parsing fails, fall back to displaying raw JSON
56-
val errorPanel = JPanel(BorderLayout())
5752
parameterDisplay.displayParameters(null)
58-
5953
add(JTextArea(paramJson).apply {
6054
lineWrap = true
6155
wrapStyleWord = true
@@ -68,9 +62,6 @@ class RequestDetailPanel : JPanel(BorderLayout()) {
6862
}
6963
}
7064

71-
/**
72-
* A reusable component for displaying key-value parameters from JSON
73-
*/
7465
class ParameterDisplay : JPanel(BorderLayout()) {
7566
private val contentPanel = JPanel().apply {
7667
layout = BoxLayout(this, BoxLayout.Y_AXIS)

core/src/main/resources/messages/AutoDevBundle_zh.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ mcp.chat.result.execute.all=Execute All Tools
238238
mcp.chat.result.tab.messages=Message Log
239239
# MCP Tool Detail Dialog
240240
mcp.tool.detail.dialog.title=MCP 工具详情 - {0}
241-
mcp.tool.detail.dialog.from.server=来自服务器: {0}
241+
mcp.tool.detail.dialog.from.server=来自服务: {0}
242242
mcp.tool.detail.dialog.no.description=暂无描述
243243
mcp.tool.detail.dialog.parameters=参数
244244
mcp.tool.detail.dialog.verify=验证(自动生成)

0 commit comments

Comments
 (0)