Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Thai toolbar tab names, accessible name for the tab row

KnifeLemon9e872f055d19
diff --git a/src/Filee.App/Assets/i18n/th.json b/src/Filee.App/Assets/i18n/th.json
index dafee331..442f5563 100644
--- a/src/Filee.App/Assets/i18n/th.json
+++ b/src/Filee.App/Assets/i18n/th.json
@@ -404,6 +404,10 @@
"toolbar.face_hint": "พลิกโดนัทที่เปิดอยู่: {0}",
"toolbar.face_hint_wheel": "ล้อเมาส์",
"toolbar.face_hint_off": "เลือกปุ่มหรือล้อเมาส์ในหน้า ปุ่มลัด เพื่อใช้พลิกโดนัทที่เปิดอยู่",
+ "toolbar.tab.all": "ทั้งหมด",
+ "toolbar.tab.media": "วิดีโอและเสียง",
+ "toolbar.tab.edit": "แก้ไข",
+ "toolbar.tab.model3d_cad": "3D และ CAD",
"group.editor_title": "กลุ่ม",
"group.hint": "กลุ่มคือชิ้นโดนัทหนึ่งชิ้นสำหรับหลายพรีเซ็ต: วางเคอร์เซอร์แช่ไว้หรือเลื่อนออกด้านนอกแล้วพรีเซ็ตจะกางออกมารอบๆ",
"group.members": "พรีเซ็ต ({0} / {1})",
diff --git a/src/Filee.App/Views/Pages/ToolbarPage.axaml b/src/Filee.App/Views/Pages/ToolbarPage.axaml
index 95393fea..dbd3310b 100644
--- a/src/Filee.App/Views/Pages/ToolbarPage.axaml
+++ b/src/Filee.App/Views/Pages/ToolbarPage.axaml
@@ -392,6 +392,7 @@
<!-- Kinds of preset (All first). Hidden when one kind would only repeat All. Wraps rather than scrolls sideways. -->
<ListBox x:Name="PaletteTabs" ItemsSource="{Binding Tabs}" SelectedItem="{Binding SelectedTab}"
IsVisible="{Binding ShowTabRow}"
+ AutomationProperties.Name="{DynamicResource toolbar.available}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
diff --git a/tests/Filee.App.Tests/LocalizationTests.cs b/tests/Filee.App.Tests/LocalizationTests.cs
index ff159678..75f46248 100644
--- a/tests/Filee.App.Tests/LocalizationTests.cs
+++ b/tests/Filee.App.Tests/LocalizationTests.cs
@@ -67,7 +67,6 @@ public partial class LocalizationTests
"format.category.Archive",
"format.category.Font"
];
- string[] removed = ["toolbar.tab.document", "toolbar.tab.other"];
foreach (var language in LocalizationService.Languages)
{
@@ -77,9 +76,6 @@ public partial class LocalizationTests
Assert.True(translations.TryGetValue(key, out var value), $"{language.Code}:{key} is missing");
Assert.False(string.IsNullOrWhiteSpace(value), $"{language.Code}:{key} is empty");
}
-
- foreach (var key in removed)
- Assert.False(translations.ContainsKey(key), $"{language.Code}:{key} should be removed");
}
}