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.

Translate the Finder service title into Traditional Chinese

Louis2244ea541e78
diff --git a/installer/macos/Info.plist b/installer/macos/Info.plist
index 2966c7eb..36e2139d 100644
--- a/installer/macos/Info.plist
+++ b/installer/macos/Info.plist
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key><string>en</string>
- <key>CFBundleLocalizations</key><array><string>en</string><string>ko</string><string>zh-Hans</string></array>
+ <key>CFBundleLocalizations</key><array><string>en</string><string>ko</string><string>zh-Hans</string><string>zh-Hant</string></array>
<key>CFBundleIdentifier</key><string>com.filee.app</string>
<key>CFBundleName</key><string>Filee</string>
<key>CFBundleDisplayName</key><string>Filee</string>
@@ -15,7 +15,7 @@
<key>LSMinimumSystemVersion</key><string>13.0</string>
<key>NSHighResolutionCapable</key><true/>
<!-- "Convert with Filee" in Finder's right-click menu, answered by the running Filee (MacOSServicesProvider).
- ServicesMenu.strings in ko.lproj and zh-Hans.lproj translate the title. An empty NSRequiredContext keeps
+ ServicesMenu.strings in ko.lproj, zh-Hans.lproj and zh-Hant.lproj translate the title. An empty NSRequiredContext keeps
the service on by default. -->
<key>NSServices</key>
<array>
diff --git a/installer/macos/zh-Hant.lproj/ServicesMenu.strings b/installer/macos/zh-Hant.lproj/ServicesMenu.strings
new file mode 100644
index 00000000..9e1a9f3d
--- /dev/null
+++ b/installer/macos/zh-Hant.lproj/ServicesMenu.strings
@@ -0,0 +1,2 @@
+/* Finder's right-click menu: the title of Filee's service (NSServices in Info.plist). */
+"Convert with Filee" = "用 Filee 轉換";
diff --git a/tests/Filee.Platform.Tests/MacOSIntegrationTests.cs b/tests/Filee.Platform.Tests/MacOSIntegrationTests.cs
index 693000d4..40a92c46 100644
--- a/tests/Filee.Platform.Tests/MacOSIntegrationTests.cs
+++ b/tests/Filee.Platform.Tests/MacOSIntegrationTests.cs
@@ -37,7 +37,7 @@ public sealed class MacOSIntegrationTests
// Each translation names the same menu title.
foreach (var strings in Directory.GetFiles(installer, "ServicesMenu.strings", SearchOption.AllDirectories))
Assert.StartsWith($"\"{MacOSServicesProvider.MenuItem}\" = ", File.ReadAllLines(strings).Single(l => l.StartsWith('"')));
- Assert.Equal(3, Directory.GetFiles(installer, "ServicesMenu.strings", SearchOption.AllDirectories).Length);
+ Assert.Equal(4, Directory.GetFiles(installer, "ServicesMenu.strings", SearchOption.AllDirectories).Length);
}
private static string RepositoryRoot()