Skip to content

A Swiss Army knife for developers.

Localized strings

Etienne Baudoux6314f40b4ac0
diff --git a/src/dev/impl/DevTools.Common/LanguageManager.cs b/src/dev/impl/DevTools.Common/LanguageManager.cs
index 78c2f79e4..fc83661e7 100644
--- a/src/dev/impl/DevTools.Common/LanguageManager.cs
+++ b/src/dev/impl/DevTools.Common/LanguageManager.cs
@@ -115,6 +115,11 @@ namespace DevTools.Common
{
private readonly ResourceLoader _resources = ResourceLoader.GetForViewIndependentUse("DevTools.Common/Base64EncoderDecoder");
+ /// <summary>
+ /// Gets the resource Ascii.
+ /// </summary>
+ public string Ascii => _resources.GetString("Ascii");
+
/// <summary>
/// Gets the resource ConfigurationTitle.
/// </summary>
@@ -164,6 +169,11 @@ namespace DevTools.Common
/// Gets the resource OutputTitle.
/// </summary>
public string OutputTitle => _resources.GetString("OutputTitle");
+
+ /// <summary>
+ /// Gets the resource Utf8.
+ /// </summary>
+ public string Utf8 => _resources.GetString("Utf8");
}
public class CommonStrings : ObservableObject
@@ -284,6 +294,36 @@ namespace DevTools.Common
/// Gets the resource DisplayName.
/// </summary>
public string DisplayName => _resources.GetString("DisplayName");
+
+ /// <summary>
+ /// Gets the resource FourSpaces.
+ /// </summary>
+ public string FourSpaces => _resources.GetString("FourSpaces");
+
+ /// <summary>
+ /// Gets the resource Input.
+ /// </summary>
+ public string Input => _resources.GetString("Input");
+
+ /// <summary>
+ /// Gets the resource Minified.
+ /// </summary>
+ public string Minified => _resources.GetString("Minified");
+
+ /// <summary>
+ /// Gets the resource OneTab.
+ /// </summary>
+ public string OneTab => _resources.GetString("OneTab");
+
+ /// <summary>
+ /// Gets the resource Output.
+ /// </summary>
+ public string Output => _resources.GetString("Output");
+
+ /// <summary>
+ /// Gets the resource TwoSpaces.
+ /// </summary>
+ public string TwoSpaces => _resources.GetString("TwoSpaces");
}
public class MainPageStrings : ObservableObject
@@ -337,6 +377,16 @@ namespace DevTools.Common
/// Gets the resource DisplayName.
/// </summary>
public string DisplayName => _resources.GetString("DisplayName");
+
+ /// <summary>
+ /// Gets the resource RegularExpression.
+ /// </summary>
+ public string RegularExpression => _resources.GetString("RegularExpression");
+
+ /// <summary>
+ /// Gets the resource Text.
+ /// </summary>
+ public string Text => _resources.GetString("Text");
}
public class SettingsStrings : ObservableObject
diff --git a/src/dev/impl/DevTools.Common/Strings/en/Base64EncoderDecoder.resw b/src/dev/impl/DevTools.Common/Strings/en/Base64EncoderDecoder.resw
index a68f6994f..cbe6cf9ea 100644
--- a/src/dev/impl/DevTools.Common/Strings/en/Base64EncoderDecoder.resw
+++ b/src/dev/impl/DevTools.Common/Strings/en/Base64EncoderDecoder.resw
@@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
+ <data name="Ascii" xml:space="preserve">
+ <value>ASCII</value>
+ </data>
<data name="ConfigurationTitle" xml:space="preserve">
<value>Configuration</value>
</data>
@@ -147,4 +150,7 @@
<data name="OutputTitle" xml:space="preserve">
<value>Output</value>
</data>
+ <data name="Utf8" xml:space="preserve">
+ <value>UTF-8</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevTools.Common/Strings/en/JsonFormatter.resw b/src/dev/impl/DevTools.Common/Strings/en/JsonFormatter.resw
index 7a03270c2..eb391265c 100644
--- a/src/dev/impl/DevTools.Common/Strings/en/JsonFormatter.resw
+++ b/src/dev/impl/DevTools.Common/Strings/en/JsonFormatter.resw
@@ -123,4 +123,22 @@
<data name="DisplayName" xml:space="preserve">
<value>Json Formatter</value>
</data>
+ <data name="FourSpaces" xml:space="preserve">
+ <value>4 spaces</value>
+ </data>
+ <data name="Input" xml:space="preserve">
+ <value>Input</value>
+ </data>
+ <data name="Minified" xml:space="preserve">
+ <value>Minified</value>
+ </data>
+ <data name="OneTab" xml:space="preserve">
+ <value>1 tab</value>
+ </data>
+ <data name="Output" xml:space="preserve">
+ <value>Output</value>
+ </data>
+ <data name="TwoSpaces" xml:space="preserve">
+ <value>2 spaces</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevTools.Common/Strings/en/RegEx.resw b/src/dev/impl/DevTools.Common/Strings/en/RegEx.resw
index 1ce2d7718..67fc5511b 100644
--- a/src/dev/impl/DevTools.Common/Strings/en/RegEx.resw
+++ b/src/dev/impl/DevTools.Common/Strings/en/RegEx.resw
@@ -120,4 +120,10 @@
<data name="DisplayName" xml:space="preserve">
<value>Regex Tester</value>
</data>
+ <data name="RegularExpression" xml:space="preserve">
+ <value>Regular expression</value>
+ </data>
+ <data name="Text" xml:space="preserve">
+ <value>Text</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevTools.Providers.Impl/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml b/src/dev/impl/DevTools.Providers.Impl/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml
index c8ffe8948..ac50d396d 100644
--- a/src/dev/impl/DevTools.Providers.Impl/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml
+++ b/src/dev/impl/DevTools.Providers.Impl/Tools/Base64EncoderDecoder/Base64EncoderDecoderToolPage.xaml
@@ -56,8 +56,8 @@
<ComboBox
SelectedValuePath="Tag"
SelectedValue="{x:Bind ViewModel.EncodingMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
- <ComboBoxItem Tag="UTF-8" Content="UTF-8" />
- <ComboBoxItem Tag="ASCII" Content="ASCII" />
+ <ComboBoxItem Tag="UTF-8" Content="{x:Bind ViewModel.Strings.Utf8}" />
+ <ComboBoxItem Tag="ASCII" Content="{x:Bind ViewModel.Strings.Ascii}" />
</ComboBox>
</controls:ExpandableSettingControl>
</StackPanel>
diff --git a/src/dev/impl/DevTools.Providers.Impl/Tools/JsonFormatter/JsonFormatterToolPage.xaml b/src/dev/impl/DevTools.Providers.Impl/Tools/JsonFormatter/JsonFormatterToolPage.xaml
index 2e4260e45..a4c469c03 100644
--- a/src/dev/impl/DevTools.Providers.Impl/Tools/JsonFormatter/JsonFormatterToolPage.xaml
+++ b/src/dev/impl/DevTools.Providers.Impl/Tools/JsonFormatter/JsonFormatterToolPage.xaml
@@ -33,10 +33,10 @@
<ComboBox
SelectedValuePath="Tag"
SelectedValue="{x:Bind ViewModel.Indentation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
- <ComboBoxItem Tag="TwoSpaces" Content="2 spaces"/>
- <ComboBoxItem Tag="FourSpaces" Content="4 spaces"/>
- <ComboBoxItem Tag="OneTab" Content="1 tab"/>
- <ComboBoxItem Tag="Minified" Content="Minified"/>
+ <ComboBoxItem Tag="TwoSpaces" Content="{x:Bind ViewModel.Strings.TwoSpaces}"/>
+ <ComboBoxItem Tag="FourSpaces" Content="{x:Bind ViewModel.Strings.FourSpaces}"/>
+ <ComboBoxItem Tag="OneTab" Content="{x:Bind ViewModel.Strings.OneTab}"/>
+ <ComboBoxItem Tag="Minified" Content="{x:Bind ViewModel.Strings.Minified}"/>
</ComboBox>
</controls:ExpandableSettingControl>
</StackPanel>
@@ -50,7 +50,7 @@
<texteditor:TextEditor
Grid.Column="0"
- Header="Input"
+ Header="{x:Bind ViewModel.Strings.Input}"
SettingsProvider="{x:Bind ViewModel.SettingsProvider}"
Text="{x:Bind ViewModel.InputValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
@@ -70,7 +70,7 @@
<formattedtextblock:FormattedTextBlock
x:Name="OutputTextBlock"
Grid.Column="2"
- Header="Output"
+ Header="{x:Bind ViewModel.Strings.Output}"
SettingsProvider="{x:Bind ViewModel.SettingsProvider}"/>
</Grid>
</Grid>
diff --git a/src/dev/impl/DevTools.Providers.Impl/Tools/RegEx/RegExToolPage.xaml b/src/dev/impl/DevTools.Providers.Impl/Tools/RegEx/RegExToolPage.xaml
index 90e73a493..8d5365934 100644
--- a/src/dev/impl/DevTools.Providers.Impl/Tools/RegEx/RegExToolPage.xaml
+++ b/src/dev/impl/DevTools.Providers.Impl/Tools/RegEx/RegExToolPage.xaml
@@ -22,13 +22,13 @@
<controls:CustomTextBox
Grid.Row="0"
- Header="Regular expression"
+ Header="{x:Bind ViewModel.Strings.RegularExpression}"
Text="{x:Bind ViewModel.RegularExpression, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<controls:CustomTextBox
x:Name="MatchTextBox"
Grid.Row="1"
- Header="Text"
+ Header="{x:Bind ViewModel.Strings.Text}"
AcceptsReturn="True"
IsRichTextEdit="True"
Text="{x:Bind ViewModel.Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>