Skip to content

Commit c5eb7e3

Browse files
author
zombie
committed
feat: add localized InfoPlist.strings for English and Simplified Chinese support
1 parent 2953548 commit c5eb7e3

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

BetterMenu.xcodeproj/project.pbxproj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
A10000000000000000000710 /* MenuIconManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000711 /* MenuIconManager.swift */; };
3232
A10000000000000000000720 /* FileCreator.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000721 /* FileCreator.swift */; };
3333
A65100FA5752180F6B4730FB /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 529E8C462C2C9F3A67CF1C58 /* Sparkle */; };
34+
A10000000000000000000093 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A10000000000000000000090 /* InfoPlist.strings */; };
3435
/* End PBXBuildFile section */
3536

3637
/* Begin PBXContainerItemProxy section */
@@ -86,6 +87,8 @@
8687
A10000000000000000000701 /* SettingsMonitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsMonitor.swift; sourceTree = "<group>"; };
8788
A10000000000000000000711 /* MenuIconManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuIconManager.swift; sourceTree = "<group>"; };
8889
A10000000000000000000721 /* FileCreator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileCreator.swift; sourceTree = "<group>"; };
90+
A10000000000000000000091 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
91+
A10000000000000000000092 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
8992
/* End PBXFileReference section */
9093

9194
/* Begin PBXFrameworksBuildPhase section */
@@ -136,6 +139,7 @@
136139
A10000000000000000000025 /* Assets.xcassets */,
137140
A10000000000000000000015 /* Info.plist */,
138141
A10000000000000000000016 /* BetterMenu.entitlements */,
142+
A10000000000000000000090 /* InfoPlist.strings */,
139143
);
140144
path = BetterMenu;
141145
sourceTree = "<group>";
@@ -167,6 +171,18 @@
167171
};
168172
/* End PBXGroup section */
169173

174+
/* Begin PBXVariantGroup section */
175+
A10000000000000000000090 /* InfoPlist.strings */ = {
176+
isa = PBXVariantGroup;
177+
children = (
178+
A10000000000000000000091 /* en */,
179+
A10000000000000000000092 /* zh-Hans */,
180+
);
181+
name = InfoPlist.strings;
182+
sourceTree = "<group>";
183+
};
184+
/* End PBXVariantGroup section */
185+
170186
/* Begin PBXNativeTarget section */
171187
A10000000000000000000031 /* BetterMenu */ = {
172188
isa = PBXNativeTarget;
@@ -234,6 +250,7 @@
234250
knownRegions = (
235251
en,
236252
Base,
253+
"zh-Hans",
237254
);
238255
mainGroup = A10000000000000000000021;
239256
packageReferences = (
@@ -255,6 +272,7 @@
255272
buildActionMask = 2147483647;
256273
files = (
257274
A10000000000000000000005 /* Assets.xcassets in Resources */,
275+
A10000000000000000000093 /* InfoPlist.strings in Resources */,
258276
);
259277
runOnlyForDeploymentPostprocessing = 0;
260278
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CFBundleDisplayName = "BetterMenu";
2+
NSAppleEventsUsageDescription = "BetterMenu needs to control Terminal to open the current folder and switch to the corresponding path.";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CFBundleDisplayName = "BetterMenu";
2+
NSAppleEventsUsageDescription = "BetterMenu 需要控制“终端”来打开当前文件夹并自动切换到对应路径。";

0 commit comments

Comments
 (0)