mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
translate WorkDirectorySelectorDialog
This commit is contained in:
parent
40ab426052
commit
9db54e8060
|
@ -6,12 +6,15 @@
|
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:ui="http://schemas.modernwpf.com/2019"
|
||||
xmlns:l="https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension"
|
||||
l:LocalizeDictionary.DesignCulture=""
|
||||
l:ResxLocalizationProvider.DefaultAssembly="BililiveRecorder.WPF"
|
||||
l:ResxLocalizationProvider.DefaultDictionary="Strings"
|
||||
xmlns:local="clr-namespace:BililiveRecorder.WPF.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DataContext="{d:DesignInstance Type=local:WorkDirectorySelectorDialog}"
|
||||
PrimaryButtonText="确定"
|
||||
DefaultButton="Primary"
|
||||
CloseButtonText="退出">
|
||||
PrimaryButtonText="{l:Loc Global_Confirm}"
|
||||
CloseButtonText="{l:Loc Global_Quit}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
|
@ -20,7 +23,7 @@
|
|||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="选择工作目录" TextAlignment="Center" FontSize="26"/>
|
||||
<TextBlock Text="{l:Loc WorkDirectorySelector_Title}" TextAlignment="Center" FontSize="26" Width="300"/>
|
||||
<Menu VerticalAlignment="Center" HorizontalAlignment="Right">
|
||||
<MenuItem>
|
||||
<MenuItem.Header>
|
||||
|
@ -38,9 +41,9 @@
|
|||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox VerticalAlignment="Center" FontSize="14" Text="{Binding Path, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Button Grid.Column="1" Click="Button_Click">浏览...</Button>
|
||||
<TextBox VerticalAlignment="Center" FontSize="14" Text="{Binding Path, UpdateSourceTrigger=PropertyChanged}"
|
||||
ui:TextBoxHelper.IsDeleteButtonVisible="False"/>
|
||||
<Button Grid.Column="1" Click="Button_Click" Content="{l:Loc WorkDirectorySelector_Browse}"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</ui:ContentDialog>
|
||||
|
|
36
BililiveRecorder.WPF/Properties/Strings.Designer.cs
generated
36
BililiveRecorder.WPF/Properties/Strings.Designer.cs
generated
|
@ -60,6 +60,24 @@ namespace BililiveRecorder.WPF.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 确定.
|
||||
/// </summary>
|
||||
public static string Global_Confirm {
|
||||
get {
|
||||
return ResourceManager.GetString("Global_Confirm", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 退出.
|
||||
/// </summary>
|
||||
public static string Global_Quit {
|
||||
get {
|
||||
return ResourceManager.GetString("Global_Quit", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to B站录播姬 {0}.
|
||||
/// </summary>
|
||||
|
@ -68,5 +86,23 @@ namespace BililiveRecorder.WPF.Properties {
|
|||
return ResourceManager.GetString("Window_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 浏览....
|
||||
/// </summary>
|
||||
public static string WorkDirectorySelector_Browse {
|
||||
get {
|
||||
return ResourceManager.GetString("WorkDirectorySelector_Browse", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to 选择工作目录.
|
||||
/// </summary>
|
||||
public static string WorkDirectorySelector_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("WorkDirectorySelector_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,6 +117,18 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Global_Confirm" xml:space="preserve">
|
||||
<value>Confirm</value>
|
||||
</data>
|
||||
<data name="Global_Quit" xml:space="preserve">
|
||||
<value>Quit</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Title" xml:space="preserve">
|
||||
<value>Select Directory</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Browse" xml:space="preserve">
|
||||
<value>Browse...</value>
|
||||
</data>
|
||||
<data name="Window_Title" xml:space="preserve">
|
||||
<value>BililiveRecorder {0}</value>
|
||||
</data>
|
||||
|
|
|
@ -117,6 +117,18 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Global_Confirm" xml:space="preserve">
|
||||
<value>決定する</value>
|
||||
</data>
|
||||
<data name="Global_Quit" xml:space="preserve">
|
||||
<value>終了</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Title" xml:space="preserve">
|
||||
<value>フォルダーを選択</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Browse" xml:space="preserve">
|
||||
<value>ブラウズ...</value>
|
||||
</data>
|
||||
<data name="Window_Title" xml:space="preserve">
|
||||
<value>ビリビリ録画機 {0}</value>
|
||||
</data>
|
||||
|
|
|
@ -97,6 +97,18 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Global_Confirm" xml:space="preserve">
|
||||
<value>确定</value>
|
||||
</data>
|
||||
<data name="Global_Quit" xml:space="preserve">
|
||||
<value>退出</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Title" xml:space="preserve">
|
||||
<value>选择工作目录</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Browse" xml:space="preserve">
|
||||
<value>浏览...</value>
|
||||
</data>
|
||||
<data name="Window_Title" xml:space="preserve">
|
||||
<value>B站录播姬 {0}</value>
|
||||
|
||||
|
|
|
@ -117,6 +117,18 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Global_Confirm" xml:space="preserve">
|
||||
<value>確定</value>
|
||||
</data>
|
||||
<data name="Global_Quit" xml:space="preserve">
|
||||
<value>退出</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Title" xml:space="preserve">
|
||||
<value>選擇工作目錄</value>
|
||||
</data>
|
||||
<data name="WorkDirectorySelector_Browse" xml:space="preserve">
|
||||
<value>瀏覽...</value>
|
||||
</data>
|
||||
<data name="Window_Title" xml:space="preserve">
|
||||
<value>B站錄播姬 {0}</value>
|
||||
</data>
|
||||
|
|
Loading…
Reference in New Issue
Block a user