Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion GS.Server/GSServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,13 @@ private static bool ProcessArguments(IReadOnlyList<string> args)
case @"/italian":
Shared.Settings.Language = "it-IT";
break;
case @"/zh":
case @"/chinese":
Shared.Settings.Language = "zh-CN";
break;
default:
MessageBox.Show(
@"Unknown argument: '" + arg.ToLower() + @"' Valid: /unprofile, /register, /unregister, /embedding, /pec, /english, /french, /german, /italian",
@"Unknown argument: '" + arg.ToLower() + @"' Valid: /unprofile, /register, /unregister, /embedding, /pec, /english, /french, /german, /italian, /chinese",
@"GSServer", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
break;
}
Expand Down
11 changes: 10 additions & 1 deletion GS.Shared/GS.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
<None Update="LanguageFiles\GSChart_it-IT.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageFiles\GSChart_zh-CN.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageFiles\GSServer_de-DE.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand All @@ -105,6 +108,9 @@
<None Update="LanguageFiles\GSServer_it-IT.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageFiles\GSServer_zh-CN.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageFiles\GSUtil_de-DE.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand All @@ -121,5 +127,8 @@
<None Update="LanguageFiles\GSUtil_it-IT.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageFiles\GSUtil_zh-CN.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
</Project>
50 changes: 50 additions & 0 deletions GS.Shared/LanguageFiles/GSChart_zh-CN.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!--/* Copyright(C) 2019-2026 Rob Morgan (robert.morgan.e@gmail.com)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see<https://www.gnu.org/licenses/> .
*/-->
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">

<!--Dialog -->
<system:String x:Key="diaAccept">确认</system:String>
<system:String x:Key="diaCancel">取消</system:String>
<system:String x:Key="diaOk">确定</system:String>
<system:String x:Key="diaStart">开始</system:String>
<system:String x:Key="diaStop">停止</system:String>

<!--Converters -->
<system:String x:Key="cvtInvNumber">数字无效</system:String>
<system:String x:Key="cvtColorToBrush">ColorToBrushConverter 只支持从 Color 和 String 转换</system:String>
<system:String x:Key="cvtEnumErr1">类型必须是枚举</system:String>
<system:String x:Key="cvtEnumErr2">必须指定 EnumType</system:String>
<system:String x:Key="cvtInvIP">IP 无效</system:String>
<system:String x:Key="cvtRequired">必填</system:String>

<!--ChartViewer -->
<system:String x:Key="chtNumber">#</system:String>
<system:String x:Key="chtStart">开始</system:String>
<system:String x:Key="chtEnd">结束</system:String>
<system:String x:Key="chtLength">长度</system:String>
<system:String x:Key="chtType">类型</system:String>
<system:String x:Key="chtOpen">打开文件</system:String>
<system:String x:Key="chtQuality">质量</system:String>
<system:String x:Key="chtViewLog">查看日志</system:String>
<system:String x:Key="chtZoom">缩放:</system:String>
<system:String x:Key="chtNoValidRecords">未找到有效记录</system:String>

<system:String x:Key="optLanguage">语言</system:String>
</ResourceDictionary>

Loading
Loading