mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Strings translations and warning box
This commit is contained in:
parent
61aca74096
commit
74167a91e3
3 changed files with 27 additions and 12 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
<!-- Dialogues -->
|
||||
<system:String x:Key="plugin_explorer_make_selection_warning">Please make a selection first</system:String>
|
||||
<system:String x:Key="plugin_explorer_quick_access_link_no_folder_selected">Please select path folder</system:String>
|
||||
<system:String x:Key="plugin_explorer_select_folder_link_warning">Please select a folder link</system:String>
|
||||
<system:String x:Key="plugin_explorer_delete_folder_link">Are you sure you want to delete {0}?</system:String>
|
||||
<system:String x:Key="plugin_explorer_deletefileconfirm">Are you sure you want to permanently delete this file?</system:String>
|
||||
|
|
@ -27,6 +28,9 @@
|
|||
<system:String x:Key="plugin_explorer_add">Add</system:String>
|
||||
<system:String x:Key="plugin_explorer_generalsetting_header">General Setting</system:String>
|
||||
<system:String x:Key="plugin_explorer_manageactionkeywords_header">Customise Action Keywords</system:String>
|
||||
<system:String x:Key="plugin_explorer_manage_quick_access_links_header">Customise Quick Access</system:String>
|
||||
<system:String x:Key="plugin_explorer_manage_quick_access_addr">Add</system:String>
|
||||
|
||||
<system:String x:Key="plugin_explorer_quickaccesslinks_header">Quick Access Links</system:String>
|
||||
<system:String x:Key="plugin_explorer_everything_setting_header">Everything Setting</system:String>
|
||||
<system:String x:Key="plugin_explorer_previewpanel_setting_header">Preview Panel</system:String>
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
Margin="0 0 0 0"
|
||||
FontSize="20"
|
||||
FontWeight="SemiBold"
|
||||
Text="{DynamicResource plugin_explorer_manageactionkeywords_header}"
|
||||
Text="{DynamicResource plugin_explorer_manage_quick_access_links_header}"
|
||||
TextAlignment="Left" />
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0 10 0 0" Orientation="Horizontal">
|
||||
|
|
@ -71,11 +71,12 @@
|
|||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="14"
|
||||
Text="{DynamicResource plugin_explorer_actionkeyword_current}" />
|
||||
Text="{DynamicResource plugin_explorer_name}" />
|
||||
<TextBox
|
||||
Width="135"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10 0 0 0"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="12"
|
||||
Width="250"
|
||||
Text="{Binding SelectedName, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
|
||||
|
|
@ -86,23 +87,23 @@
|
|||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="14"
|
||||
Text="Path:" />
|
||||
Text="{DynamicResource plugin_explorer_path}" />
|
||||
|
||||
<TextBlock
|
||||
|
||||
<TextBox
|
||||
Margin="10 0 0 0"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="12"
|
||||
Width="250"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Text="{Binding SelectedPath, Mode=OneWay}" />
|
||||
|
||||
Text="{Binding SelectedPath, Mode=TwoWay}"
|
||||
IsReadOnly="True" />
|
||||
<Button
|
||||
Width="80"
|
||||
Height="25"
|
||||
Height="Auto"
|
||||
Margin="10 0 0 0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Content="Adicionar"
|
||||
Content="{DynamicResource select}"
|
||||
Click="SelectPath_OnClick" />
|
||||
</StackPanel>
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,11 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
|
|||
private string _selectedName;
|
||||
public string SelectedName
|
||||
{
|
||||
get => _selectedName;
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(_selectedName)) return GetPathName();
|
||||
return _selectedName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (_selectedName != value)
|
||||
|
|
@ -60,6 +64,12 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
|
|||
|
||||
private void OnDoneButtonClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(SelectedName) && string.IsNullOrEmpty(SelectedPath))
|
||||
{
|
||||
var warning = Main.Context.API.GetTranslation("plugin_explorer_quick_access_link_no_folder_selected");
|
||||
Main.Context.API.ShowMsgBox(warning);
|
||||
return;
|
||||
}
|
||||
var container = Settings.QuickAccessLinks;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue