added localization strings for settings.

This commit is contained in:
morkt
2018-01-12 19:56:25 +04:00
parent 3e6645a336
commit c3f4343558
21 changed files with 243 additions and 21 deletions

View File

@@ -135,7 +135,7 @@
<MenuItem Header="{x:Static s:guiStrings.MenuExit}" Command="{x:Static local:Commands.Exit}" InputGestureText="Ctrl+Q"/>
</MenuItem>
<MenuItem Header="{x:Static s:guiStrings.MenuView}">
<MenuItem Header="Preferences" InputGestureText="Ctrl+P"
<MenuItem Header="{x:Static s:guiStrings.MenuPreferences}" InputGestureText="Ctrl+P"
Command="{x:Static local:Commands.Preferences}"/>
<Separator/>
<MenuItem Header="{x:Static s:guiStrings.MenuFitWindow}" InputGestureText="Ctrl+H"

View File

@@ -25,10 +25,10 @@ IN THE SOFTWARE.
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:GARbro.GUI.Strings"
xmlns:local="clr-namespace:GARbro.GUI"
Title="Settings" ShowInTaskbar="False" ResizeMode="NoResize"
Title="{x:Static s:guiStrings.TextPreferences}" ShowInTaskbar="False" ResizeMode="NoResize"
FocusManager.FocusedElement="{Binding ElementName=SectionsPane}"
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
Height="400" Width="400" WindowStartupLocation="CenterOwner">
Height="400" Width="500" WindowStartupLocation="CenterOwner">
<Window.Resources>
<LinearGradientBrush x:Key="SectionTitleBackground" StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#FFA0A0FF" Offset="0"/>
@@ -155,7 +155,7 @@ IN THE SOFTWARE.
<StackPanel DockPanel.Dock="Bottom" Margin="0,10,0,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
<Button Width="75" Height="25" Margin="0,0,10,0" Content="{x:Static s:guiStrings.ButtonOK}" IsDefault="True" Click="Button_ClickOk"/>
<Button Width="75" Height="25" Margin="0,0,10,0" Content="{x:Static s:guiStrings.ButtonCancel}" IsCancel="True"/>
<Button Width="75" Height="25" Margin="0" Content="Apply" Click="Button_ClickApply" IsEnabled="{Binding HasChanges}"/>
<Button Width="75" Height="25" Margin="0" Content="{x:Static s:guiStrings.ButtonApply}" Click="Button_ClickApply" IsEnabled="{Binding HasChanges}"/>
</StackPanel>
<TreeView x:Name="SectionsPane" DockPanel.Dock="Left" Padding="4" ItemsSource="{Binding Root}"
TreeViewItem.Selected="OnSectionChanged">

View File

