File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 48
48
"Open Server Preferences..." = "打开服务器设定...";
49
49
"Please fill in the blanks." = "请填写以下内容。";
50
50
"Show Logs..." = "显示日志..";
51
- "Quit" = "退出";
51
+ "Quit" = "退出";
52
+ "https://github.com/shadowsocks/shadowsocks-iOS/wiki/Shadowsocks-for-OSX-Help" = "https://github.com/shadowsocks/shadowsocks-iOS/wiki/Shadowsocks-for-OSX-%E5%B8%AE%E5%8A%A9";
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
56
56
[menu addItem: [NSMenuItem separatorItem ]];
57
57
[menu addItemWithTitle: _L (Open Server Preferences...) action: @selector (showConfigWindow ) keyEquivalent: @" " ];
58
58
[menu addItemWithTitle: _L (Show Logs...) action: @selector (showLogs ) keyEquivalent: @" " ];
59
+ [menu addItemWithTitle: _L (Help) action: @selector (showHelp ) keyEquivalent: @" " ];
59
60
[menu addItem: [NSMenuItem separatorItem ]];
60
61
[menu addItemWithTitle: _L (Quit) action: @selector (exit ) keyEquivalent: @" " ];
61
62
self.item .menu = menu;
@@ -90,6 +91,10 @@ - (void)showLogs {
90
91
[[NSWorkspace sharedWorkspace ] launchApplication: @" /Applications/Utilities/Console.app" ];
91
92
}
92
93
94
+ - (void )showHelp {
95
+ [[NSWorkspace sharedWorkspace ] openURL: [NSURL URLWithString: NSLocalizedString(@" https://github.com/shadowsocks/shadowsocks-iOS/wiki/Shadowsocks-for-OSX-Help" , nil )]];
96
+ }
97
+
93
98
- (void )showConfigWindow {
94
99
[configWindowController showWindow: self ];
95
100
[NSApp activateIgnoringOtherApps: YES ];
You can’t perform that action at this time.
0 commit comments