fix: 修复 API 服务发现表格列头未跟随语言切换
- 10 个列头改用 {loc:Tr} 词表绑定,切换语言即时刷新
- 补齐 10 种语言的 8 个表头词条
- 无头 UI 测试覆盖表头属性与实际渲染文本的语言切换
- 同步多语言文档与功能清单词条数
大石头
authored at
2026-11-13 23:15:40
diff --git "a/Doc/\345\212\237\350\203\275\346\270\205\345\215\225.md" "b/Doc/\345\212\237\350\203\275\346\270\205\345\215\225.md"
index ccfff56..db5f73b 100644
--- "a/Doc/\345\212\237\350\203\275\346\270\205\345\215\225.md"
+++ "b/Doc/\345\212\237\350\203\275\346\270\205\345\215\225.md"
@@ -48,7 +48,7 @@
| APP-6 | 主题系统(浅色/深色/跟随系统 + 强调色跟随系统 + 高对比度 + 控制台深色) | 前端 | ✅ | ❌ | ✅ | 令牌已接入,强调色与高对比度由系统设置驱动(运行时覆盖令牌、取消即回落),控制系统标题栏跟随主题并支持运行中切换即时换色;控制台深色待随工具迁移 |
| APP-8 | 设置中心(主题/语言/快捷入口/浮动行为/目录/更新) | 前端 | ✅ | ✅ | ✅ | 主题/11 语言/目录/凭据/在线更新/快捷入口/外壳行为(托盘常驻、浮动置顶)均完成;12 项单测 |
| APP-9 | 单实例 + 托盘常驻 + 全局热键 | 后端 | ✅ | ✅ | ✅ | 命名管道单实例 + 托盘菜单 + 关窗收进托盘 + 左键单击(含双击)托盘图标唤回主窗口 + **全局热键唤醒(Windows 线程级 RegisterHotKey,不子类化窗口)**;热键可配置(默认 Ctrl+Alt+Shift+X),实机实测隐藏后按键可唤回;12 项单测 |
-| APP-10 | 多语言(Auto + 11 种,词表机制) | 前端 | ✅ | ✅ | ✅ | 已接入 NewLife.Core `Localization`:Auto 跟随系统为默认 + 11 种显式语言持久化;外壳、设置中心、命令面板、浮动窗口、工具卡片及全部工具窗口/工具页静态文案通过 `{loc:Tr}` 即时切换;997 条键 × 10 语言,全部语言均已完整翻译(仅 `Modbus TCP`、`ID` 等通用术语保留原文);状态/日志经 `LocalizedTextConverter` + `Translate` 按整串、前缀与动态模板翻译;平台能力、文件选择器、DBC 表头与工具选项一并覆盖;Auto 在模块加载时捕获系统语言并恢复,显式语言同步 CurrentUICulture;语言下拉按当前语言显示名称,设置页重新显示补刷动态文案;`FontUI`/`FontMono` 按语言切换 CJK 字体。17 项多语言单测 + 3 项字体单测 + 13 项 UI 测试 |
+| APP-10 | 多语言(Auto + 11 种,词表机制) | 前端 | ✅ | ✅ | ✅ | 已接入 NewLife.Core `Localization`:Auto 跟随系统为默认 + 11 种显式语言持久化;外壳、设置中心、命令面板、浮动窗口、工具卡片及全部工具窗口/工具页静态文案通过 `{loc:Tr}` 即时切换;1015 条键 × 10 语言,全部语言均已完整翻译(仅 `Modbus TCP`、`ID` 等通用术语保留原文);状态/日志经 `LocalizedTextConverter` + `Translate` 按整串、前缀与动态模板翻译;平台能力、文件选择器、DBC 表头、API 服务发现表头与工具选项一并覆盖;Auto 在模块加载时捕获系统语言并恢复,显式语言同步 CurrentUICulture;语言下拉按当前语言显示名称,设置页重新显示补刷动态文案;`FontUI`/`FontMono` 按语言切换 CJK 字体。17 项多语言单测 + 3 项字体单测 + 13 项 UI 测试 |
| APP-11 | 配置与日志目录、敏感信息加密存储 | 后端 | 🟡 | ✅ | ✅ | 跨平台目录 + 跪敏 + **Windows DPAPI 优先**、其它平台 AES-256 本机绑定(带算法前缀,旧数据兼容);Linux/macOS 的系统钥匙串(Secret Service/Keychain)未接;13 项单测 |
| APP-12 | 在线更新(检查/下载/提示,失败不阻断) | 后端 | ✅ | ✅ | ✅ | 清单解析 + 版本比较 + 下载到缓存 + exe/msi 直接运行安装包 + 打开下载页(14 项单测,含本地 HTTP 实测) |
diff --git "a/Doc/\345\244\232\350\257\255\350\250\200\346\234\254\345\234\260\345\214\226.md" "b/Doc/\345\244\232\350\257\255\350\250\200\346\234\254\345\234\260\345\214\226.md"
index bf38bd4..23f83b6 100644
--- "a/Doc/\345\244\232\350\257\255\350\250\200\346\234\254\345\234\260\345\214\226.md"
+++ "b/Doc/\345\244\232\350\257\255\350\250\200\346\234\254\345\234\260\345\214\226.md"
@@ -39,8 +39,8 @@
- **即时切换**:XAML 使用标记扩展 `{loc:Tr 'English source'}`,代码使用 `LocalizationService.T` / `Format`。`LocalizationSource` 在语言切换时广播通知,已打开的界面通过绑定即时刷新,无需重启或重建视图;设置页在后台错过切换时,重新显示会补刷全部动态文案。
- **语言名称**:下拉框使用 `LocalizationService.DisplayName` 按当前界面语言显示名称,避免简体界面里出现“繁體中文”等自称条目。
- **字体**:`FontUI` 与 `FontMono` 是动态资源,语言切换时按简中/繁中/日文/韩文选择对应 CJK 字体(YaHei UI / JhengHei UI / Yu Gothic UI / Malgun Gothic),避免繁体或韩文落到简体字形。
-- **当前覆盖**:外壳(导航、工作台、状态栏、标签)、设置中心、命令面板、浮动窗口、工具卡片、全部工具窗口/工具页静态文案、工具下拉选项与命令列表、平台能力清单、文件选择器、DBC 信号表头已接入;状态栏与日志绑定统一经过 `LocalizedTextConverter`,运行期消息由 `LocalizationService.Translate` 按整串、前缀或动态模板翻译。
-- **词表状态**:共 997 条键 × 10 个词表;`zh-Hans`、`zh-Hant`、`ko`、`de`、`es`、`fr`、`ja`、`pt`、`ru`、`ar` 均已完整翻译,仅保留 `Modbus TCP`、`ID` 等跨语言通用术语为原文。
+- **当前覆盖**:外壳(导航、工作台、状态栏、标签)、设置中心、命令面板、浮动窗口、工具卡片、全部工具窗口/工具页静态文案、工具下拉选项与命令列表、平台能力清单、文件选择器、DBC 信号表头、API 服务发现表头已接入;状态栏与日志绑定统一经过 `LocalizedTextConverter`,运行期消息由 `LocalizationService.Translate` 按整串、前缀或动态模板翻译。
+- **词表状态**:共 1015 条键 × 10 个词表;`zh-Hans`、`zh-Hant`、`ko`、`de`、`es`、`fr`、`ja`、`pt`、`ru`、`ar` 均已完整翻译,仅保留 `Modbus TCP`、`ID` 等跨语言通用术语为原文。
- **长尾**:异常信息与第三方库返回的文本仍可能保留原始语言;需要逐工具补齐时,把中文模板登记为动态模板或词表键即可。
## 4. 新增一条消息
diff --git a/Tests/XCoder.App.UiTests/ApiDiscoverViewTests.cs b/Tests/XCoder.App.UiTests/ApiDiscoverViewTests.cs
index cb5553d..f93b598 100644
--- a/Tests/XCoder.App.UiTests/ApiDiscoverViewTests.cs
+++ b/Tests/XCoder.App.UiTests/ApiDiscoverViewTests.cs
@@ -6,6 +6,7 @@ using Avalonia;
using Avalonia.Controls;
using Avalonia.VisualTree;
using NewLife.XCoder.Models;
+using NewLife.XCoder.Services;
using NewLife.XCoder.ViewModels;
using NewLife.XCoder.Views;
using Xunit;
@@ -16,62 +17,88 @@ namespace XCoder.App.UiTests;
public class ApiDiscoverViewTests
{
[Fact]
- [DisplayName("服务表列出原版全部字段,选中行展示原始应答")]
+ [DisplayName("服务表列出原版全部字段,表头跟随语言切换,选中行展示原始应答")]
public async Task ApiDiscover_ShowsAllColumns()
{
- await UiSession.Run(() =>
+ var old = LocalizationService.Preference;
+ try
{
- var window = new ApiDiscoverWindow();
-
- try
+ await UiSession.Run(() =>
{
- var vm = Assert.IsType<ApiDiscoverViewModel>(window.DataContext);
+ LocalizationService.Apply("en-US", false);
+
+ var window = new ApiDiscoverWindow();
- vm.Services.Add(new ApiServiceInfo
+ try
{
- Id = 8801,
- Name = "StarAgent",
- LocalIP = "192.168.1.5,10.0.1.5",
- MachineName = "debian",
- FileVersion = "3.7.2026.1109",
- OS = "Debian GNU/Linux 13",
- RemoteIP = "192.168.1.5",
- Port = 5500,
- Time = "2026-11-11 23:02:30",
- Code = "CODE-9527",
- Server = "http://star.example:8080",
- RawJson = "{\"Name\":\"StarAgent\"}",
- });
+ var vm = Assert.IsType<ApiDiscoverViewModel>(window.DataContext);
- window.Measure(new Size(1280, 820));
- window.Arrange(new Rect(0, 0, 1280, 820));
+ vm.Services.Add(new ApiServiceInfo
+ {
+ Id = 8801,
+ Name = "StarAgent",
+ LocalIP = "192.168.1.5,10.0.1.5",
+ MachineName = "debian",
+ FileVersion = "3.7.2026.1109",
+ OS = "Debian GNU/Linux 13",
+ RemoteIP = "192.168.1.5",
+ Port = 5500,
+ Time = "2026-11-11 23:02:30",
+ Code = "CODE-9527",
+ Server = "http://star.example:8080",
+ RawJson = "{\"Name\":\"StarAgent\"}",
+ });
- var grid = window.FindControl<TableView>("ServiceGrid");
- Assert.NotNull(grid);
- Assert.Equal(
- ["Id", "Name", "LocalIP", "MachineName", "FileVersion", "OS", "RemoteIP", "Time", "Code", "Address"],
- grid!.Columns.Select(e => e.Header + "").ToArray());
- Assert.Single(grid.ItemsSource!.Cast<Object>());
+ window.Measure(new Size(1280, 820));
+ window.Arrange(new Rect(0, 0, 1280, 820));
- vm.SelectedService = vm.Services[0];
+ var grid = window.FindControl<TableView>("ServiceGrid");
+ Assert.NotNull(grid);
+ Assert.Equal(
+ ["ID", "Name", "LocalIP", "MachineName", "FileVersion", "OS", "RemoteIP", "Time", "Code", "Address"],
+ grid!.Columns.Select(e => e.Header + "").ToArray());
- // 单元格要真的把字段渲染出来,而不是只有列头
- var texts = window.GetVisualDescendants().OfType<TextBlock>().Select(e => e.Text).Where(e => !String.IsNullOrEmpty(e)).ToArray();
- Assert.Contains("StarAgent", texts);
- Assert.Contains("debian", texts);
- Assert.Contains("3.7.2026.1109", texts);
- Assert.Contains("192.168.1.5,10.0.1.5", texts);
- Assert.Contains("2026/11/11 23:02:30", texts);
- Assert.Contains("http://star.example:8080", texts);
+ var headers = window.GetVisualDescendants().OfType<TextBlock>().Select(e => e.Text).Where(e => !String.IsNullOrEmpty(e)).ToArray();
+ Assert.Contains("MachineName", headers);
- var raw = window.FindControl<TextBox>("RawJsonBox");
- Assert.NotNull(raw);
- Assert.Contains("StarAgent", raw!.Text);
- }
- finally
- {
- window.Close();
- }
- });
+ // 表头是普通字符串属性,必须绑定到词表,切换语言后即时刷新
+ LocalizationService.Apply("zh-CN", false);
+ Assert.Equal(
+ ["标识", "名称", "本机 IP", "机器名", "文件版本", "操作系统", "远端 IP", "时间", "编码", "地址"],
+ grid.Columns.Select(e => e.Header + "").ToArray());
+
+ window.Measure(new Size(1280, 820));
+ window.Arrange(new Rect(0, 0, 1280, 820));
+ headers = window.GetVisualDescendants().OfType<TextBlock>().Select(e => e.Text).Where(e => !String.IsNullOrEmpty(e)).ToArray();
+ Assert.Contains("机器名", headers);
+ Assert.DoesNotContain("MachineName", headers);
+
+ Assert.Single(grid.ItemsSource!.Cast<Object>());
+
+ vm.SelectedService = vm.Services[0];
+
+ // 单元格要真的把字段渲染出来,而不是只有列头
+ var texts = window.GetVisualDescendants().OfType<TextBlock>().Select(e => e.Text).Where(e => !String.IsNullOrEmpty(e)).ToArray();
+ Assert.Contains("StarAgent", texts);
+ Assert.Contains("debian", texts);
+ Assert.Contains("3.7.2026.1109", texts);
+ Assert.Contains("192.168.1.5,10.0.1.5", texts);
+ Assert.Contains("2026/11/11 23:02:30", texts);
+ Assert.Contains("http://star.example:8080", texts);
+
+ var raw = window.FindControl<TextBox>("RawJsonBox");
+ Assert.NotNull(raw);
+ Assert.Contains("StarAgent", raw!.Text);
+ }
+ finally
+ {
+ window.Close();
+ }
+ });
+ }
+ finally
+ {
+ LocalizationService.Apply(old, false);
+ }
}
}
\ No newline at end of file
diff --git a/XCoder.App/Locales/ar.yml b/XCoder.App/Locales/ar.yml
index 2156915..4f68355 100644
--- a/XCoder.App/Locales/ar.yml
+++ b/XCoder.App/Locales/ar.yml
@@ -98,6 +98,7 @@
"Close Others": "إغلاق علامات التبويب الأخرى"
"Close to the Left": "إغلاق علامات التبويب على اليسار"
"Close to the Right": "إغلاق علامات التبويب على اليمين"
+"Code": "الرمز"
"Code generator": "مولد الشيفرة"
"Collapse sidebar (Ctrl+B)": "طي الشريط الجانبي (Ctrl+B)"
"Coming soon": "قريبًا"
@@ -207,6 +208,7 @@
"File": "ملف"
"File Encoding": "ترميز الملف"
"File encoding conversion": "تحويل ترميز الملف"
+"FileVersion": "إصدار الملف"
"Floating Window": "نافذة عائمة"
"Floating windows always on top": "النوافذ العائمة دائمًا في المقدمة"
"Focus mode": "وضع التركيز"
@@ -291,12 +293,14 @@
"Local": "محلي"
"Local Credentials": "بيانات اعتماد محلية"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "محاكاة محلية لتابع Modbus TCP (حلقة محلية فقط) لاختبار تكامل المضيف؛ 1000 سجل."
+"LocalIP": "IP المحلي"
"Log": "السجل"
"Log options": "خيارات السجل"
"Logs: {0}": "السجلات: {0}"
"Longitude": "خط الطول"
"Longitude, e.g. 116.404": "خط الطول، مثل 116.404"
"Machine info": "معلومات الجهاز"
+"MachineName": "اسم الجهاز"
"Map APIs": "واجهات الخرائط"
"Map type": "نوع الخريطة"
"Mask": "القناع"
@@ -331,6 +335,7 @@
"MQTT Client": "عميل MQTT"
"Multi-line mode": "وضع متعدد الأسطر"
"Multicast address": "عنوان متعدد البث"
+"Name": "الاسم"
"Namespace": "مساحة الأسماء"
"Navigation": "التنقل"
"Network": "الشبكة"
@@ -354,6 +359,7 @@
"Not open": "غير مفتوح"
"Not run yet": "لم يُنفذ بعد"
"Not started": "لم يبدأ"
+"OS": "نظام التشغيل"
"One coordinate per line: longitude,latitude; output keeps the same order.": "إحداثية واحدة في كل سطر: خط الطول،خط العرض؛ يحافظ الإخراج على الترتيب نفسه."
"One entry point for developer tools": "نقطة دخول واحدة لأدوات المطورين"
"One text per line": "نص واحد في كل سطر"
@@ -437,6 +443,7 @@
"Remote": "بعيد"
"Remote frame": "إطار بعيد"
"Remote terminal and command execution with key or password auth.": "طرفية بعيدة وتنفيذ أوامر بمصادقة مفتاح أو كلمة مرور."
+"RemoteIP": "IP البعيد"
"Replace": "استبدال"
"Replace with": "الاستبدال بـ"
"Replacement (supports $1)": "الاستبدال (يدعم $1)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "السمة واللغة وأدلة الإعدادات/السجلات وسلوك النافذة."
"This PC": "هذا الكمبيوتر"
"Threads": "الخيوط"
+"Time": "الوقت"
"Times": "المرات"
"Timestamp": "الطابع الزمني"
"Tip: drag and drop images into the preview area on the right": "تلميح: اسحب الصور وأفلتها في منطقة المعاينة على اليمين"
diff --git a/XCoder.App/Locales/de.yml b/XCoder.App/Locales/de.yml
index 6c2364f..ef23f7f 100644
--- a/XCoder.App/Locales/de.yml
+++ b/XCoder.App/Locales/de.yml
@@ -98,6 +98,7 @@
"Close Others": "Andere Tabs schließen"
"Close to the Left": "Tabs links schließen"
"Close to the Right": "Tabs rechts schließen"
+"Code": "Code"
"Code generator": "Codegenerator"
"Collapse sidebar (Ctrl+B)": "Seitenleiste einklappen (Strg+B)"
"Coming soon": "Demnächst verfügbar"
@@ -207,6 +208,7 @@
"File": "Datei"
"File Encoding": "Dateikodierung"
"File encoding conversion": "Dateikodierungskonvertierung"
+"FileVersion": "Dateiversion"
"Floating Window": "Schwebendes Fenster"
"Floating windows always on top": "Schwebende Fenster immer im Vordergrund"
"Focus mode": "Fokusmodus"
@@ -291,12 +293,14 @@
"Local": "Lokal"
"Local Credentials": "Lokale Anmeldedaten"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "Lokale Modbus-TCP-Slave-Simulation (nur Loopback) für Host-Integrationstests; 1000 Register."
+"LocalIP": "Lokale IP"
"Log": "Protokoll"
"Log options": "Protokolloptionen"
"Logs: {0}": "Protokolle: {0}"
"Longitude": "Längengrad"
"Longitude, e.g. 116.404": "Längengrad, z. B. 116.404"
"Machine info": "Maschineninfo"
+"MachineName": "Rechnername"
"Map APIs": "Karten-APIs"
"Map type": "Kartentyp"
"Mask": "Maske"
@@ -331,6 +335,7 @@
"MQTT Client": "MQTT-Client"
"Multi-line mode": "Mehrzeilenmodus"
"Multicast address": "Multicast-Adresse"
+"Name": "Name"
"Namespace": "Namespace"
"Navigation": "Navigation"
"Network": "Netzwerk"
@@ -354,6 +359,7 @@
"Not open": "Nicht geöffnet"
"Not run yet": "Noch nicht ausgeführt"
"Not started": "Nicht gestartet"
+"OS": "OS"
"One coordinate per line: longitude,latitude; output keeps the same order.": "Eine Koordinate pro Zeile: Längengrad,Breitengrad; die Ausgabe behält dieselbe Reihenfolge bei."
"One entry point for developer tools": "Ein Einstiegspunkt für Entwicklerwerkzeuge"
"One text per line": "Ein Text pro Zeile"
@@ -437,6 +443,7 @@
"Remote": "Remote"
"Remote frame": "Remote-Frame"
"Remote terminal and command execution with key or password auth.": "Remote-Terminal und Befehlsausführung mit Schlüssel- oder Kennwortauthentifizierung."
+"RemoteIP": "Remote-IP"
"Replace": "Ersetzen"
"Replace with": "Ersetzen durch"
"Replacement (supports $1)": "Ersetzung (unterstützt $1)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "Design, Sprache, Konfigurations-/Protokollverzeichnisse und Fensterverhalten."
"This PC": "Dieser PC"
"Threads": "Threads"
+"Time": "Zeit"
"Times": "Anzahl"
"Timestamp": "Zeitstempel"
"Tip: drag and drop images into the preview area on the right": "Tipp: Bilder in den Vorschaubereich rechts ziehen und ablegen"
diff --git a/XCoder.App/Locales/es.yml b/XCoder.App/Locales/es.yml
index b87950e..d4a2252 100644
--- a/XCoder.App/Locales/es.yml
+++ b/XCoder.App/Locales/es.yml
@@ -98,6 +98,7 @@
"Close Others": "Cerrar las demás"
"Close to the Left": "Cerrar las de la izquierda"
"Close to the Right": "Cerrar las de la derecha"
+"Code": "Código"
"Code generator": "Generador de código"
"Collapse sidebar (Ctrl+B)": "Contraer barra lateral (Ctrl+B)"
"Coming soon": "Próximamente"
@@ -207,6 +208,7 @@
"File": "Archivo"
"File Encoding": "Codificación de archivos"
"File encoding conversion": "Conversión de codificación de archivos"
+"FileVersion": "Versión de archivo"
"Floating Window": "Ventana flotante"
"Floating windows always on top": "Ventanas flotantes siempre visibles"
"Focus mode": "Modo de concentración"
@@ -291,12 +293,14 @@
"Local": "Local"
"Local Credentials": "Credenciales locales"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "Simulación local de esclavo Modbus TCP (solo bucle) para pruebas de integración del host; 1000 registros."
+"LocalIP": "IP local"
"Log": "Registro"
"Log options": "Opciones de registro"
"Logs: {0}": "Registros: {0}"
"Longitude": "Longitud"
"Longitude, e.g. 116.404": "Longitud, p. ej. 116.404"
"Machine info": "Información de la máquina"
+"MachineName": "Nombre de equipo"
"Map APIs": "API de mapas"
"Map type": "Tipo de mapa"
"Mask": "Máscara"
@@ -331,6 +335,7 @@
"MQTT Client": "Cliente MQTT"
"Multi-line mode": "Modo multilínea"
"Multicast address": "Dirección de multidifusión"
+"Name": "Nombre"
"Namespace": "Espacio de nombres"
"Navigation": "Navegación"
"Network": "Red"
@@ -354,6 +359,7 @@
"Not open": "No abierto"
"Not run yet": "Aún no ejecutado"
"Not started": "No iniciado"
+"OS": "SO"
"One coordinate per line: longitude,latitude; output keeps the same order.": "Una coordenada por línea: longitud,latitud; la salida mantiene el mismo orden."
"One entry point for developer tools": "Un único punto de entrada para herramientas de desarrollo"
"One text per line": "Un texto por línea"
@@ -437,6 +443,7 @@
"Remote": "Remoto"
"Remote frame": "Trama remota"
"Remote terminal and command execution with key or password auth.": "Terminal remota y ejecución de comandos con autenticación por clave o contraseña."
+"RemoteIP": "IP remota"
"Replace": "Reemplazar"
"Replace with": "Reemplazar por"
"Replacement (supports $1)": "Reemplazo (admite $1)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "Tema, idioma, directorios de configuración/registros y comportamiento de la ventana."
"This PC": "Este equipo"
"Threads": "Subprocesos"
+"Time": "Hora"
"Times": "Veces"
"Timestamp": "Marca de tiempo"
"Tip: drag and drop images into the preview area on the right": "Sugerencia: arrastre imágenes al área de vista previa de la derecha"
diff --git a/XCoder.App/Locales/fr.yml b/XCoder.App/Locales/fr.yml
index c751c9e..c5d0deb 100644
--- a/XCoder.App/Locales/fr.yml
+++ b/XCoder.App/Locales/fr.yml
@@ -98,6 +98,7 @@
"Close Others": "Fermer les autres onglets"
"Close to the Left": "Fermer les onglets à gauche"
"Close to the Right": "Fermer les onglets à droite"
+"Code": "Code"
"Code generator": "Générateur de code"
"Collapse sidebar (Ctrl+B)": "Réduire la barre latérale (Ctrl+B)"
"Coming soon": "Bientôt disponible"
@@ -207,6 +208,7 @@
"File": "Fichier"
"File Encoding": "Encodage de fichier"
"File encoding conversion": "Conversion d'encodage de fichier"
+"FileVersion": "Version du fichier"
"Floating Window": "Fenêtre flottante"
"Floating windows always on top": "Fenêtres flottantes toujours au premier plan"
"Focus mode": "Mode concentration"
@@ -291,12 +293,14 @@
"Local": "Local"
"Local Credentials": "Identifiants locaux"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "Simulation locale d'esclave Modbus TCP (boucle locale uniquement) pour les tests d'intégration de l'hôte ; 1000 registres."
+"LocalIP": "IP locale"
"Log": "Journal"
"Log options": "Options de journal"
"Logs: {0}": "Journaux : {0}"
"Longitude": "Longitude"
"Longitude, e.g. 116.404": "Longitude, par ex. 116.404"
"Machine info": "Infos machine"
+"MachineName": "Nom de la machine"
"Map APIs": "API de cartes"
"Map type": "Type de carte"
"Mask": "Masque"
@@ -331,6 +335,7 @@
"MQTT Client": "Client MQTT"
"Multi-line mode": "Mode multiligne"
"Multicast address": "Adresse multicast"
+"Name": "Nom"
"Namespace": "Espace de noms"
"Navigation": "Navigation"
"Network": "Réseau"
@@ -354,6 +359,7 @@
"Not open": "Non ouvert"
"Not run yet": "Pas encore exécuté"
"Not started": "Non démarré"
+"OS": "OS"
"One coordinate per line: longitude,latitude; output keeps the same order.": "Une coordonnée par ligne : longitude,latitude ; la sortie conserve le même ordre."
"One entry point for developer tools": "Un point d'entrée unique pour les outils de développement"
"One text per line": "Un texte par ligne"
@@ -437,6 +443,7 @@
"Remote": "Distant"
"Remote frame": "Trame distante"
"Remote terminal and command execution with key or password auth.": "Terminal distant et exécution de commandes avec authentification par clé ou mot de passe."
+"RemoteIP": "IP distante"
"Replace": "Remplacer"
"Replace with": "Remplacer par"
"Replacement (supports $1)": "Remplacement (prend en charge $1)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "Thème, langue, répertoires de configuration/journaux et comportement de la fenêtre."
"This PC": "Cet ordinateur"
"Threads": "Threads"
+"Time": "Heure"
"Times": "Nombre"
"Timestamp": "Horodatage"
"Tip: drag and drop images into the preview area on the right": "Astuce : glissez-déposez des images dans la zone d'aperçu à droite"
diff --git a/XCoder.App/Locales/ja.yml b/XCoder.App/Locales/ja.yml
index 4dc6e74..ecef60c 100644
--- a/XCoder.App/Locales/ja.yml
+++ b/XCoder.App/Locales/ja.yml
@@ -98,6 +98,7 @@
"Close Others": "他のタブを閉じる"
"Close to the Left": "左のタブを閉じる"
"Close to the Right": "右のタブを閉じる"
+"Code": "コード"
"Code generator": "コードジェネレーター"
"Collapse sidebar (Ctrl+B)": "サイドバーを折りたたむ (Ctrl+B)"
"Coming soon": "近日公開"
@@ -207,6 +208,7 @@
"File": "ファイル"
"File Encoding": "ファイルエンコーディング"
"File encoding conversion": "ファイル文字コード変換"
+"FileVersion": "ファイルバージョン"
"Floating Window": "フローティングウィンドウ"
"Floating windows always on top": "フローティングウィンドウを常に最前面"
"Focus mode": "集中モード"
@@ -291,12 +293,14 @@
"Local": "ローカル"
"Local Credentials": "ローカル認証情報"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "ホスト統合テスト用のローカル Modbus TCP スレーブシミュレーション(ループバックのみ)。1000 レジスタ。"
+"LocalIP": "ローカル IP"
"Log": "ログ"
"Log options": "ログオプション"
"Logs: {0}": "ログ: {0}"
"Longitude": "経度"
"Longitude, e.g. 116.404": "経度(例: 116.404)"
"Machine info": "マシン情報"
+"MachineName": "マシン名"
"Map APIs": "地図 API"
"Map type": "地図タイプ"
"Mask": "マスク"
@@ -331,6 +335,7 @@
"MQTT Client": "MQTT クライアント"
"Multi-line mode": "複数行モード"
"Multicast address": "マルチキャストアドレス"
+"Name": "名前"
"Namespace": "名前空間"
"Navigation": "ナビゲーション"
"Network": "ネットワーク"
@@ -354,6 +359,7 @@
"Not open": "未オープン"
"Not run yet": "未実行"
"Not started": "未開始"
+"OS": "OS"
"One coordinate per line: longitude,latitude; output keeps the same order.": "1 行に 1 座標: 経度,緯度。出力は同じ順序を保ちます。"
"One entry point for developer tools": "開発者ツールの一元化された入り口"
"One text per line": "1 行に 1 テキスト"
@@ -437,6 +443,7 @@
"Remote": "リモート"
"Remote frame": "リモートフレーム"
"Remote terminal and command execution with key or password auth.": "キーまたはパスワード認証によるリモートターミナルとコマンド実行。"
+"RemoteIP": "リモート IP"
"Replace": "置換"
"Replace with": "置換後"
"Replacement (supports $1)": "置換文字列($1 に対応)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "テーマ、言語、設定/ログディレクトリ、ウィンドウの動作。"
"This PC": "この PC"
"Threads": "スレッド"
+"Time": "時刻"
"Times": "回数"
"Timestamp": "タイムスタンプ"
"Tip: drag and drop images into the preview area on the right": "ヒント: 画像を右側のプレビューエリアにドラッグ&ドロップしてください"
diff --git a/XCoder.App/Locales/ko.yml b/XCoder.App/Locales/ko.yml
index 5931609..6f44200 100644
--- a/XCoder.App/Locales/ko.yml
+++ b/XCoder.App/Locales/ko.yml
@@ -99,6 +99,7 @@
"Close Others": "다른 탭 닫기"
"Close to the Left": "왼쪽 탭 닫기"
"Close to the Right": "오른쪽 탭 닫기"
+"Code": "코드"
"Code generator": "코드 생성기"
"Collapse sidebar (Ctrl+B)": "사이드바 접기 (Ctrl+B)"
"Coming soon": "준비 중"
@@ -208,6 +209,7 @@
"File": "파일"
"File Encoding": "파일 인코딩"
"File encoding conversion": "파일 인코딩 변환"
+"FileVersion": "파일 버전"
"Floating Window": "플로팅 창"
"Floating windows always on top": "플로팅 창 항상 위에"
"Focus mode": "집중 모드"
@@ -292,12 +294,14 @@
"Local": "로컬"
"Local Credentials": "로컬 자격 증명"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "로컬 Modbus TCP 슬레이브 시뮬레이션 (루프백 전용), 상위 시스템 연동 테스트용, 레지스터 1000개."
+"LocalIP": "로컬 IP"
"Log": "로그"
"Log options": "로그 옵션"
"Logs: {0}": "로그: {0}"
"Longitude": "경도"
"Longitude, e.g. 116.404": "경도, 예: 116.404"
"Machine info": "시스템 정보"
+"MachineName": "컴퓨터 이름"
"Map APIs": "지도 API"
"Map type": "지도 유형"
"Mask": "마스크"
@@ -332,6 +336,7 @@
"MQTT Client": "MQTT 클라이언트"
"Multi-line mode": "여러 줄 모드"
"Multicast address": "멀티캐스트 주소"
+"Name": "이름"
"Namespace": "네임스페이스"
"Navigation": "탐색"
"Network": "네트워크"
@@ -355,6 +360,7 @@
"Not open": "열리지 않음"
"Not run yet": "아직 실행되지 않음"
"Not started": "시작되지 않음"
+"OS": "OS"
"One coordinate per line: longitude,latitude; output keeps the same order.": "한 줄에 하나의 좌표: 경도,위도, 출력은 같은 순서를 유지합니다."
"One entry point for developer tools": "개발자 도구를 위한 단일 진입점"
"One text per line": "한 줄에 하나의 텍스트"
@@ -438,6 +444,7 @@
"Remote": "원격"
"Remote frame": "원격 프레임"
"Remote terminal and command execution with key or password auth.": "키 또는 비밀번호 인증을 사용한 원격 터미널 및 명령 실행"
+"RemoteIP": "원격 IP"
"Replace": "바꾸기"
"Replace with": "다음으로 바꾸기"
"Replacement (supports $1)": "바꿀 내용 ($1 지원)"
@@ -565,6 +572,7 @@
"Theme, language, config/log directories and shell behavior.": "테마, 언어, 설정/로그 디렉터리 및 셸 동작"
"This PC": "내 PC"
"Threads": "스레드"
+"Time": "시간"
"Times": "횟수"
"Timestamp": "타임스탬프"
"Tip: drag and drop images into the preview area on the right": "팁: 오른쪽 미리 보기 영역으로 이미지를 끌어다 놓을 수 있습니다"
diff --git a/XCoder.App/Locales/pt.yml b/XCoder.App/Locales/pt.yml
index 775952b..cbb252e 100644
--- a/XCoder.App/Locales/pt.yml
+++ b/XCoder.App/Locales/pt.yml
@@ -98,6 +98,7 @@
"Close Others": "Fechar as outras"
"Close to the Left": "Fechar as abas à esquerda"
"Close to the Right": "Fechar as abas à direita"
+"Code": "Código"
"Code generator": "Gerador de código"
"Collapse sidebar (Ctrl+B)": "Recolher barra lateral (Ctrl+B)"
"Coming soon": "Em breve"
@@ -207,6 +208,7 @@
"File": "Arquivo"
"File Encoding": "Codificação de arquivo"
"File encoding conversion": "Conversão de codificação de arquivo"
+"FileVersion": "Versão do arquivo"
"Floating Window": "Janela flutuante"
"Floating windows always on top": "Janelas flutuantes sempre visíveis"
"Focus mode": "Modo de foco"
@@ -291,12 +293,14 @@
"Local": "Local"
"Local Credentials": "Credenciais locais"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "Simulação local de escravo Modbus TCP (somente loopback) para testes de integração do host; 1000 registros."
+"LocalIP": "IP local"
"Log": "Registro"
"Log options": "Opções de log"
"Logs: {0}": "Registros: {0}"
"Longitude": "Longitude"
"Longitude, e.g. 116.404": "Longitude, por exemplo, 116.404"
"Machine info": "Informações da máquina"
+"MachineName": "Nome do computador"
"Map APIs": "APIs de mapas"
"Map type": "Tipo de mapa"
"Mask": "Máscara"
@@ -331,6 +335,7 @@
"MQTT Client": "Cliente MQTT"
"Multi-line mode": "Modo multilinha"
"Multicast address": "Endereço multicast"
+"Name": "Nome"
"Namespace": "Namespace"
"Navigation": "Navegação"
"Network": "Rede"
@@ -354,6 +359,7 @@
"Not open": "Não aberto"
"Not run yet": "Ainda não executado"
"Not started": "Não iniciado"
+"OS": "SO"
"One coordinate per line: longitude,latitude; output keeps the same order.": "Uma coordenada por linha: longitude,latitude; a saída mantém a mesma ordem."
"One entry point for developer tools": "Um único ponto de entrada para ferramentas de desenvolvedor"
"One text per line": "Um texto por linha"
@@ -437,6 +443,7 @@
"Remote": "Remoto"
"Remote frame": "Quadro remoto"
"Remote terminal and command execution with key or password auth.": "Terminal remoto e execução de comandos com autenticação por chave ou senha."
+"RemoteIP": "IP remoto"
"Replace": "Substituir"
"Replace with": "Substituir por"
"Replacement (supports $1)": "Substituição (aceita $1)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "Tema, idioma, diretórios de configuração/logs e comportamento da janela."
"This PC": "Este PC"
"Threads": "Threads"
+"Time": "Hora"
"Times": "Vezes"
"Timestamp": "Carimbo de data/hora"
"Tip: drag and drop images into the preview area on the right": "Dica: arraste e solte imagens na área de pré-visualização à direita"
diff --git a/XCoder.App/Locales/ru.yml b/XCoder.App/Locales/ru.yml
index a65d31f..dcca19c 100644
--- a/XCoder.App/Locales/ru.yml
+++ b/XCoder.App/Locales/ru.yml
@@ -98,6 +98,7 @@
"Close Others": "Закрыть остальные вкладки"
"Close to the Left": "Закрыть вкладки слева"
"Close to the Right": "Закрыть вкладки справа"
+"Code": "Код"
"Code generator": "Генератор кода"
"Collapse sidebar (Ctrl+B)": "Свернуть боковую панель (Ctrl+B)"
"Coming soon": "Скоро"
@@ -207,6 +208,7 @@
"File": "Файл"
"File Encoding": "Кодировка файла"
"File encoding conversion": "Преобразование кодировки файла"
+"FileVersion": "Версия файла"
"Floating Window": "Плавающее окно"
"Floating windows always on top": "Плавающие окна поверх всех окон"
"Focus mode": "Режим фокусировки"
@@ -291,12 +293,14 @@
"Local": "Локально"
"Local Credentials": "Локальные учётные данные"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "Локальная симуляция ведомого Modbus TCP (только петля) для интеграционного тестирования хоста; 1000 регистров."
+"LocalIP": "Локальный IP"
"Log": "Журнал"
"Log options": "Параметры журнала"
"Logs: {0}": "Журналы: {0}"
"Longitude": "Долгота"
"Longitude, e.g. 116.404": "Долгота, например 116.404"
"Machine info": "Сведения о машине"
+"MachineName": "Имя машины"
"Map APIs": "API карт"
"Map type": "Тип карты"
"Mask": "Маска"
@@ -331,6 +335,7 @@
"MQTT Client": "Клиент MQTT"
"Multi-line mode": "Многострочный режим"
"Multicast address": "Адрес multicast"
+"Name": "Имя"
"Namespace": "Пространство имён"
"Navigation": "Навигация"
"Network": "Сеть"
@@ -354,6 +359,7 @@
"Not open": "Не открыто"
"Not run yet": "Ещё не выполнено"
"Not started": "Не запущено"
+"OS": "ОС"
"One coordinate per line: longitude,latitude; output keeps the same order.": "Одна координата на строку: долгота,широта; вывод сохраняет тот же порядок."
"One entry point for developer tools": "Единая точка входа для инструментов разработчика"
"One text per line": "Один текст на строку"
@@ -437,6 +443,7 @@
"Remote": "Удалённо"
"Remote frame": "Удалённый кадр"
"Remote terminal and command execution with key or password auth.": "Удалённый терминал и выполнение команд с аутентификацией по ключу или паролю."
+"RemoteIP": "Удалённый IP"
"Replace": "Заменить"
"Replace with": "Заменить на"
"Replacement (supports $1)": "Замена (поддерживает $1)"
@@ -564,6 +571,7 @@
"Theme, language, config/log directories and shell behavior.": "Тема, язык, каталоги конфигурации и журналов, поведение окна."
"This PC": "Этот компьютер"
"Threads": "Потоки"
+"Time": "Время"
"Times": "Количество"
"Timestamp": "Метка времени"
"Tip: drag and drop images into the preview area on the right": "Совет: перетащите изображения в область предпросмотра справа"
diff --git a/XCoder.App/Locales/zh-Hans.yml b/XCoder.App/Locales/zh-Hans.yml
index 09f6104..8b9b9cd 100644
--- a/XCoder.App/Locales/zh-Hans.yml
+++ b/XCoder.App/Locales/zh-Hans.yml
@@ -99,6 +99,7 @@
"Close Others": "关闭其他"
"Close to the Left": "关闭左侧"
"Close to the Right": "关闭右侧"
+"Code": "编码"
"Code generator": "代码生成器"
"Collapse sidebar (Ctrl+B)": "收起侧栏(Ctrl+B)"
"Coming soon": "待迁移"
@@ -208,6 +209,7 @@
"File": "文件"
"File Encoding": "文件编码"
"File encoding conversion": "文件编码转换"
+"FileVersion": "文件版本"
"Floating Window": "浮动窗口"
"Floating windows always on top": "浮动窗口默认置顶"
"Focus mode": "专注模式"
@@ -292,12 +294,14 @@
"Local": "本地"
"Local Credentials": "本地凭据"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "本机 Modbus TCP 从站模拟(仅回环地址),用于上位机联调;寄存器表 1000 个。"
+"LocalIP": "本机 IP"
"Log": "日志"
"Log options": "日志选项"
"Logs: {0}": "日志:{0}"
"Longitude": "经度"
"Longitude, e.g. 116.404": "经度,如 116.404"
"Machine info": "机器信息"
+"MachineName": "机器名"
"Map APIs": "地图接口"
"Map type": "地图类型"
"Mask": "掩码"
@@ -332,6 +336,7 @@
"MQTT Client": "MQTT 客户端"
"Multi-line mode": "多行模式"
"Multicast address": "组播地址"
+"Name": "名称"
"Namespace": "命名空间"
"Navigation": "导航"
"Network": "网络"
@@ -355,6 +360,7 @@
"Not open": "未打开"
"Not run yet": "尚未执行"
"Not started": "未启动"
+"OS": "操作系统"
"One coordinate per line: longitude,latitude; output keeps the same order.": "每行一个坐标:经度,纬度;输出按相同顺序。"
"One entry point for developer tools": "开发者工具,一个入口就够了"
"One text per line": "一行一个待计算文本"
@@ -438,6 +444,7 @@
"Remote": "远程"
"Remote frame": "远程帧"
"Remote terminal and command execution with key or password auth.": "远程终端与命令执行,密钥/密码认证"
+"RemoteIP": "远端 IP"
"Replace": "替换"
"Replace with": "替换为"
"Replacement (supports $1)": "替换内容(支持 $1)"
@@ -565,6 +572,7 @@
"Theme, language, config/log directories and shell behavior.": "主题、语言、配置与日志目录、外壳行为"
"This PC": "此电脑"
"Threads": "线程"
+"Time": "时间"
"Times": "次数"
"Timestamp": "时间戳"
"Tip: drag and drop images into the preview area on the right": "提示:支持拖放图片到右侧预览区"
diff --git a/XCoder.App/Locales/zh-Hant.yml b/XCoder.App/Locales/zh-Hant.yml
index 6df4e3b..5606a70 100644
--- a/XCoder.App/Locales/zh-Hant.yml
+++ b/XCoder.App/Locales/zh-Hant.yml
@@ -99,6 +99,7 @@
"Close Others": "關閉其他"
"Close to the Left": "關閉左側"
"Close to the Right": "關閉右側"
+"Code": "編碼"
"Code generator": "程式碼生成器"
"Collapse sidebar (Ctrl+B)": "收起側欄(Ctrl+B)"
"Coming soon": "待遷移"
@@ -208,6 +209,7 @@
"File": "檔案"
"File Encoding": "檔案編碼"
"File encoding conversion": "檔案編碼轉換"
+"FileVersion": "檔案版本"
"Floating Window": "浮動視窗"
"Floating windows always on top": "浮動視窗預設置頂"
"Focus mode": "專注模式"
@@ -292,12 +294,14 @@
"Local": "本地"
"Local Credentials": "本地憑據"
"Local Modbus TCP slave simulation (loopback only) for host integration testing; 1000 registers.": "本機 Modbus TCP 從站模擬(僅迴環地址),用於上位機聯調;暫存器表 1000 個。"
+"LocalIP": "本機 IP"
"Log": "日誌"
"Log options": "日誌選項"
"Logs: {0}": "日誌:{0}"
"Longitude": "經度"
"Longitude, e.g. 116.404": "經度,如 116.404"
"Machine info": "機器資訊"
+"MachineName": "機器名稱"
"Map APIs": "地圖介面"
"Map type": "地圖型別"
"Mask": "掩碼"
@@ -332,6 +336,7 @@
"MQTT Client": "MQTT 客戶端"
"Multi-line mode": "多行模式"
"Multicast address": "組播地址"
+"Name": "名稱"
"Namespace": "名稱空間"
"Navigation": "導航"
"Network": "網路"
@@ -355,6 +360,7 @@
"Not open": "未開啟"
"Not run yet": "尚未執行"
"Not started": "未啟動"
+"OS": "作業系統"
"One coordinate per line: longitude,latitude; output keeps the same order.": "每行一個座標:經度,緯度;輸出按相同順序。"
"One entry point for developer tools": "開發者工具,一個入口就夠了"
"One text per line": "一行一個待計算文字"
@@ -438,6 +444,7 @@
"Remote": "遠端"
"Remote frame": "遠端幀"
"Remote terminal and command execution with key or password auth.": "遠端終端與命令執行,金鑰/密碼認證"
+"RemoteIP": "遠端 IP"
"Replace": "替換"
"Replace with": "替換為"
"Replacement (supports $1)": "替換內容(支援 $1)"
@@ -565,6 +572,7 @@
"Theme, language, config/log directories and shell behavior.": "主題、語言、配置與日誌目錄、外殼行為"
"This PC": "此電腦"
"Threads": "執行緒"
+"Time": "時間"
"Times": "次數"
"Timestamp": "時間戳"
"Tip: drag and drop images into the preview area on the right": "提示:支援拖放圖片到右側預覽區"
diff --git a/XCoder.App/Views/ApiDiscoverWindow.axaml b/XCoder.App/Views/ApiDiscoverWindow.axaml
index 9a72717..e2bdcd2 100644
--- a/XCoder.App/Views/ApiDiscoverWindow.axaml
+++ b/XCoder.App/Views/ApiDiscoverWindow.axaml
@@ -99,22 +99,22 @@
SelectedItem="{Binding SelectedService, Mode=TwoWay}"
CanUserResizeColumns="True" Background="Transparent" BorderThickness="0">
<TableView.Columns>
- <TableViewColumn Header="Id" Binding="{Binding Id}" Width="80" />
- <TableViewColumn Header="Name" Width="110">
+ <TableViewColumn Header="{loc:Tr 'ID'}" Binding="{Binding Id}" Width="80" />
+ <TableViewColumn Header="{loc:Tr 'Name'}" Width="110">
<TableViewColumn.CellTemplate>
<DataTemplate x:DataType="models:ApiServiceInfo">
<TextBlock Text="{Binding Name}" Foreground="{DynamicResource Accent}" FontWeight="SemiBold" TextTrimming="CharacterEllipsis" />
</DataTemplate>
</TableViewColumn.CellTemplate>
</TableViewColumn>
- <TableViewColumn Header="LocalIP" Binding="{Binding LocalIP}" Width="170" />
- <TableViewColumn Header="MachineName" Binding="{Binding MachineName}" Width="110" />
- <TableViewColumn Header="FileVersion" Binding="{Binding FileVersion}" Width="100" />
- <TableViewColumn Header="OS" Binding="{Binding OS}" Width="190" />
- <TableViewColumn Header="RemoteIP" Binding="{Binding RemoteIP}" Width="100" />
- <TableViewColumn Header="Time" Binding="{Binding TimeText}" Width="140" />
- <TableViewColumn Header="Code" Binding="{Binding Code}" Width="90" />
- <TableViewColumn Header="Address" Binding="{Binding ServerAddress}" Width="*" MinWidth="160" />
+ <TableViewColumn Header="{loc:Tr 'LocalIP'}" Binding="{Binding LocalIP}" Width="170" />
+ <TableViewColumn Header="{loc:Tr 'MachineName'}" Binding="{Binding MachineName}" Width="110" />
+ <TableViewColumn Header="{loc:Tr 'FileVersion'}" Binding="{Binding FileVersion}" Width="100" />
+ <TableViewColumn Header="{loc:Tr 'OS'}" Binding="{Binding OS}" Width="190" />
+ <TableViewColumn Header="{loc:Tr 'RemoteIP'}" Binding="{Binding RemoteIP}" Width="100" />
+ <TableViewColumn Header="{loc:Tr 'Time'}" Binding="{Binding TimeText}" Width="140" />
+ <TableViewColumn Header="{loc:Tr 'Code'}" Binding="{Binding Code}" Width="90" />
+ <TableViewColumn Header="{loc:Tr 'Address'}" Binding="{Binding ServerAddress}" Width="*" MinWidth="160" />
</TableView.Columns>
</TableView>
<StackPanel IsVisible="{Binding IsEmpty}" IsHitTestVisible="False" Spacing="4"