@@ -31,6 +31,7 @@ using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using GameRes;
using GARbro.GUI.Strings;
namespace GARbro.GUI
{
@@ -85,7 +86,7 @@ namespace GARbro.GUI
{
SettingsSectionView[] list = {
new SettingsSectionView {
Label = "Formats",
Label = guiStrings.TextFormats,
Children = EnumerateFormatsSettings(),
Panel = (UIElement)this.Resources["FormatsPanel"]
},
@@ -124,7 +125,7 @@ namespace GARbro.GUI
{
var section = new SettingsSectionView {
Label = format.Tag,
SectionTitle = "Formats :: "+format.Tag,
SectionTitle = guiStrings.TextFormats+" :: "+format.Tag,
Panel = pane
};
list.Add (section);

View File

@@ -69,6 +69,15 @@ namespace GARbro.GUI.Strings {
}
}
/// <summary>
/// Looks up a localized string similar to Apply.
/// </summary>
public static string ButtonApply {
get {
return ResourceManager.GetString("ButtonApply", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
@@ -546,6 +555,15 @@ namespace GARbro.GUI.Strings {
}
}
/// <summary>
/// Looks up a localized string similar to _Preferences.
/// </summary>
public static string MenuPreferences {
get {
return ResourceManager.GetString("MenuPreferences", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Recent files.
/// </summary>
@@ -1165,6 +1183,15 @@ namespace GARbro.GUI.Strings {
}
}
/// <summary>
/// Looks up a localized string similar to Formats.
/// </summary>
public static string TextFormats {
get {
return ResourceManager.GetString("TextFormats", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Multimedia conversion error.
/// </summary>
@@ -1192,6 +1219,15 @@ namespace GARbro.GUI.Strings {
}
}
/// <summary>
/// Looks up a localized string similar to Preferences.
/// </summary>
public static string TextPreferences {
get {
return ResourceManager.GetString("TextPreferences", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Save as.
/// </summary>

View File

@@ -529,4 +529,36 @@
<data name="TextVisitPage" xml:space="preserve">
<value>다운로드 페이지 방문</value>
</data>
</root>
<data name="ButtonApply" xml:space="preserve">
<value>Apply</value>
<comment>translation pending</comment>
</data>
<data name="MenuPreferences" xml:space="preserve">
<value>Preferences</value>
<comment>translation pending</comment>
</data>
<data name="TextFormats" xml:space="preserve">
<value>Formats</value>
<comment>translation pending</comment>
</data>
<data name="TextPreferences" xml:space="preserve">
<value>Preferences</value>
<comment>translation pending</comment>
</data>
<data name="Type_archive" xml:space="preserve">
<value>archive</value>
<comment>translation pending</comment>
</data>
<data name="Type_audio" xml:space="preserve">
<value>audio</value>
<comment>translation pending</comment>
</data>
<data name="Type_image" xml:space="preserve">
<value>image</value>
<comment>translation pending</comment>
</data>
<data name="Type_script" xml:space="preserve">
<value>script</value>
<comment>translation pending</comment>
</data>
</root>

View File

@@ -533,4 +533,16 @@ Overwrite?</value>
<data name="MsgDownloadFailed" xml:space="preserve">
<value>Update download failed.</value>
</data>
<data name="ButtonApply" xml:space="preserve">
<value>Apply</value>
</data>
<data name="MenuPreferences" xml:space="preserve">
<value>_Preferences</value>
</data>
<data name="TextFormats" xml:space="preserve">
<value>Formats</value>
</data>
<data name="TextPreferences" xml:space="preserve">
<value>Preferences</value>
</data>
</root>

View File

@@ -554,4 +554,16 @@
<data name="TextVisitPage" xml:space="preserve">
<value>Перейти на страницу загрузки</value>
</data>
<data name="ButtonApply" xml:space="preserve">
<value>Применить</value>
</data>
<data name="MenuPreferences" xml:space="preserve">
<value>Настройки</value>
</data>
<data name="TextFormats" xml:space="preserve">
<value>Форматы</value>
</data>
<data name="TextPreferences" xml:space="preserve">
<value>Настройки</value>
</data>
</root>

View File

@@ -530,4 +530,36 @@
<data name="TextVisitPage" xml:space="preserve">
<value>访问下载页面</value>
</data>
<data name="ButtonApply" xml:space="preserve">
<value>Apply</value>
<comment>translation pending</comment>
</data>
<data name="MenuPreferences" xml:space="preserve">
<value>Preferences</value>
<comment>translation pending</comment>
</data>
<data name="TextFormats" xml:space="preserve">
<value>Formats</value>
<comment>translation pending</comment>
</data>
<data name="TextPreferences" xml:space="preserve">
<value>Preferences</value>
<comment>translation pending</comment>
</data>
<data name="Type_archive" xml:space="preserve">
<value>archive</value>
<comment>translation pending</comment>
</data>
<data name="Type_audio" xml:space="preserve">
<value>audio</value>
<comment>translation pending</comment>
</data>
<data name="Type_image" xml:space="preserve">
<value>image</value>
<comment>translation pending</comment>
</data>
<data name="Type_script" xml:space="preserve">
<value>script</value>
<comment>translation pending</comment>
</data>
</root>