Skip to content

A Swiss Army knife for developers.

Functionality to GZip compress/decompress strings (#214)

Johan Erikssone3cda9cf3c63
diff --git a/src/dev/impl/DevToys/DevToys.csproj b/src/dev/impl/DevToys/DevToys.csproj
index 955ac91c7..3792a8f1f 100644
--- a/src/dev/impl/DevToys/DevToys.csproj
+++ b/src/dev/impl/DevToys/DevToys.csproj
@@ -46,6 +46,8 @@
<Compile Include="ViewModels\Tools\AllTools\AllToolsToolProvider.cs" />
<Compile Include="ViewModels\Tools\AllTools\AllToolsToolViewModel.cs" />
<Compile Include="ViewModels\Tools\Converters\ConvertersGroupToolProvider.cs" />
+ <Compile Include="ViewModels\Tools\EncodersDecoders\GZipEncoderDecoder\GZipEncoderDecoderToolProvider.cs" />
+ <Compile Include="ViewModels\Tools\EncodersDecoders\GZipEncoderDecoder\GZipEncoderDecoderToolViewModel.cs" />
<Compile Include="ViewModels\Tools\Converters\JsonYaml\DecimalJsonConverter.cs" />
<Compile Include="ViewModels\Tools\Converters\JsonYaml\DecimalYamlTypeResolver.cs" />
<Compile Include="ViewModels\Tools\EncodersDecoders\EncodersDecodersGroupToolProvider.cs" />
@@ -69,6 +71,9 @@
<Compile Include="Views\Tools\AllTools\AllToolsToolPage.xaml.cs">
<DependentUpon>AllToolsToolPage.xaml</DependentUpon>
</Compile>
+ <Compile Include="Views\Tools\EncodersDecoders\GZipEncoderDecoder\GZipEncoderDecoderToolPage.xaml.cs">
+ <DependentUpon>GZipEncoderDecoderToolPage.xaml</DependentUpon>
+ </Compile>
<Compile Include="Views\Tools\Graphic\ColorBlindnessSimulator\ColorBlindnessSimulatorToolPage.xaml.cs">
<DependentUpon>ColorBlindnessSimulatorToolPage.xaml</DependentUpon>
</Compile>
@@ -463,28 +468,6 @@
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
- <PRIResource Include="Strings\ja-JP\UrlEncoderDecoder.resw" />
- <PRIResource Include="Strings\ja-JP\ToolGroups.resw" />
- <PRIResource Include="Strings\ja-JP\TextDiff.resw" />
- <PRIResource Include="Strings\ja-JP\StringUtilities.resw" />
- <PRIResource Include="Strings\ja-JP\Settings.resw" />
- <PRIResource Include="Strings\ja-JP\SearchResult.resw" />
- <PRIResource Include="Strings\ja-JP\RegEx.resw" />
- <PRIResource Include="Strings\ja-JP\PngJpgCompressor.resw" />
- <PRIResource Include="Strings\ja-JP\NumberBaseConverter.resw" />
- <PRIResource Include="Strings\ja-JP\MarkdownPreview.resw" />
- <PRIResource Include="Strings\ja-JP\MainPage.resw" />
- <PRIResource Include="Strings\ja-JP\LoremIpsumGenerator.resw" />
- <PRIResource Include="Strings\ja-JP\JwtDecoderEncoder.resw" />
- <PRIResource Include="Strings\ja-JP\JsonYaml.resw" />
- <PRIResource Include="Strings\ja-JP\JsonFormatter.resw" />
- <PRIResource Include="Strings\ja-JP\HtmlEncoderDecoder.resw" />
- <PRIResource Include="Strings\ja-JP\HashGenerator.resw" />
- <PRIResource Include="Strings\ja-JP\GuidGenerator.resw" />
- <PRIResource Include="Strings\ja-JP\Common.resw" />
- <PRIResource Include="Strings\ja-JP\ColorBlindnessSimulator.resw" />
- <PRIResource Include="Strings\ja-JP\Base64EncoderDecoder.resw" />
- <PRIResource Include="Strings\ja-JP\AllTools.resw" />
<PRIResource Include="Strings\*\*.resw" />
<Page Include="Themes\Custom.xaml">
<Generator>MSBuild:Compile</Generator>
@@ -526,6 +509,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
+ <Page Include="Views\Tools\EncodersDecoders\GZipEncoderDecoder\GZipEncoderDecoderToolPage.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
<Page Include="Views\Tools\EncodersDecoders\Base64EncoderDecoder\Base64EncoderDecoderToolPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
diff --git a/src/dev/impl/DevToys/LanguageManager.cs b/src/dev/impl/DevToys/LanguageManager.cs
index 2a5bc1759..d07fe64de 100644
--- a/src/dev/impl/DevToys/LanguageManager.cs
+++ b/src/dev/impl/DevToys/LanguageManager.cs
@@ -29,6 +29,7 @@ namespace DevToys
private readonly ColorBlindnessSimulatorStrings _colorblindnesssimulator = new ColorBlindnessSimulatorStrings();
private readonly CommonStrings _common = new CommonStrings();
private readonly GuidGeneratorStrings _guidgenerator = new GuidGeneratorStrings();
+ private readonly GZipEncoderDecoderStrings _gzipencoderdecoder = new GZipEncoderDecoderStrings();
private readonly HashGeneratorStrings _hashgenerator = new HashGeneratorStrings();
private readonly HtmlEncoderDecoderStrings _htmlencoderdecoder = new HtmlEncoderDecoderStrings();
private readonly JsonFormatterStrings _jsonformatter = new JsonFormatterStrings();
@@ -82,6 +83,11 @@ namespace DevToys
/// </summary>
public GuidGeneratorStrings GuidGenerator => _guidgenerator;
+ /// <summary>
+ /// Gets the <see cref="GZipEncoderDecoderStrings"/>.
+ /// </summary>
+ public GZipEncoderDecoderStrings GZipEncoderDecoder => _gzipencoderdecoder;
+
/// <summary>
/// Gets the <see cref="HashGeneratorStrings"/>.
/// </summary>
@@ -582,6 +588,86 @@ namespace DevToys
public string SearchDisplayName => _resources.GetString("SearchDisplayName");
}
+ public class GZipEncoderDecoderStrings : ObservableObject
+ {
+ private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("GZipEncoderDecoder");
+
+ /// <summary>
+ /// Gets the resource AccessibleName.
+ /// </summary>
+ public string AccessibleName => _resources.GetString("AccessibleName");
+
+ /// <summary>
+ /// Gets the resource Ascii.
+ /// </summary>
+ public string Ascii => _resources.GetString("Ascii");
+
+ /// <summary>
+ /// Gets the resource ConfigurationTitle.
+ /// </summary>
+ public string ConfigurationTitle => _resources.GetString("ConfigurationTitle");
+
+ /// <summary>
+ /// Gets the resource ConversionDecompress.
+ /// </summary>
+ public string ConversionDecompress => _resources.GetString("ConversionDecompress");
+
+ /// <summary>
+ /// Gets the resource ConversionDescription.
+ /// </summary>
+ public string ConversionDescription => _resources.GetString("ConversionDescription");
+
+ /// <summary>
+ /// Gets the resource ConversionCompress.
+ /// </summary>
+ public string ConversionCompress => _resources.GetString("ConversionCompress");
+
+ /// <summary>
+ /// Gets the resource ConversionTitle.
+ /// </summary>
+ public string ConversionTitle => _resources.GetString("ConversionTitle");
+
+ /// <summary>
+ /// Gets the resource MenuDisplayName.
+ /// </summary>
+ public string MenuDisplayName => _resources.GetString("MenuDisplayName");
+
+ /// <summary>
+ /// Gets the resource EncodingDescription.
+ /// </summary>
+ public string EncodingDescription => _resources.GetString("EncodingDescription");
+
+ /// <summary>
+ /// Gets the resource EncodingTitle.
+ /// </summary>
+ public string EncodingTitle => _resources.GetString("EncodingTitle");
+
+ /// <summary>
+ /// Gets the resource InputTitle.
+ /// </summary>
+ public string InputTitle => _resources.GetString("InputTitle");
+
+ /// <summary>
+ /// Gets the resource OutputTitle.
+ /// </summary>
+ public string OutputTitle => _resources.GetString("OutputTitle");
+
+ /// <summary>
+ /// Gets the resource Utf8.
+ /// </summary>
+ public string Utf8 => _resources.GetString("Utf8");
+
+ /// <summary>
+ /// Gets the resource Description.
+ /// </summary>
+ public string Description => _resources.GetString("Description");
+
+ /// <summary>
+ /// Gets the resource SearchDisplayName.
+ /// </summary>
+ public string SearchDisplayName => _resources.GetString("SearchDisplayName");
+ }
+
public class HashGeneratorStrings : ObservableObject
{
private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("HashGenerator");
diff --git a/src/dev/impl/DevToys/Strings/cs-CZ/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/cs-CZ/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/cs-CZ/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/de-DE/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/de-DE/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/de-DE/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/en-US/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/en-US/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..f764f499d
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/en-US/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select whether the input should be compressed or decompressed</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Select whether the input should be compressed or decompressed</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress / Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/es-AR/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/es-AR/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/es-AR/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/es-ES/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/es-ES/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/es-ES/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/fr-FR/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/fr-FR/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/fr-FR/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/id-ID/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/id-ID/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/id-ID/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/pl-PL/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/pl-PL/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/pl-PL/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/pt-PT/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/pt-PT/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/pt-PT/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/ru-RU/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/ru-RU/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/ru-RU/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Strings/zh-Hans/GZipEncoderDecoder.resw b/src/dev/impl/DevToys/Strings/zh-Hans/GZipEncoderDecoder.resw
new file mode 100644
index 000000000..81647da0f
--- /dev/null
+++ b/src/dev/impl/DevToys/Strings/zh-Hans/GZipEncoderDecoder.resw
@@ -0,0 +1,165 @@
+<?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="AccessibleName" xml:space="preserve">
+ <value>GZip Encoder and Decoder tool</value>
+ </data>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
+ <data name="ConfigurationTitle" xml:space="preserve">
+ <value>Configuration</value>
+ </data>
+ <data name="ConversionDecompress" xml:space="preserve">
+ <value>Decompress</value>
+ </data>
+ <data name="ConversionDescription" xml:space="preserve">
+ <value>Select compress or decompress</value>
+ </data>
+ <data name="ConversionCompress" xml:space="preserve">
+ <value>Compress</value>
+ </data>
+ <data name="ConversionTitle" xml:space="preserve">
+ <value>Compress/Decompress</value>
+ </data>
+ <data name="MenuDisplayName" xml:space="preserve">
+ <value>GZip</value>
+ </data>
+ <data name="EncodingDescription" xml:space="preserve">
+ <value>Compress or decompress strings with GZip</value>
+ </data>
+ <data name="EncodingTitle" xml:space="preserve">
+ <value>Encoding</value>
+ </data>
+ <data name="InputTitle" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="OutputTitle" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
+ <data name="Description" xml:space="preserve">
+ <value>Compress or decompress strings</value>
+ </data>
+ <data name="SearchDisplayName" xml:space="preserve">
+ <value>GZip Compress/Decompress</value>
+ </data>
+</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/ViewModels/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolProvider.cs b/src/dev/impl/DevToys/ViewModels/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolProvider.cs
new file mode 100644
index 000000000..4e46417dc
--- /dev/null
+++ b/src/dev/impl/DevToys/ViewModels/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolProvider.cs
@@ -0,0 +1,52 @@
+#nullable enable
+
+using System.Composition;
+using DevToys.Shared.Api.Core;
+using DevToys.Api.Tools;
+using DevToys.Core.Threading;
+using Windows.UI.Xaml.Controls;
+
+namespace DevToys.ViewModels.Tools.GZipEncoderDecoder
+{
+ [Export(typeof(IToolProvider))]
+ [Name("GZip Compress/Decompress")]
+ [Parent(EncodersDecodersGroupToolProvider.InternalName)]
+ [ProtocolName("gzip")]
+ [Order(1)]
+ internal sealed class GZipEncoderDecoderToolProvider : ToolProviderBase, IToolProvider
+ {
+ public string MenuDisplayName => LanguageManager.Instance.GZipEncoderDecoder.MenuDisplayName;
+
+ public string? SearchDisplayName => LanguageManager.Instance.GZipEncoderDecoder.SearchDisplayName;
+
+ public string? Description => LanguageManager.Instance.GZipEncoderDecoder.Description;
+
+ public string AccessibleName => LanguageManager.Instance.GZipEncoderDecoder.AccessibleName;
+
+ public TaskCompletionNotifier<IconElement> IconSource => CreateFontIcon("\uF435");
+
+ private readonly IMefProvider _mefProvider;
+
+ [ImportingConstructor]
+ public GZipEncoderDecoderToolProvider(IMefProvider mefProvider)
+ {
+ _mefProvider = mefProvider;
+ }
+
+ public bool CanBeTreatedByTool(string data)
+ {
+ if (string.IsNullOrWhiteSpace(data))
+ {
+ return false;
+ }
+
+ string? trimmedData = data.Trim();
+ return trimmedData.StartsWith("H4sI");
+ }
+
+ public IToolViewModel CreateTool()
+ {
+ return _mefProvider.Import<GZipEncoderDecoderToolViewModel>();
+ }
+ }
+}
diff --git a/src/dev/impl/DevToys/ViewModels/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolViewModel.cs b/src/dev/impl/DevToys/ViewModels/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolViewModel.cs
new file mode 100644
index 000000000..7a857e9a8
--- /dev/null
+++ b/src/dev/impl/DevToys/ViewModels/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolViewModel.cs
@@ -0,0 +1,205 @@
+#nullable enable
+
+using System;
+using System.Collections.Generic;
+using System.Composition;
+using System.IO.Compression;
+using System.IO;
+using System.Text;
+using System.Threading.Tasks;
+using DevToys.Api.Core;
+using DevToys.Api.Core.Settings;
+using DevToys.Api.Tools;
+using DevToys.Core;
+using DevToys.Core.Threading;
+using DevToys.Shared.Core.Threading;
+using DevToys.Views.Tools.GZipEncoderDecoder;
+using Microsoft.Toolkit.Mvvm.ComponentModel;
+
+namespace DevToys.ViewModels.Tools.GZipEncoderDecoder
+{
+ [Export(typeof(GZipEncoderDecoderToolViewModel))]
+ public class GZipEncoderDecoderToolViewModel : ObservableRecipient, IToolViewModel
+ {
+ /// <summary>
+ /// Whether the tool should encode or decode Html.
+ /// </summary>
+ private static readonly SettingDefinition<bool> CompressMode
+ = new(
+ name: $"{nameof(GZipEncoderDecoderToolViewModel)}.{nameof(CompressMode)}",
+ isRoaming: true,
+ defaultValue: true);
+
+ private readonly IMarketingService _marketingService;
+ private readonly ISettingsProvider _settingsProvider;
+ private readonly Queue<string> _conversionQueue = new();
+
+ private string? _inputValue;
+ private string? _outputValue;
+ private bool _conversionInProgress;
+ private bool _setPropertyInProgress;
+ private bool _toolSuccessfullyWorked;
+
+ public Type View { get; } = typeof(GZipEncoderDecoderToolPage);
+
+ internal GZipEncoderDecoderStrings Strings => LanguageManager.Instance.GZipEncoderDecoder;
+
+ /// <summary>
+ /// Gets or sets the input text.
+ /// </summary>
+ internal string? InputValue
+ {
+ get => _inputValue;
+ set
+ {
+ ThreadHelper.ThrowIfNotOnUIThread();
+ SetProperty(ref _inputValue, value);
+ QueueConversionCalculation();
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the output text.
+ /// </summary>
+ internal string? OutputValue
+ {
+ get => _outputValue;
+ private set => SetProperty(ref _outputValue, value);
+ }
+
+ /// <summary>
+ /// Gets or sets the compress mode.
+ /// </summary>
+ internal bool IsCompressMode
+ {
+ get => _settingsProvider.GetSetting(CompressMode);
+ set
+ {
+ if (!_setPropertyInProgress)
+ {
+ _setPropertyInProgress = true;
+ ThreadHelper.ThrowIfNotOnUIThread();
+ if (_settingsProvider.GetSetting(CompressMode) != value)
+ {
+ _settingsProvider.SetSetting(CompressMode, value);
+ OnPropertyChanged();
+ }
+ InputValue = OutputValue;
+ _setPropertyInProgress = false;
+ }
+ }
+ }
+
+ [ImportingConstructor]
+ public GZipEncoderDecoderToolViewModel(ISettingsProvider settingsProvider, IMarketingService marketingService)
+ {
+ _settingsProvider = settingsProvider;
+ _marketingService = marketingService;
+ }
+
+ private void QueueConversionCalculation()
+ {
+ _conversionQueue.Enqueue(InputValue ?? string.Empty);
+ TreatQueueAsync().Forget();
+ }
+
+ private async Task TreatQueueAsync()
+ {
+ if (_conversionInProgress)
+ {
+ return;
+ }
+
+ _conversionInProgress = true;
+
+ await TaskScheduler.Default;
+
+ while (_conversionQueue.TryDequeue(out string? text))
+ {
+ string conversionResult;
+ if (IsCompressMode)
+ {
+ conversionResult = await Compress(text).ConfigureAwait(false);
+ }
+ else
+ {
+ conversionResult = await Decompress(text).ConfigureAwait(false);
+ }
+
+ ThreadHelper.RunOnUIThreadAsync(ThreadPriority.Low, () =>
+ {
+ OutputValue = conversionResult;
+
+ if (!_toolSuccessfullyWorked)
+ {
+ _toolSuccessfullyWorked = true;
+ _marketingService.NotifyToolSuccessfullyWorked();
+ }
+ }).ForgetSafely();
+ }
+
+ _conversionInProgress = false;
+ }
+
+ private async Task<string> Compress(string? data)
+ {
+ if (string.IsNullOrWhiteSpace(data))
+ {
+ return string.Empty;
+ }
+
+ await TaskScheduler.Default;
+
+ string? compressed;
+ try
+ {
+ byte[] inputBytes = Encoding.UTF8.GetBytes(data);
+ using var outputStream = new MemoryStream();
+ using (var gZipStream = new GZipStream(outputStream, CompressionMode.Compress))
+ {
+ gZipStream.Write(inputBytes, 0, inputBytes.Length);
+ }
+
+ compressed = Convert.ToBase64String(outputStream.ToArray());
+ }
+ catch (Exception ex)
+ {
+ Logger.LogFault("GZip - Compress", ex);
+ return ex.Message;
+ }
+
+ return compressed;
+ }
+
+ private async Task<string> Decompress(string? data)
+ {
+ if (string.IsNullOrWhiteSpace(data))
+ {
+ return string.Empty;
+ }
+
+ await TaskScheduler.Default;
+ string? decompressed = string.Empty;
+
+ try
+ {
+ byte[] inputBytes = Convert.FromBase64String(data);
+ using var inputStream = new MemoryStream(inputBytes);
+ using var gZipStream = new GZipStream(inputStream, CompressionMode.Decompress);
+ using var streamReader = new StreamReader(gZipStream);
+ decompressed = streamReader.ReadToEnd();
+ }
+ catch (FormatException)
+ {
+ // ignore;
+ }
+ catch (Exception ex)
+ {
+ Logger.LogFault("GZip - Decompress", ex);
+ return ex.Message;
+ }
+
+ return decompressed;
+ }
+ }
+}
diff --git a/src/dev/impl/DevToys/Views/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolPage.xaml b/src/dev/impl/DevToys/Views/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolPage.xaml
new file mode 100644
index 000000000..3d28cac2a
--- /dev/null
+++ b/src/dev/impl/DevToys/Views/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolPage.xaml
@@ -0,0 +1,57 @@
+<Page
+ x:Class="DevToys.Views.Tools.GZipEncoderDecoder.GZipEncoderDecoderToolPage"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:controls="using:DevToys.UI.Controls"
+ xmlns:ex="using:DevToys.UI.Extensions"
+ mc:Ignorable="d"
+ NavigationCacheMode="Required">
+
+ <Grid x:Name="RootGrid" RowSpacing="12" Margin="0,0,0,16">
+ <Grid.ChildrenTransitions>
+ <TransitionCollection>
+ <EntranceThemeTransition IsStaggeringEnabled="True" FromVerticalOffset="50"/>
+ </TransitionCollection>
+ </Grid.ChildrenTransitions>
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto" />
+ <RowDefinition Height="*" />
+ <RowDefinition Height="*" />
+ </Grid.RowDefinitions>
+
+ <StackPanel Spacing="4" Grid.Row="0" >
+ <TextBlock Style="{StaticResource SubTitleTextBlock}" Text="{x:Bind ViewModel.Strings.ConfigurationTitle}" />
+ <controls:ExpandableSettingControl
+ Grid.Row="1"
+ Title="{x:Bind ViewModel.Strings.ConversionTitle}"
+ Description="{x:Bind ViewModel.Strings.ConversionDescription}">
+ <controls:ExpandableSettingControl.Icon>
+ <FontIcon Glyph="&#xF18D;" />
+ </controls:ExpandableSettingControl.Icon>
+ <ToggleSwitch
+ Style="{StaticResource RightAlignedToggleSwitchStyle}"
+ OnContent="{x:Bind ViewModel.Strings.ConversionCompress}" OffContent="{x:Bind ViewModel.Strings.ConversionDecompress}"
+ IsOn="{x:Bind ViewModel.IsCompressMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
+ </controls:ExpandableSettingControl>
+ </StackPanel>
+
+ <controls:CustomTextBox
+ Grid.Row="1"
+ MinHeight="150"
+ AcceptsReturn="True"
+ Header="{x:Bind ViewModel.Strings.InputTitle}"
+ Text="{x:Bind ViewModel.InputValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
+
+ <controls:CustomTextBox
+ Grid.Row="2"
+ MinHeight="150"
+ IsReadOnly="True"
+ AcceptsReturn="True"
+ Header="{x:Bind ViewModel.Strings.OutputTitle}"
+ Text="{x:Bind ViewModel.OutputValue, Mode=OneWay}"/>
+
+ </Grid>
+</Page>
diff --git a/src/dev/impl/DevToys/Views/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolPage.xaml.cs b/src/dev/impl/DevToys/Views/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolPage.xaml.cs
new file mode 100644
index 000000000..56b60b872
--- /dev/null
+++ b/src/dev/impl/DevToys/Views/Tools/EncodersDecoders/GZipEncoderDecoder/GZipEncoderDecoderToolPage.xaml.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+using DevToys.Api.Core.Navigation;
+using DevToys.Shared.Core;
+using DevToys.ViewModels.Tools.GZipEncoderDecoder;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Navigation;
+
+namespace DevToys.Views.Tools.GZipEncoderDecoder
+{
+ public sealed partial class GZipEncoderDecoderToolPage : Page
+ {
+ public static readonly DependencyProperty ViewModelProperty
+ = DependencyProperty.Register(
+ nameof(ViewModel),
+ typeof(GZipEncoderDecoderToolViewModel),
+ typeof(GZipEncoderDecoderToolPage),
+ new PropertyMetadata(null));
+
+ /// <summary>
+ /// Gets the page's view model.
+ /// </summary>
+ public GZipEncoderDecoderToolViewModel ViewModel
+ {
+ get => (GZipEncoderDecoderToolViewModel)GetValue(ViewModelProperty);
+ set => SetValue(ViewModelProperty, value);
+ }
+
+ public GZipEncoderDecoderToolPage()
+ {
+ InitializeComponent();
+ }
+
+ protected override void OnNavigatedTo(NavigationEventArgs e)
+ {
+ var parameters = (NavigationParameter)e.Parameter;
+
+ if (ViewModel is null)
+ {
+ // Set the view model
+ Assumes.NotNull(parameters.ViewModel, nameof(parameters.ViewModel));
+ ViewModel = (GZipEncoderDecoderToolViewModel)parameters.ViewModel!;
+ DataContext = ViewModel;
+ }
+
+ if (!string.IsNullOrWhiteSpace(parameters.ClipBoardContent))
+ {
+ ViewModel.IsCompressMode = false;
+ ViewModel.InputValue = parameters.ClipBoardContent;
+ }
+
+ base.OnNavigatedTo(e);
+ }
+ }
+}