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

This commit is contained in:
tanjalibertatis 2021-04-24 23:03:24 +02:00
parent a175d6a718
commit afa153fd9b
6 changed files with 218 additions and 4 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.19")]
[assembly: AssemblyFileVersion("1.0.17.19")]
[assembly: AssemblyVersion("1.0.17.20")]
[assembly: AssemblyFileVersion("1.0.17.20")]

View file

@ -181,10 +181,10 @@
<value>Lese das FAQ und wähle anschließend ein root Verzeichniss für die SystemTrayMenu.</value>
</data>
<data name="Warning" xml:space="preserve">
<value>Warning</value>
<value>Warnung</value>
</data>
<data name="Select Folder" xml:space="preserve">
<value>Select Folder</value>
<value>Ordner auswählen</value>
</data>
<data name="MessageRootFolderEmpty" xml:space="preserve">
<value>Dein Hauptordner für die SystemTrayMenu existiert nicht oder ist leer! Pack ein paar Dateien, Ordner oder Verknüpfungen in den Hauptordner oder ändere den Hauptordner.</value>

0
Resources/lang.it-IT.Designer.cs generated Normal file
View file

204
Resources/lang.it-IT.resx Normal file
View file

@ -0,0 +1,204 @@
<?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>Di</value>
</data>
<data name="buttonOk" xml:space="preserve">
<value>OK</value>
</data>
<data name="Autostart" xml:space="preserve">
<value>Avvio automatico</value>
</data>
<data name="Exit" xml:space="preserve">
<value>Uscita</value>
</data>
<data name="Folder" xml:space="preserve">
<value>Cartella</value>
</data>
<data name="Folder empty" xml:space="preserve">
<value>Cartella vuota</value>
</data>
<data name="buttonDetails" xml:space="preserve">
<value>Dettagli</value>
</data>
<data name="buttonSystemInfo" xml:space="preserve">
<value>Informazioni di sistema</value>
</data>
<data name="Folder inaccessible" xml:space="preserve">
<value>Cartella inaccessibile</value>
</data>
<data name="Language" xml:space="preserve">
<value>Linguaggio</value>
</data>
<data name="Log File" xml:space="preserve">
<value>File di registro</value>
</data>
<data name="Restart" xml:space="preserve">
<value>Ricomincia</value>
</data>
<data name="Could not register the hot key." xml:space="preserve">
<value>Impossibile registrare il tasto di scelta rapida.</value>
</data>
<data name="buttonCancel" xml:space="preserve">
<value>Annulla</value>
</data>
<data name="General" xml:space="preserve">
<value>Generale</value>
</data>
<data name="Hotkey" xml:space="preserve">
<value>Hotkey</value>
</data>
<data name="Launch on startup" xml:space="preserve">
<value>Lancia all'avvio</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Impostazioni</value>
</data>
<data name="HelpFAQ" xml:space="preserve">
<value>Aiuto / FAQ</value>
</data>
<data name="SystemTrayMenu" xml:space="preserve">
<value>SystemTrayMenu</value>
</data>
<data name="TextFirstStart" xml:space="preserve">
<value>Leggere le domande frequenti e quindi scegliere una directory principale per SystemTrayMenu.</value>
</data>
<data name="Warning" xml:space="preserve">
<value>Avvertimento</value>
</data>
<data name="Select Folder" xml:space="preserve">
<value>Seleziona cartella</value>
</data>
<data name="MessageRootFolderEmpty" xml:space="preserve">
<value>La tua cartella principale per SystemTrayMenu non esiste o è vuota! Metti alcuni file, cartelle o collegamenti nella cartella o cambia la cartella principale.</value>
</data>
<data name="MessageRootFolderNoAccess" xml:space="preserve">
<value>Non hai accesso alla cartella principale per SystemTrayMenu. Concedi l'accesso alla cartella o cambia la cartella principale.</value>
</data>
<data name="Expert" xml:space="preserve">
<value>Esperto</value>
</data>
<data name="Single click to start item" xml:space="preserve">
<value>Fare clic una volta per aprire un elemento</value>
</data>
<data name="Dark Mode always active" xml:space="preserve">
<value>Modalità oscura sempre attiva</value>
</data>
</root>

View file

@ -131,6 +131,11 @@
<DependentUpon>lang.es-ES.resx</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Resources\lang.it-IT.Designer.cs">
<DependentUpon>lang.it-IT.resx</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Resources\lang.Designer.cs">
<AutoGen>True</AutoGen>
@ -160,6 +165,10 @@
<EmbeddedResource Update="Resources\lang.es-ES.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>lang.es-ES.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\lang.it-IT.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>lang.it-IT.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\lang.resx">
<Generator>ResXFileCodeGenerator</Generator>

View file

@ -68,6 +68,7 @@ namespace SystemTrayMenu.UserInterface
new Language() { Name = "Deutsch", Value = "de" },
new Language() { Name = "Français", Value = "fr" },
new Language() { Name = "Español", Value = "es" },
new Language() { Name = "Italiano", Value = "it" },
};
comboBoxLanguage.DataSource = dataSource;
comboBoxLanguage.DisplayMember = "Name";