Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Languages/lang_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,9 @@
"List": "List",
"Grid": "Grid",
"Icons": "Icons",
"Search package managers": "Search package managers",
"Search settings": "Search settings",
"Settings JSON": "Settings JSON",
"\"{0}\" is a local package and does not have available details": "\"{0}\" is a local package and does not have available details",
"\"{0}\" is a local package and is not compatible with this feature": "\"{0}\" is a local package and is not compatible with this feature",
"Add packages to bundle": "Add packages to bundle",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private async Task ImportSettings(Visual? visual)
var files = await topLevel.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
{
AllowMultiple = false,
FileTypeFilter = [new FilePickerFileType("Settings JSON") { Patterns = ["*.json"] }],
FileTypeFilter = [new FilePickerFileType(CoreTools.Translate("Settings JSON")) { Patterns = ["*.json"] }],
});
if (files is not [{ } file]) return;
var path = file.TryGetLocalPath();
Expand Down Expand Up @@ -67,7 +67,7 @@ private static async Task ExportSettings(Visual? visual)
var file = await topLevel.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
{
SuggestedFileName = CoreTools.Translate("UniGetUI Settings") + ".json",
FileTypeChoices = [new FilePickerFileType("Settings JSON") { Patterns = ["*.json"] }],
FileTypeChoices = [new FilePickerFileType(CoreTools.Translate("Settings JSON")) { Patterns = ["*.json"] }],
});
if (file is null) return;
var path = file.TryGetLocalPath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
Content="{t:Translate Close}"
MinWidth="90"
HorizontalAlignment="Right"
HorizontalContentAlignment="Center"
Classes="accent"
automation:AutomationProperties.Name="{t:Translate Close}"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1246,8 +1246,8 @@
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBoxItem x:Name="Selector_List" Classes="segment-item" Padding="8,4,8,8" ToolTip.Tip="List"
automation:AutomationProperties.Name="List">
<ListBoxItem x:Name="Selector_List" Classes="segment-item" Padding="8,4,8,8" ToolTip.Tip="{t:Translate List}"
automation:AutomationProperties.Name="{t:Translate List}">
<Viewbox Width="18" Height="18" automation:AutomationProperties.AccessibilityView="Raw">
<Grid Width="16" Height="16">
<!-- bullets -->
Expand All @@ -1264,8 +1264,8 @@
</Grid>
</Viewbox>
</ListBoxItem>
<ListBoxItem x:Name="Selector_Grid" Classes="segment-item" Padding="8,4,8,8" ToolTip.Tip="Grid"
automation:AutomationProperties.Name="Grid">
<ListBoxItem x:Name="Selector_Grid" Classes="segment-item" Padding="8,4,8,8" ToolTip.Tip="{t:Translate Grid}"
automation:AutomationProperties.Name="{t:Translate Grid}">
<!-- Two rows: open "[" bracket on the left + two stacked lines on the right -->
<Viewbox Width="18" Height="18" automation:AutomationProperties.AccessibilityView="Raw">
<Path Width="16" Height="16"
Expand All @@ -1278,8 +1278,8 @@
Fill="Transparent"/>
</Viewbox>
</ListBoxItem>
<ListBoxItem x:Name="Selector_Icons" Classes="segment-item" Padding="8,4,8,8" ToolTip.Tip="Icons"
automation:AutomationProperties.Name="Icons">
<ListBoxItem x:Name="Selector_Icons" Classes="segment-item" Padding="8,4,8,8" ToolTip.Tip="{t:Translate Icons}"
automation:AutomationProperties.Name="{t:Translate Icons}">
<!-- 2x2 hollow squares (WinUI IconView) with extra gap between -->
<Viewbox Width="18" Height="18" automation:AutomationProperties.AccessibilityView="Raw">
<Path Width="16" Height="16"
Expand Down
Loading