[Feature] Add Languages (#156), version 1.0.17.53

This commit is contained in:
tanjalibertatis 2021-05-30 21:51:17 +02:00
parent fae8fec3c3
commit 58d99bf793
5 changed files with 305 additions and 2 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.17.52")]
[assembly: AssemblyFileVersion("1.0.17.52")]
[assembly: AssemblyVersion("1.0.17.53")]
[assembly: AssemblyFileVersion("1.0.17.53")]

0
Resources/lang.zh-CN.Designer.cs generated Normal file
View file

297
Resources/lang.zh-CN.resx Normal file
View file

@ -0,0 +1,297 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About" xml:space="preserve">
<value>关于</value>
</data>
<data name="buttonOk" xml:space="preserve">
<value>好的</value>
</data>
<data name="Autostart" xml:space="preserve">
<value>自动开启</value>
</data>
<data name="Exit" xml:space="preserve">
<value>出口</value>
</data>
<data name="Folder" xml:space="preserve">
<value>文件夹</value>
</data>
<data name="Folder empty" xml:space="preserve">
<value>文件夹为空</value>
</data>
<data name="buttonDetails" xml:space="preserve">
<value>细节</value>
</data>
<data name="buttonSystemInfo" xml:space="preserve">
<value>系统信息</value>
</data>
<data name="Folder inaccessible" xml:space="preserve">
<value>文件夹无法访问</value>
</data>
<data name="Language" xml:space="preserve">
<value>语</value>
</data>
<data name="Log File" xml:space="preserve">
<value>日志文件</value>
</data>
<data name="Restart" xml:space="preserve">
<value>重新开始</value>
</data>
<data name="Could not register the hot key." xml:space="preserve">
<value>无法注册热键。</value>
</data>
<data name="buttonCancel" xml:space="preserve">
<value>取消</value>
</data>
<data name="General" xml:space="preserve">
<value>一般的</value>
</data>
<data name="Hotkey" xml:space="preserve">
<value>热键</value>
</data>
<data name="Launch on startup" xml:space="preserve">
<value>启动时启动</value>
</data>
<data name="Settings" xml:space="preserve">
<value>设置</value>
</data>
<data name="HelpFAQ" xml:space="preserve">
<value>帮助/常见问题</value>
</data>
<data name="SystemTrayMenu" xml:space="preserve">
<value>SystemTrayMenu</value>
</data>
<data name="TextFirstStart" xml:space="preserve">
<value>阅读常见问题,然后为 SystemTrayMenu 选择一个根目录。</value>
</data>
<data name="Warning" xml:space="preserve">
<value>警告</value>
</data>
<data name="Select Folder" xml:space="preserve">
<value>选择文件夹</value>
</data>
<data name="MessageRootFolderEmpty" xml:space="preserve">
<value>您的 SystemTrayMenu 根文件夹不存在或为空! 将一些文件、文件夹或快捷方式放入文件夹或更改根文件夹。</value>
</data>
<data name="MessageRootFolderNoAccess" xml:space="preserve">
<value>您无权访问 SystemTrayMenu 的根文件夹。 授予对该文件夹的访问权限或更改根文件夹。</value>
</data>
<data name="Expert" xml:space="preserve">
<value>专家</value>
</data>
<data name="Single click to start item" xml:space="preserve">
<value>单击以打开项目而不是双击</value>
</data>
<data name="Dark Mode always active" xml:space="preserve">
<value>暗模式始终处于活动状态</value>
</data>
<data name="Advanced" xml:space="preserve">
<value>先进的</value>
</data>
<data name="Appear at mouse location" xml:space="preserve">
<value>出现在鼠标位置</value>
</data>
<data name="Change folder" xml:space="preserve">
<value>更改文件夹</value>
</data>
<data name="Click" xml:space="preserve">
<value>点击</value>
</data>
<data name="Customize" xml:space="preserve">
<value>定制</value>
</data>
<data name="Dark Mode" xml:space="preserve">
<value>黑暗模式</value>
</data>
<data name="Default" xml:space="preserve">
<value>默认</value>
</data>
<data name="If the focus is lost and if the mouse is still on the menu" xml:space="preserve">
<value>如果失去焦点并且鼠标仍在菜单上</value>
</data>
<data name="Milliseconds until a menu opens when the mouse is on it" xml:space="preserve">
<value>当鼠标在菜单上时,直到菜单打开的毫秒数</value>
</data>
<data name="Milliseconds until the menu closes if in this case the mouse then leaves the menu" xml:space="preserve">
<value>如果在这种情况下鼠标离开菜单,直到菜单关闭的毫秒数</value>
</data>
<data name="Pixels maximum menu width" xml:space="preserve">
<value>像素最大菜单宽度</value>
</data>
<data name="Size and location" xml:space="preserve">
<value>大小和位置</value>
</data>
<data name="Stays open" xml:space="preserve">
<value>保持开放</value>
</data>
<data name="Time until a menu opens" xml:space="preserve">
<value>菜单打开前的时间</value>
</data>
<data name="If an item was clicked" xml:space="preserve">
<value>如果一个项目被点击</value>
</data>
<data name="Colors Light Mode and Dark Mode" xml:space="preserve">
<value>颜色亮模式和暗模式</value>
</data>
<data name="Default Dark Mode" xml:space="preserve">
<value>默认暗模式</value>
</data>
<data name="Default Light Mode" xml:space="preserve">
<value>默认灯光模式</value>
</data>
<data name="Background" xml:space="preserve">
<value>背景</value>
</data>
<data name="Opened folder" xml:space="preserve">
<value>打开的文件夹</value>
</data>
<data name="Border of opened folder" xml:space="preserve">
<value>打开的文件夹边框</value>
</data>
<data name="Search field" xml:space="preserve">
<value>搜索栏</value>
</data>
<data name="Selected item" xml:space="preserve">
<value>所选项目</value>
</data>
<data name="Border of selected item" xml:space="preserve">
<value>所选项目的边框</value>
</data>
<data name="Title" xml:space="preserve">
<value>标题</value>
</data>
<data name="To change a color paste a HTML Color Code or double click into a field." xml:space="preserve">
<value>要更改颜色,请粘贴 HTML 颜色代码或双击字段。</value>
</data>
<data name="Change to relative folder" xml:space="preserve">
<value>切换到相对文件夹</value>
</data>
<data name="Store config at the assembly location" xml:space="preserve">
<value>在组装位置存储配置</value>
</data>
<data name="USB" xml:space="preserve">
<value>USB</value>
</data>
<data name="Open the assembly location" xml:space="preserve">
<value>打开装配位置</value>
</data>
<data name="Pixels maximum menu height" xml:space="preserve">
<value>像素最大菜单高度</value>
</data>
</root>

View file

@ -151,6 +151,11 @@
<DependentUpon>lang.cs-CZ.resx</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Resources\lang.zh-CN.Designer.cs">
<DependentUpon>lang.zh-CN.resx</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Resources\lang.Designer.cs">
<AutoGen>True</AutoGen>

View file

@ -131,6 +131,7 @@ namespace SystemTrayMenu.UserInterface
new Language() { Name = "Italiano", Value = "it" },
new Language() { Name = "Nederlands", Value = "nl" },
new Language() { Name = "Português (Brasil)", Value = "pt-BR" },
new Language() { Name = "中文(简体)", Value = "zh-CN" },
// new Language() { Name = "русский", Value = "ru" },
};