A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Added Lorem Ipsum Generator tool (#130)
Ivan Kahl2a42504abf2d
diff --git a/README.md b/README.mdindex 8f927aa31..14f0cc035 100644--- a/README.md+++ b/README.md@@ -37,6 +37,7 @@ Many tools are available.- Generators- Hash (MD5, SHA1, SHA256, SHA512)- UUID 1 and 4+ - Lorem Ipsum- Text- Inspector & Case Converter- Regex Tester@@ -84,6 +85,7 @@ Here is the list of tool name you can use:- `base64` - Base64 Encoder/Decoder- `hash` - Hash Generator- `uuid` - UUID Generator+- `loremipsum` - Lorem Ipsum Generator- `jsonformat` Json Formatter- `jsonyaml` - Json <> Yaml- `jwt` - JWT Decoderdiff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.mdindex 3d4a4de31..e0e3f0f31 100644--- a/THIRD-PARTY-NOTICES.md+++ b/THIRD-PARTY-NOTICES.md@@ -14,6 +14,7 @@ This project incorporates components from the projects listed below. The origina10. Markdig (https://github.com/xoofx/markdig)11. github-markdown-css (https://github.com/sindresorhus/github-markdown-css)12. Efficient Compression Tool (https://github.com/fhanau/Efficient-Compression-Tool)+13. NLipsum (https://github.com/alexcpendleton/NLipsum)Newtonsoft.Json NOTICES AND INFORMATION BEGIN HERE=========================================@@ -434,4 +435,27 @@ Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and-limitations under the License.\ No newline at end of file+limitations under the License.++NLipsum NOTICES AND INFORMATION BEGIN HERE+=========================================+The MIT License (MIT)++Copyright (c) 2015 Alex Pendleton++Permission is hereby granted, free of charge, to any person obtaining a copy of+this software and associated documentation files (the "Software"), to deal in+the Software without restriction, including without limitation the rights to+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of+the Software, and to permit persons to whom the Software is furnished to do so,+subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\ No newline at end of filediff --git a/src/Directory.Build.props b/src/Directory.Build.propsindex 16c34a1e0..8ec519fae 100644--- a/src/Directory.Build.props+++ b/src/Directory.Build.props@@ -35,5 +35,6 @@<NuGet_Win2D>1.26.0</NuGet_Win2D><NuGet_YamlDotNet>11.2.1</NuGet_YamlDotNet><NuGet_IdentityModelTokenJwt>6.13.1</NuGet_IdentityModelTokenJwt>+ <NuGet_NLipsum>1.1.0</NuGet_NLipsum></PropertyGroup></Project>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Assets/Icons/LoremIpsum.svg b/src/dev/impl/DevToys/Assets/Icons/LoremIpsum.svgnew file mode 100644index 000000000..8d07349b0--- /dev/null+++ b/src/dev/impl/DevToys/Assets/Icons/LoremIpsum.svg@@ -0,0 +1,18 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ viewBox="0.008 0.008 31.984 31.984"+ version="1.1"+ id="svg19"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <defs+ id="defs23" />+ <path+ d="M 18.518236,26.641071 H 7.728674 V 5.8450603 h 2.436353 V 24.436752 h 8.353209 z"+ fill="#000000"+ id="path13981" />+ <path+ d="m 22.607829,8.0203753 q -0.638093,0 -1.087658,-0.435063 -0.449565,-0.435063 -0.449565,-1.1021596 0,-0.6670966 0.449565,-1.1021596 0.449565,-0.4495651 1.087658,-0.4495651 0.652594,0 1.102159,0.4495651 0.464067,0.435063 0.464067,1.1021596 0,0.6380924 -0.464067,1.0876575 -0.449565,0.4495651 -1.102159,0.4495651 z m 1.160168,18.6206957 h -2.378345 v -14.85015 h 2.378345 z"+ fill="#000000"+ id="path13983" />+</svg>diff --git a/src/dev/impl/DevToys/DevToys.csproj b/src/dev/impl/DevToys/DevToys.csprojindex fa3b108e8..b7daa83b4 100644--- a/src/dev/impl/DevToys/DevToys.csproj+++ b/src/dev/impl/DevToys/DevToys.csproj@@ -1,4 +1,4 @@-<?xml version="1.0" encoding="utf-8"?>+<?xml version="1.0" encoding="utf-8"?><Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /><PropertyGroup>@@ -47,6 +47,8 @@<Compile Include="ViewModels\Tools\Converters\ConvertersGroupToolProvider.cs" /><Compile Include="ViewModels\Tools\EncodersDecoders\EncodersDecodersGroupToolProvider.cs" /><Compile Include="ViewModels\Tools\Generators\GeneratorsGroupToolProvider.cs" />+ <Compile Include="ViewModels\Tools\Generators\LoremIpsumGenerator\LoremIpsumGeneratorToolProvider.cs" />+ <Compile Include="ViewModels\Tools\Generators\LoremIpsumGenerator\LoremIpsumGeneratorToolViewModel.cs" /><Compile Include="ViewModels\Tools\Graphic\GraphicGroupToolProvider.cs" /><Compile Include="ViewModels\Tools\GroupToolProviderBase.cs" /><Compile Include="ViewModels\Tools\GroupToolViewModel.cs" />@@ -71,6 +73,9 @@<Compile Include="Views\Tools\HtmlEncoderDecoder\HtmlEncoderDecoderToolPage.xaml.cs"><DependentUpon>HtmlEncoderDecoderToolPage.xaml</DependentUpon></Compile>+ <Compile Include="Views\Tools\LoremIpsumGenerator\LoremIpsumGeneratorToolPage.xaml.cs">+ <DependentUpon>LoremIpsumGeneratorToolPage.xaml</DependentUpon>+ </Compile><Compile Include="Views\Tools\PngJpgCompressor\PngJpgCompressorToolPage.xaml.cs"><DependentUpon>PngJpgCompressorToolPage.xaml</DependentUpon></Compile>@@ -214,6 +219,9 @@<Content Include="Assets\Icons\Guid.svg"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="Assets\Icons\LoremIpsum.svg">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="Assets\Icons\MarkdownPreview.svg"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -496,6 +504,10 @@<SubType>Designer</SubType><Generator>MSBuild:Compile</Generator></Page>+ <Page Include="Views\Tools\LoremIpsumGenerator\LoremIpsumGeneratorToolPage.xaml">+ <SubType>Designer</SubType>+ <Generator>MSBuild:Compile</Generator>+ </Page><Page Include="Views\Tools\NumberBaseConverter\NumberBaseConverterToolPage.xaml"><Generator>MSBuild:Compile</Generator><SubType>Designer</SubType>@@ -562,6 +574,7 @@<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls" Version="$(Nuget_MicrosoftToolkitUwpUIControls)" /><PackageReference Include="Microsoft.UI.Xaml" Version="$(NuGet_MicrosoftUIXaml)" /><PackageReference Include="Newtonsoft.Json" Version="$(NuGet_NewtonsoftJson)" />+ <PackageReference Include="NLipsum" Version="$(NuGet_NLipsum)"/><PackageReference Include="System.Composition" Version="$(NuGet_DotNet)" /><PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="$(NuGet_IdentityModelTokenJwt)" /><PackageReference Include="YamlDotNet" Version="$(NuGet_YamlDotNet)" />diff --git a/src/dev/impl/DevToys/LanguageManager.cs b/src/dev/impl/DevToys/LanguageManager.csindex 73a3d7a2f..48abf635c 100644--- a/src/dev/impl/DevToys/LanguageManager.cs+++ b/src/dev/impl/DevToys/LanguageManager.cs@@ -33,6 +33,7 @@ namespace DevToysprivate readonly JsonFormatterStrings _jsonformatter = new JsonFormatterStrings();private readonly JsonYamlStrings _jsonyaml = new JsonYamlStrings();private readonly JwtDecoderEncoderStrings _jwtdecoderencoder = new JwtDecoderEncoderStrings();+ private readonly LoremIpsumGeneratorStrings _loremipsumgenerator = new LoremIpsumGeneratorStrings();private readonly MainPageStrings _mainpage = new MainPageStrings();private readonly MarkdownPreviewStrings _markdownpreview = new MarkdownPreviewStrings();private readonly NumberBaseConverterStrings _numberbaseconverter = new NumberBaseConverterStrings();@@ -100,6 +101,11 @@ namespace DevToys/// </summary>public JwtDecoderEncoderStrings JwtDecoderEncoder => _jwtdecoderencoder;+ /// <summary>+ /// Gets the <see cref="LoremIpsumGeneratorStrings"/>.+ /// </summary>+ public LoremIpsumGeneratorStrings LoremIpsumGenerator => _loremipsumgenerator;+/// <summary>/// Gets the <see cref="MainPageStrings"/>./// </summary>@@ -845,6 +851,76 @@ namespace DevToyspublic string SearchDisplayName => _resources.GetString("SearchDisplayName");}+ public class LoremIpsumGeneratorStrings : ObservableObject+ {+ private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("LoremIpsumGenerator");++ /// <summary>+ /// Gets the resource AccessibleName.+ /// </summary>+ public string AccessibleName => _resources.GetString("AccessibleName");++ /// <summary>+ /// Gets the resource Configuration.+ /// </summary>+ public string Configuration => _resources.GetString("Configuration");++ /// <summary>+ /// Gets the resource Description.+ /// </summary>+ public string Description => _resources.GetString("Description");++ /// <summary>+ /// Gets the resource LengthDescription.+ /// </summary>+ public string LengthDescription => _resources.GetString("LengthDescription");++ /// <summary>+ /// Gets the resource LengthTitle.+ /// </summary>+ public string LengthTitle => _resources.GetString("LengthTitle");++ /// <summary>+ /// Gets the resource MenuDisplayName.+ /// </summary>+ public string MenuDisplayName => _resources.GetString("MenuDisplayName");++ /// <summary>+ /// Gets the resource Output.+ /// </summary>+ public string Output => _resources.GetString("Output");++ /// <summary>+ /// Gets the resource ParagraphsType.+ /// </summary>+ public string ParagraphsType => _resources.GetString("ParagraphsType");++ /// <summary>+ /// Gets the resource SearchDisplayName.+ /// </summary>+ public string SearchDisplayName => _resources.GetString("SearchDisplayName");++ /// <summary>+ /// Gets the resource SentencesType.+ /// </summary>+ public string SentencesType => _resources.GetString("SentencesType");++ /// <summary>+ /// Gets the resource TypeDescription.+ /// </summary>+ public string TypeDescription => _resources.GetString("TypeDescription");++ /// <summary>+ /// Gets the resource TypeTitle.+ /// </summary>+ public string TypeTitle => _resources.GetString("TypeTitle");++ /// <summary>+ /// Gets the resource WordsType.+ /// </summary>+ public string WordsType => _resources.GetString("WordsType");+ }+public class MainPageStrings : ObservableObject{private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("MainPage");diff --git a/src/dev/impl/DevToys/Strings/cs-CZ/LoremIpsumGenerator.resw b/src/dev/impl/DevToys/Strings/cs-CZ/LoremIpsumGenerator.reswnew file mode 100644index 000000000..1644a5952--- /dev/null+++ b/src/dev/impl/DevToys/Strings/cs-CZ/LoremIpsumGenerator.resw@@ -0,0 +1,159 @@+<?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>Lorem Ipsum Generator tool</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Generate Lorem Ipsum placeholder text</value>+ </data>+ <data name="LengthDescription" xml:space="preserve">+ <value>Number of words, sentences or paragraphs to generate</value>+ </data>+ <data name="LengthTitle" xml:space="preserve">+ <value>Length</value>+ </data>+ <data name="MenuDisplayName" xml:space="preserve">+ <value>Lorem Ipsum</value>+ </data>+ <data name="Output" xml:space="preserve">+ <value>Output</value>+ </data>+ <data name="ParagraphsType" xml:space="preserve">+ <value>Paragraphs</value>+ </data>+ <data name="SearchDisplayName" xml:space="preserve">+ <value>Lorem Ipsum Generator</value>+ </data>+ <data name="SentencesType" xml:space="preserve">+ <value>Sentences</value>+ </data>+ <data name="TypeDescription" xml:space="preserve">+ <value>Generate words, sentences or paragraphs of Lorem Ipsum</value>+ </data>+ <data name="TypeTitle" xml:space="preserve">+ <value>Type</value>+ </data>+ <data name="WordsType" xml:space="preserve">+ <value>Words</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/en-US/LoremIpsumGenerator.resw b/src/dev/impl/DevToys/Strings/en-US/LoremIpsumGenerator.reswnew file mode 100644index 000000000..1644a5952--- /dev/null+++ b/src/dev/impl/DevToys/Strings/en-US/LoremIpsumGenerator.resw@@ -0,0 +1,159 @@+<?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>Lorem Ipsum Generator tool</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Generate Lorem Ipsum placeholder text</value>+ </data>+ <data name="LengthDescription" xml:space="preserve">+ <value>Number of words, sentences or paragraphs to generate</value>+ </data>+ <data name="LengthTitle" xml:space="preserve">+ <value>Length</value>+ </data>+ <data name="MenuDisplayName" xml:space="preserve">+ <value>Lorem Ipsum</value>+ </data>+ <data name="Output" xml:space="preserve">+ <value>Output</value>+ </data>+ <data name="ParagraphsType" xml:space="preserve">+ <value>Paragraphs</value>+ </data>+ <data name="SearchDisplayName" xml:space="preserve">+ <value>Lorem Ipsum Generator</value>+ </data>+ <data name="SentencesType" xml:space="preserve">+ <value>Sentences</value>+ </data>+ <data name="TypeDescription" xml:space="preserve">+ <value>Generate words, sentences or paragraphs of Lorem Ipsum</value>+ </data>+ <data name="TypeTitle" xml:space="preserve">+ <value>Type</value>+ </data>+ <data name="WordsType" xml:space="preserve">+ <value>Words</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/fr-FR/LoremIpsumGenerator.resw b/src/dev/impl/DevToys/Strings/fr-FR/LoremIpsumGenerator.reswnew file mode 100644index 000000000..1644a5952--- /dev/null+++ b/src/dev/impl/DevToys/Strings/fr-FR/LoremIpsumGenerator.resw@@ -0,0 +1,159 @@+<?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>Lorem Ipsum Generator tool</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Generate Lorem Ipsum placeholder text</value>+ </data>+ <data name="LengthDescription" xml:space="preserve">+ <value>Number of words, sentences or paragraphs to generate</value>+ </data>+ <data name="LengthTitle" xml:space="preserve">+ <value>Length</value>+ </data>+ <data name="MenuDisplayName" xml:space="preserve">+ <value>Lorem Ipsum</value>+ </data>+ <data name="Output" xml:space="preserve">+ <value>Output</value>+ </data>+ <data name="ParagraphsType" xml:space="preserve">+ <value>Paragraphs</value>+ </data>+ <data name="SearchDisplayName" xml:space="preserve">+ <value>Lorem Ipsum Generator</value>+ </data>+ <data name="SentencesType" xml:space="preserve">+ <value>Sentences</value>+ </data>+ <data name="TypeDescription" xml:space="preserve">+ <value>Generate words, sentences or paragraphs of Lorem Ipsum</value>+ </data>+ <data name="TypeTitle" xml:space="preserve">+ <value>Type</value>+ </data>+ <data name="WordsType" xml:space="preserve">+ <value>Words</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/pl-PL/LoremIpsumGenerator.resw b/src/dev/impl/DevToys/Strings/pl-PL/LoremIpsumGenerator.reswnew file mode 100644index 000000000..1644a5952--- /dev/null+++ b/src/dev/impl/DevToys/Strings/pl-PL/LoremIpsumGenerator.resw@@ -0,0 +1,159 @@+<?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>Lorem Ipsum Generator tool</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Generate Lorem Ipsum placeholder text</value>+ </data>+ <data name="LengthDescription" xml:space="preserve">+ <value>Number of words, sentences or paragraphs to generate</value>+ </data>+ <data name="LengthTitle" xml:space="preserve">+ <value>Length</value>+ </data>+ <data name="MenuDisplayName" xml:space="preserve">+ <value>Lorem Ipsum</value>+ </data>+ <data name="Output" xml:space="preserve">+ <value>Output</value>+ </data>+ <data name="ParagraphsType" xml:space="preserve">+ <value>Paragraphs</value>+ </data>+ <data name="SearchDisplayName" xml:space="preserve">+ <value>Lorem Ipsum Generator</value>+ </data>+ <data name="SentencesType" xml:space="preserve">+ <value>Sentences</value>+ </data>+ <data name="TypeDescription" xml:space="preserve">+ <value>Generate words, sentences or paragraphs of Lorem Ipsum</value>+ </data>+ <data name="TypeTitle" xml:space="preserve">+ <value>Type</value>+ </data>+ <data name="WordsType" xml:space="preserve">+ <value>Words</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/ru-RU/LoremIpsumGenerator.resw b/src/dev/impl/DevToys/Strings/ru-RU/LoremIpsumGenerator.reswnew file mode 100644index 000000000..1644a5952--- /dev/null+++ b/src/dev/impl/DevToys/Strings/ru-RU/LoremIpsumGenerator.resw@@ -0,0 +1,159 @@+<?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>Lorem Ipsum Generator tool</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Generate Lorem Ipsum placeholder text</value>+ </data>+ <data name="LengthDescription" xml:space="preserve">+ <value>Number of words, sentences or paragraphs to generate</value>+ </data>+ <data name="LengthTitle" xml:space="preserve">+ <value>Length</value>+ </data>+ <data name="MenuDisplayName" xml:space="preserve">+ <value>Lorem Ipsum</value>+ </data>+ <data name="Output" xml:space="preserve">+ <value>Output</value>+ </data>+ <data name="ParagraphsType" xml:space="preserve">+ <value>Paragraphs</value>+ </data>+ <data name="SearchDisplayName" xml:space="preserve">+ <value>Lorem Ipsum Generator</value>+ </data>+ <data name="SentencesType" xml:space="preserve">+ <value>Sentences</value>+ </data>+ <data name="TypeDescription" xml:space="preserve">+ <value>Generate words, sentences or paragraphs of Lorem Ipsum</value>+ </data>+ <data name="TypeTitle" xml:space="preserve">+ <value>Type</value>+ </data>+ <data name="WordsType" xml:space="preserve">+ <value>Words</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/Strings/zh-CN/LoremIpsumGenerator.resw b/src/dev/impl/DevToys/Strings/zh-CN/LoremIpsumGenerator.reswnew file mode 100644index 000000000..1644a5952--- /dev/null+++ b/src/dev/impl/DevToys/Strings/zh-CN/LoremIpsumGenerator.resw@@ -0,0 +1,159 @@+<?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>Lorem Ipsum Generator tool</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Generate Lorem Ipsum placeholder text</value>+ </data>+ <data name="LengthDescription" xml:space="preserve">+ <value>Number of words, sentences or paragraphs to generate</value>+ </data>+ <data name="LengthTitle" xml:space="preserve">+ <value>Length</value>+ </data>+ <data name="MenuDisplayName" xml:space="preserve">+ <value>Lorem Ipsum</value>+ </data>+ <data name="Output" xml:space="preserve">+ <value>Output</value>+ </data>+ <data name="ParagraphsType" xml:space="preserve">+ <value>Paragraphs</value>+ </data>+ <data name="SearchDisplayName" xml:space="preserve">+ <value>Lorem Ipsum Generator</value>+ </data>+ <data name="SentencesType" xml:space="preserve">+ <value>Sentences</value>+ </data>+ <data name="TypeDescription" xml:space="preserve">+ <value>Generate words, sentences or paragraphs of Lorem Ipsum</value>+ </data>+ <data name="TypeTitle" xml:space="preserve">+ <value>Type</value>+ </data>+ <data name="WordsType" xml:space="preserve">+ <value>Words</value>+ </data>+</root>\ No newline at end of filediff --git a/src/dev/impl/DevToys/ViewModels/Tools/Generators/LoremIpsumGenerator/LoremIpsumGeneratorToolProvider.cs b/src/dev/impl/DevToys/ViewModels/Tools/Generators/LoremIpsumGenerator/LoremIpsumGeneratorToolProvider.csnew file mode 100644index 000000000..076e07760--- /dev/null+++ b/src/dev/impl/DevToys/ViewModels/Tools/Generators/LoremIpsumGenerator/LoremIpsumGeneratorToolProvider.cs@@ -0,0 +1,43 @@+using System.Composition;+using Windows.UI.Xaml.Controls;+using DevToys.Api.Tools;+using DevToys.Core.Threading;+using DevToys.Shared.Api.Core;++#nullable enable++namespace DevToys.ViewModels.Tools.LoremIpsumGenerator+{+ [Export(typeof(IToolProvider))]+ [Name("Lorem Ipsum Generator")]+ [Parent(GeneratorsGroupToolProvider.InternalName)]+ [ProtocolName("loremipsum")]+ [Order(2)]+ [CompactOverlaySize(width: 400, height: 500)]+ internal sealed class LoremIpsumGeneratorToolProvider : ToolProviderBase, IToolProvider+ {+ private readonly IMefProvider _mefProvider;++ public string MenuDisplayName => LanguageManager.Instance.LoremIpsumGenerator.MenuDisplayName;+ public string? SearchDisplayName => LanguageManager.Instance.LoremIpsumGenerator.SearchDisplayName;+ public string? Description => LanguageManager.Instance.LoremIpsumGenerator.Description;+ public string AccessibleName => LanguageManager.Instance.LoremIpsumGenerator.AccessibleName;+ public TaskCompletionNotifier<IconElement> IconSource => CreateSvgIcon("LoremIpsum.svg");++ [ImportingConstructor]+ public LoremIpsumGeneratorToolProvider(IMefProvider mefProvider)+ {+ _mefProvider = mefProvider;+ }++ public IToolViewModel CreateTool()+ {+ return _mefProvider.Import<LoremIpsumGeneratorToolViewModel>();+ }++ public bool CanBeTreatedByTool(string data)+ {+ return false;+ }+ }+}diff --git a/src/dev/impl/DevToys/ViewModels/Tools/Generators/LoremIpsumGenerator/LoremIpsumGeneratorToolViewModel.cs b/src/dev/impl/DevToys/ViewModels/Tools/Generators/LoremIpsumGenerator/LoremIpsumGeneratorToolViewModel.csnew file mode 100644index 000000000..9f126c480--- /dev/null+++ b/src/dev/impl/DevToys/ViewModels/Tools/Generators/LoremIpsumGenerator/LoremIpsumGeneratorToolViewModel.cs@@ -0,0 +1,157 @@+using System;+using System.Collections;+using System.Collections.Generic;+using System.Composition;+using System.Globalization;+using System.Security.AccessControl;+using System.Threading.Tasks;+using Windows.ApplicationModel.Background;+using DevToys.Api.Core;+using DevToys.Api.Core.Settings;+using DevToys.Api.Tools;+using DevToys.Core.Threading;+using DevToys.Shared.Core.Threading;+using DevToys.Views.Tools.LoremIpsumGenerator;+using Microsoft.Toolkit.Mvvm.ComponentModel;+using NLipsum.Core;++namespace DevToys.ViewModels.Tools.LoremIpsumGenerator+{+ [Export(typeof(LoremIpsumGeneratorToolViewModel))]+ public sealed class LoremIpsumGeneratorToolViewModel : ObservableRecipient, IToolViewModel+ {+ private static readonly SettingDefinition<string> Type+ = new(+ name: $"{nameof(LoremIpsumGeneratorToolViewModel)}.{nameof(Type)}",+ isRoaming: true,+ defaultValue: DefaultType);++ private static readonly SettingDefinition<int> Length+ = new(+ name: $"{nameof(LoremIpsumGeneratorToolViewModel)}.{nameof(Length)}",+ isRoaming: true,+ defaultValue: 1);++ private const string ParagraphsType = "Paragraphs";+ private const string SentencesType = "Sentences";+ private const string WordsType = "Words";++ private const string DefaultType = ParagraphsType;++ private readonly IMarketingService _marketingService;+ private readonly ISettingsProvider _settingsProvider;+ private readonly Queue<(string Type, int Length)> _generationQueue = new();++ private string _output = string.Empty;+ private bool _generationInProgress;+ private bool _toolSuccessfullyWorked;++ public Type View => typeof(LoremIpsumGeneratorToolPage);++ internal LoremIpsumGeneratorStrings Strings => LanguageManager.Instance.LoremIpsumGenerator;++ internal string LoremIpsumType+ {+ get => _settingsProvider.GetSetting(Type);+ set+ {+ if (_settingsProvider.GetSetting(Type) != value)+ {+ _settingsProvider.SetSetting(Type, value);+ OnPropertyChanged();+ QueueGeneration();+ }+ }+ }++ internal int LoremIpsumLength+ {+ get => _settingsProvider.GetSetting(Length);+ set+ {+ if (_settingsProvider.GetSetting(Length) != value)+ {+ _settingsProvider.SetSetting(Length, value);+ OnPropertyChanged();+ QueueGeneration();+ }+ }+ }++ internal string Output+ {+ get => _output;+ set => SetProperty(ref _output, value);+ }++ [ImportingConstructor]+ public LoremIpsumGeneratorToolViewModel(ISettingsProvider settingsProvider, IMarketingService marketingService)+ {+ _settingsProvider = settingsProvider;+ _marketingService = marketingService;++ QueueGeneration();+ }++ private void QueueGeneration()+ {+ _generationQueue.Enqueue((LoremIpsumType, LoremIpsumLength));+ TreatQueueAsync().Forget();+ }++ private async Task TreatQueueAsync()+ {+ if (_generationInProgress)+ {+ return;+ }++ _generationInProgress = true;++ await TaskScheduler.Default;++ while (_generationQueue.TryDequeue(out (string Type, int Length) options))+ {+ string output = GenerateLipsum(options.Type, options.Length);++ ThreadHelper.RunOnUIThreadAsync(() =>+ {+ Output = output;++ if (!_toolSuccessfullyWorked)+ {+ _toolSuccessfullyWorked = true;+ _marketingService.NotifyToolSuccessfullyWorked();+ }+ }).ForgetSafely();+ }++ _generationInProgress = false;+ }++ private string GenerateLipsum(string type, int length)+ {+ if (length <= 0)+ {+ return string.Empty;+ }++ var generator = new LipsumGenerator();++ switch (type)+ {+ case WordsType:+ string[] words = generator.GenerateWords(length);+ words[0] = CultureInfo.InvariantCulture.TextInfo.ToTitleCase(words[0]);+ return string.Join(' ', words);+ case SentencesType:+ return string.Join(' ', generator.GenerateSentences(length, Sentence.Medium));+ case ParagraphsType:+ return string.Join($"{Environment.NewLine}{Environment.NewLine}",+ generator.GenerateParagraphs(length, Paragraph.Medium));+ default:+ return string.Empty;+ }+ }+ }+}diff --git a/src/dev/impl/DevToys/Views/Tools/LoremIpsumGenerator/LoremIpsumGeneratorToolPage.xaml b/src/dev/impl/DevToys/Views/Tools/LoremIpsumGenerator/LoremIpsumGeneratorToolPage.xamlnew file mode 100644index 000000000..8abe609dd--- /dev/null+++ b/src/dev/impl/DevToys/Views/Tools/LoremIpsumGenerator/LoremIpsumGeneratorToolPage.xaml@@ -0,0 +1,70 @@+<Page+ x:Class="DevToys.Views.Tools.LoremIpsumGenerator.LoremIpsumGeneratorToolPage"+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"+ xmlns:controls="using:DevToys.UI.Controls"+ xmlns:ex="using:DevToys.UI.Extensions"+ xmlns:muxc="using:Microsoft.UI.Xaml.Controls"+ mc:Ignorable="d"+ NavigationCacheMode="Required">++ <Grid Margin="0,0,0,16" RowSpacing="12">+ <Grid.ChildrenTransitions>+ <TransitionCollection>+ <EntranceThemeTransition IsStaggeringEnabled="True" FromVerticalOffset="50"/>+ </TransitionCollection>+ </Grid.ChildrenTransitions>++ <Grid.RowDefinitions>+ <RowDefinition Height="Auto"/>+ <RowDefinition Height="*"/>+ </Grid.RowDefinitions>++ <StackPanel Grid.Row="0" Spacing="4">+ <TextBlock Style="{StaticResource SubTitleTextBlock}" Text="{x:Bind ViewModel.Strings.Configuration}"></TextBlock>++ <controls:ExpandableSettingControl+ TabIndex="0"+ Title="{x:Bind ViewModel.Strings.TypeTitle}"+ Description="{x:Bind ViewModel.Strings.TypeDescription}">+ <controls:ExpandableSettingControl.Icon>+ <FontIcon Glyph="2"/>+ </controls:ExpandableSettingControl.Icon>+ <ComboBox+ SelectedValuePath="Tag"+ SelectedValue="{x:Bind ViewModel.LoremIpsumType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">+ <ComboBoxItem Tag="Words" Content="{x:Bind ViewModel.Strings.WordsType}" />+ <ComboBoxItem Tag="Sentences" Content="{x:Bind ViewModel.Strings.SentencesType}" />+ <ComboBoxItem Tag="Paragraphs" Content="{x:Bind ViewModel.Strings.ParagraphsType}" />+ </ComboBox>+ </controls:ExpandableSettingControl>+ <controls:ExpandableSettingControl+ TabIndex="0"+ Title="{x:Bind ViewModel.Strings.LengthTitle}"+ Description="{x:Bind ViewModel.Strings.LengthDescription}">+ <controls:ExpandableSettingControl.Icon>+ <FontIcon Glyph="Ɗ"/>+ </controls:ExpandableSettingControl.Icon>+ <muxc:NumberBox+ Minimum="1"+ SmallChange="1"+ LargeChange="5"+ SpinButtonPlacementMode="Compact"+ Value="{x:Bind ViewModel.LoremIpsumLength, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>+ </controls:ExpandableSettingControl>+ </StackPanel>++ <controls:CustomTextBox+ x:Name="OutputTextBox"+ Grid.Row="1"+ TabIndex="3"+ Header="{x:Bind ViewModel.Strings.Output}"+ MinHeight="150"+ AcceptsReturn="True"+ IsReadOnly="True"+ CanClearWhenReadOnly="True"+ Text="{x:Bind ViewModel.Output, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></controls:CustomTextBox>+ </Grid>+</Page>diff --git a/src/dev/impl/DevToys/Views/Tools/LoremIpsumGenerator/LoremIpsumGeneratorToolPage.xaml.cs b/src/dev/impl/DevToys/Views/Tools/LoremIpsumGenerator/LoremIpsumGeneratorToolPage.xaml.csnew file mode 100644index 000000000..3f3864a6d--- /dev/null+++ b/src/dev/impl/DevToys/Views/Tools/LoremIpsumGenerator/LoremIpsumGeneratorToolPage.xaml.cs@@ -0,0 +1,52 @@+#nullable enable++using System;+using System.Collections.Generic;+using System.Linq;+using System.Text;+using System.Threading.Tasks;+using Windows.UI.Xaml;+using Windows.UI.Xaml.Controls;+using Windows.UI.Xaml.Navigation;+using DevToys.Api.Core.Navigation;+using DevToys.Shared.Core;+using DevToys.ViewModels.Tools.LoremIpsumGenerator;++namespace DevToys.Views.Tools.LoremIpsumGenerator+{+ public sealed partial class LoremIpsumGeneratorToolPage : Page+ {+ public static readonly DependencyProperty ViewModelProperty+ = DependencyProperty.Register(+ nameof(ViewModel),+ typeof(LoremIpsumGeneratorToolViewModel),+ typeof(LoremIpsumGeneratorToolPage),+ new PropertyMetadata(null));++ public LoremIpsumGeneratorToolViewModel ViewModel+ {+ get => (LoremIpsumGeneratorToolViewModel)GetValue(ViewModelProperty);+ set => SetValue(ViewModelProperty, value);+ }++ public LoremIpsumGeneratorToolPage()+ {+ 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 = (LoremIpsumGeneratorToolViewModel)parameters.ViewModel!;+ DataContext = ViewModel;+ }++ base.OnNavigatedTo(e);+ }+ }+}