Skip to content

Commit

Permalink
feature: Support Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
gbammc committed Oct 1, 2016
1 parent 86d9134 commit 50933f8
Show file tree
Hide file tree
Showing 29 changed files with 182 additions and 20 deletions.
Binary file modified Design/Icon.sketch
Binary file not shown.
24 changes: 23 additions & 1 deletion Thor.xcodeproj/project.pbxproj
Expand Up @@ -23,6 +23,7 @@
B2E1B0691CC4CDD100FB687F /* TOLWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2E1B0681CC4CDD100FB687F /* TOLWindowController.swift */; };
B2E1B06B1CC4D49800FB687F /* SettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2E1B06A1CC4D49800FB687F /* SettingsViewController.swift */; };
B2F635FC1CD35BDD00E1232D /* String+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2F635FB1CD35BDD00E1232D /* String+Extension.swift */; };
E14196061D9F5A7D00ABBD8C /* zh-Hans.lproj in Resources */ = {isa = PBXBuildFile; fileRef = E14196051D9F5A7D00ABBD8C /* zh-Hans.lproj */; };
E166F32B1CE4B7E300F7C7B8 /* StatusItemController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E166F32A1CE4B7E300F7C7B8 /* StatusItemController.swift */; };
E166F3391CE7801A00F7C7B8 /* ShortcutListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E166F3371CE7801A00F7C7B8 /* ShortcutListViewController.swift */; };
E166F3401CE781EC00F7C7B8 /* ShortcutMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = E166F33F1CE781EC00F7C7B8 /* ShortcutMonitor.swift */; };
Expand All @@ -49,6 +50,9 @@
B2E1B06A1CC4D49800FB687F /* SettingsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsViewController.swift; sourceTree = "<group>"; };
B2F635FB1CD35BDD00E1232D /* String+Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+Extension.swift"; sourceTree = "<group>"; };
DD2E56EBC04CE95CF2361EC5 /* Pods-Thor.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Thor.release.xcconfig"; path = "Pods/Target Support Files/Pods-Thor/Pods-Thor.release.xcconfig"; sourceTree = "<group>"; };
E1002A331D9F505E00C21721 /* Thor.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Thor.entitlements; sourceTree = "<group>"; };
E1002A341D9F51C000C21721 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = "<group>"; };
E14196051D9F5A7D00ABBD8C /* zh-Hans.lproj */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "zh-Hans.lproj"; sourceTree = "<group>"; };
E166F32A1CE4B7E300F7C7B8 /* StatusItemController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatusItemController.swift; sourceTree = "<group>"; };
E166F3371CE7801A00F7C7B8 /* ShortcutListViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShortcutListViewController.swift; sourceTree = "<group>"; };
E166F33F1CE781EC00F7C7B8 /* ShortcutMonitor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ShortcutMonitor.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -115,6 +119,7 @@
B2E1B0421CC48CD900FB687F /* Thor */ = {
isa = PBXGroup;
children = (
E1002A331D9F505E00C21721 /* Thor.entitlements */,
B2E1B0431CC48CD900FB687F /* AppDelegate.swift */,
B2E1B05A1CC4AE2600FB687F /* Constant.swift */,
638E33F21CFEB2E200069198 /* View */,
Expand All @@ -125,6 +130,7 @@
B2E1B0471CC48CD900FB687F /* Assets.xcassets */,
B2E1B0491CC48CD900FB687F /* Main.storyboard */,
B2E1B04C1CC48CD900FB687F /* Info.plist */,
E14196051D9F5A7D00ABBD8C /* zh-Hans.lproj */,
);
path = Thor;
sourceTree = "<group>";
Expand Down Expand Up @@ -206,6 +212,11 @@
DevelopmentTeamName = "Canfeng Zhu";
LastSwiftMigration = 0800;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 1;
};
};
};
};
};
Expand All @@ -216,6 +227,7 @@
knownRegions = (
en,
Base,
"zh-Hans",
);
mainGroup = B2E1B0371CC48CD900FB687F;
productRefGroup = B2E1B0411CC48CD900FB687F /* Products */;
Expand All @@ -234,6 +246,7 @@
files = (
B2E1B0481CC48CD900FB687F /* Assets.xcassets in Resources */,
B2E1B04B1CC48CD900FB687F /* Main.storyboard in Resources */,
E14196061D9F5A7D00ABBD8C /* zh-Hans.lproj in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -267,7 +280,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
C2B7AC12A16E17D5ED1AAF25 /* [CP] Copy Pods Resources */ = {
Expand Down Expand Up @@ -318,6 +331,7 @@
isa = PBXVariantGroup;
children = (
B2E1B04A1CC48CD900FB687F /* Base */,
E1002A341D9F51C000C21721 /* zh-Hans */,
);
name = Main.storyboard;
sourceTree = "<group>";
Expand All @@ -329,6 +343,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand All @@ -339,8 +354,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
Expand Down Expand Up @@ -374,6 +391,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand All @@ -384,8 +402,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
Expand Down Expand Up @@ -414,6 +434,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Thor/Thor.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Thor/Info.plist;
Expand All @@ -435,6 +456,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Thor/Thor.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Thor/Info.plist;
Expand Down
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/128x128.png
Binary file not shown.
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/16x16.png
Binary file not shown.
Binary file not shown.
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/256x256.png
Binary file not shown.
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/32x32-1.png
Binary file not shown.
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/32x32.png
Binary file not shown.
Binary file not shown.
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/512x512.png
Binary file not shown.
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/64x64.png
Binary file not shown.
20 changes: 10 additions & 10 deletions Thor/Assets.xcassets/AppIcon.appiconset/Contents.json
Expand Up @@ -3,61 +3,61 @@
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "16x16.png",
"filename" : "MAS-16.png",
"scale" : "1x"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "32x32-1.png",
"filename" : "MAS-33.png",
"scale" : "2x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "32x32.png",
"filename" : "MAS-32.png",
"scale" : "1x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "64x64.png",
"filename" : "MAS-64.png",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "128x128.png",
"filename" : "MAS-128.png",
"scale" : "1x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "256x256-1.png",
"filename" : "MAS-257.png",
"scale" : "2x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "256x256.png",
"filename" : "MAS-256.png",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "512x512-1.png",
"filename" : "MAS-513.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "512x512.png",
"filename" : "MAS-512.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "Icon.png",
"filename" : "MAS.png",
"scale" : "2x"
}
],
Expand Down
Binary file removed Thor/Assets.xcassets/AppIcon.appiconset/Icon.png
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Thor/Assets.xcassets/AppIcon.appiconset/MAS-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Thor/Assets.xcassets/AppIcon.appiconset/MAS.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50933f8

Please sign in to comment.