mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix translation of action keywords
This commit is contained in:
parent
b30ace993a
commit
230e4fbcbb
3 changed files with 10 additions and 7 deletions
|
|
@ -5,6 +5,7 @@
|
|||
xmlns:converters="clr-namespace:Flow.Launcher.Converters"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:flowlauncher="clr-namespace:Flow.Launcher"
|
||||
xmlns:core="clr-namespace:Flow.Launcher.Core.Resource;assembly=Flow.Launcher.Core"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
<converters:BorderClipConverter x:Key="BorderClipConverter" />
|
||||
<converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
||||
<converters:TextConverter x:Key="TextConverter" />
|
||||
<converters:TranlationConverter x:Key="TranslationConverter" />
|
||||
<core:TranslationConverter x:Key="TranslationConverter" />
|
||||
<CollectionViewSource x:Key="SortedFonts" Source="{Binding Source={x:Static Fonts.SystemFontFamilies}}">
|
||||
<CollectionViewSource.SortDescriptions>
|
||||
<scm:SortDescription PropertyName="Source" />
|
||||
|
|
|
|||
|
|
@ -112,15 +112,15 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels
|
|||
ActionKeywordsModels = new List<ActionKeywordModel>
|
||||
{
|
||||
new(Settings.ActionKeyword.SearchActionKeyword,
|
||||
Context.API.GetTranslation("plugin_explorer_actionkeywordview_search")),
|
||||
"plugin_explorer_actionkeywordview_search"),
|
||||
new(Settings.ActionKeyword.FileContentSearchActionKeyword,
|
||||
Context.API.GetTranslation("plugin_explorer_actionkeywordview_filecontentsearch")),
|
||||
"plugin_explorer_actionkeywordview_filecontentsearch"),
|
||||
new(Settings.ActionKeyword.PathSearchActionKeyword,
|
||||
Context.API.GetTranslation("plugin_explorer_actionkeywordview_pathsearch")),
|
||||
"plugin_explorer_actionkeywordview_pathsearch"),
|
||||
new(Settings.ActionKeyword.IndexSearchActionKeyword,
|
||||
Context.API.GetTranslation("plugin_explorer_actionkeywordview_indexsearch")),
|
||||
"plugin_explorer_actionkeywordview_indexsearch"),
|
||||
new(Settings.ActionKeyword.QuickAccessActionKeyword,
|
||||
Context.API.GetTranslation("plugin_explorer_actionkeywordview_quickaccess"))
|
||||
"plugin_explorer_actionkeywordview_quickaccess")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:converters="clr-namespace:Flow.Launcher.Plugin.Explorer.Views.Converters"
|
||||
xmlns:core="clr-namespace:Flow.Launcher.Core.Resource;assembly=Flow.Launcher.Core"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:qa="clr-namespace:Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks"
|
||||
|
|
@ -106,12 +107,13 @@
|
|||
<DataTemplate x:Key="ListViewTemplateAccessLinks" DataType="qa:AccessLink">
|
||||
<TextBlock Margin="0,5,0,5" Text="{Binding Path, Mode=OneTime}" />
|
||||
</DataTemplate>
|
||||
<core:TranslationConverter x:Key="TranslationConverter" />
|
||||
<DataTemplate x:Key="ListViewActionKeywords" DataType="{x:Type views:ActionKeywordModel}">
|
||||
<Grid>
|
||||
<TextBlock
|
||||
Margin="0,5,0,0"
|
||||
IsEnabled="{Binding Enabled}"
|
||||
Text="{Binding Description, Mode=OneTime}">
|
||||
Text="{Binding Description, Mode=OneTime, Converter={StaticResource TranslationConverter}}">
|
||||
<TextBlock.Style>
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Style.Triggers>
|
||||
|
|
|
|||
Loading…
Reference in a new issue