From f4ae598ca38c50182e1ab7214c835ef8f7255e4e Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Thu, 23 Mar 2017 20:46:25 +0800 Subject: [PATCH] Translating. --- ShadowsocksX-NG.xcodeproj/project.pbxproj | 22 ++- ShadowsocksX-NG/Base.lproj/MainMenu.xib | 2 +- .../PreferencesWinController.xib | 69 ++++------ .../PreferencesWindowController.xib | 2 +- .../zh-Hans.lproj/MainMenu.strings | 3 + .../PreferencesWinController.strings | 129 ++++++++++++++++++ .../PreferencesWindowController.strings | 4 +- 7 files changed, 175 insertions(+), 56 deletions(-) rename ShadowsocksX-NG/{ => Base.lproj}/PreferencesWinController.xib (95%) create mode 100644 ShadowsocksX-NG/zh-Hans.lproj/PreferencesWinController.strings diff --git a/ShadowsocksX-NG.xcodeproj/project.pbxproj b/ShadowsocksX-NG.xcodeproj/project.pbxproj index afa5eff..7637df7 100755 --- a/ShadowsocksX-NG.xcodeproj/project.pbxproj +++ b/ShadowsocksX-NG.xcodeproj/project.pbxproj @@ -46,7 +46,6 @@ 9B3FFF541D09E2D10019A709 /* proxy_conf_helper in Resources */ = {isa = PBXBuildFile; fileRef = 9B3FFF441D09CD3B0019A709 /* proxy_conf_helper */; }; 9B5831F61E7302F8009D5B7D /* ShortcutsController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B5831F51E7302F8009D5B7D /* ShortcutsController.m */; }; 9B5831FF1E741969009D5B7D /* PreferencesWinController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B5831FD1E741969009D5B7D /* PreferencesWinController.swift */; }; - 9B5832001E741969009D5B7D /* PreferencesWinController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9B5831FE1E741969009D5B7D /* PreferencesWinController.xib */; }; 9B5832031E741F8D009D5B7D /* command-512.png in Resources */ = {isa = PBXBuildFile; fileRef = 9B5832021E741F8D009D5B7D /* command-512.png */; }; 9B5832071E7421B2009D5B7D /* virtual-server-icon-3.png in Resources */ = {isa = PBXBuildFile; fileRef = 9B5832061E7421B2009D5B7D /* virtual-server-icon-3.png */; }; 9B58320B1E7422DB009D5B7D /* http.png in Resources */ = {isa = PBXBuildFile; fileRef = 9B58320A1E7422DB009D5B7D /* http.png */; }; @@ -61,6 +60,7 @@ 9B9CBCB41E26453C00FC61AA /* start_kcptun.sh in Resources */ = {isa = PBXBuildFile; fileRef = 9B9CBCB01E2644DC00FC61AA /* start_kcptun.sh */; }; 9B9CBCB51E26453C00FC61AA /* stop_kcptun.sh in Resources */ = {isa = PBXBuildFile; fileRef = 9B9CBCB11E26450D00FC61AA /* stop_kcptun.sh */; }; 9BA04B231D23D5A5005AAD7F /* ProxyConfTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BA04B221D23D5A5005AAD7F /* ProxyConfTool.m */; }; + 9BAFE2E21E83ED7F00F71CCE /* PreferencesWinController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9BAFE2E41E83ED7F00F71CCE /* PreferencesWinController.xib */; }; 9BB706A71D1B982300551F0E /* SWBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = 9BB706A51D1B982300551F0E /* SWBApplication.m */; }; 9BC70EDC1D2E3E3100EDA4CA /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9B172A6C1D0ADDDD00B87B9A /* Localizable.strings */; }; 9BEEF0691D04D4D500FC52B3 /* install_ss_local.sh in Resources */ = {isa = PBXBuildFile; fileRef = 9BEEF0651D04CB8500FC52B3 /* install_ss_local.sh */; }; @@ -188,7 +188,6 @@ 9B5831F51E7302F8009D5B7D /* ShortcutsController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShortcutsController.m; sourceTree = ""; }; 9B5831FA1E73098F009D5B7D /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 9B5831FD1E741969009D5B7D /* PreferencesWinController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PreferencesWinController.swift; sourceTree = ""; }; - 9B5831FE1E741969009D5B7D /* PreferencesWinController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PreferencesWinController.xib; sourceTree = ""; }; 9B5832021E741F8D009D5B7D /* command-512.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "command-512.png"; sourceTree = ""; }; 9B5832061E7421B2009D5B7D /* virtual-server-icon-3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "virtual-server-icon-3.png"; sourceTree = ""; }; 9B58320A1E7422DB009D5B7D /* http.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = http.png; sourceTree = ""; }; @@ -204,6 +203,9 @@ 9B9CBCB11E26450D00FC61AA /* stop_kcptun.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = stop_kcptun.sh; sourceTree = ""; }; 9BA04B211D23D5A5005AAD7F /* ProxyConfTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProxyConfTool.h; sourceTree = ""; }; 9BA04B221D23D5A5005AAD7F /* ProxyConfTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProxyConfTool.m; sourceTree = ""; }; + 9BAFE2E31E83ED7F00F71CCE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/PreferencesWinController.xib; sourceTree = ""; }; + 9BAFE2E91E83EDDF00F71CCE /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/PreferencesWinController.strings"; sourceTree = ""; }; + 9BAFE2EB1E83F91D00F71CCE /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/MainMenu.strings"; sourceTree = ""; }; 9BB706A51D1B982300551F0E /* SWBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SWBApplication.m; sourceTree = ""; }; 9BB706A61D1B982300551F0E /* SWBApplication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SWBApplication.h; sourceTree = ""; }; 9BE8FBC11D0B71CF00CAFD01 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/PreferencesWindowController.strings"; sourceTree = ""; }; @@ -220,7 +222,6 @@ C6D429911DA75988002A5711 /* start_privoxy.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = start_privoxy.sh; sourceTree = ""; }; C6D429921DA75988002A5711 /* stop_privoxy.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = stop_privoxy.sh; sourceTree = ""; }; C6D429981DA76FBC002A5711 /* privoxy.config.example */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = privoxy.config.example; sourceTree = ""; }; - C6E28E9B1DA79FB9004F8330 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/MainMenu.strings"; sourceTree = ""; }; C8E42A6A1D4F270A0074C7EA /* UserRulesController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserRulesController.swift; sourceTree = ""; }; C8E42A6F1D4F2CAF0074C7EA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/UserRulesController.xib; sourceTree = ""; }; C8E42A721D4F2CB10074C7EA /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/UserRulesController.strings"; sourceTree = ""; }; @@ -397,7 +398,7 @@ C8E42A6A1D4F270A0074C7EA /* UserRulesController.swift */, C8E42A701D4F2CAF0074C7EA /* UserRulesController.xib */, 9B5831FD1E741969009D5B7D /* PreferencesWinController.swift */, - 9B5831FE1E741969009D5B7D /* PreferencesWinController.xib */, + 9BAFE2E41E83ED7F00F71CCE /* PreferencesWinController.xib */, 9B86459C1E7C2CAD00A84029 /* ProxyInterfacesViewCtrl.swift */, 9B3546701E802B1200B510B4 /* ToastWindowController.swift */, 9B3546711E802B1200B510B4 /* ToastWindowController.xib */, @@ -592,7 +593,7 @@ 9B3FFF341D08CEF70019A709 /* SWBQRCodeWindowController.xib in Resources */, 9B3FFF231D088E8D0019A709 /* abp.js in Resources */, 9B07EFAD1D048E880052D9DF /* menu_icon.png in Resources */, - 9B5832001E741969009D5B7D /* PreferencesWinController.xib in Resources */, + 9BAFE2E21E83ED7F00F71CCE /* PreferencesWinController.xib in Resources */, 9B0BFFEB1D0460A70040E62B /* Assets.xcassets in Resources */, 08FCA0FF1E24BE1A0070984F /* example-gui-config.json in Resources */, 9B3FFF271D0898EB0019A709 /* gfwlist.txt in Resources */, @@ -806,7 +807,7 @@ isa = PBXVariantGroup; children = ( 9B0BFFED1D0460A70040E62B /* Base */, - C6E28E9B1DA79FB9004F8330 /* zh-Hans */, + 9BAFE2EB1E83F91D00F71CCE /* zh-Hans */, ); name = MainMenu.xib; sourceTree = ""; @@ -829,6 +830,15 @@ name = PreferencesWindowController.xib; sourceTree = ""; }; + 9BAFE2E41E83ED7F00F71CCE /* PreferencesWinController.xib */ = { + isa = PBXVariantGroup; + children = ( + 9BAFE2E31E83ED7F00F71CCE /* Base */, + 9BAFE2E91E83EDDF00F71CCE /* zh-Hans */, + ); + name = PreferencesWinController.xib; + sourceTree = ""; + }; C8E42A701D4F2CAF0074C7EA /* UserRulesController.xib */ = { isa = PBXVariantGroup; children = ( diff --git a/ShadowsocksX-NG/Base.lproj/MainMenu.xib b/ShadowsocksX-NG/Base.lproj/MainMenu.xib index c53bf97..32ec003 100755 --- a/ShadowsocksX-NG/Base.lproj/MainMenu.xib +++ b/ShadowsocksX-NG/Base.lproj/MainMenu.xib @@ -107,7 +107,7 @@ - + diff --git a/ShadowsocksX-NG/PreferencesWinController.xib b/ShadowsocksX-NG/Base.lproj/PreferencesWinController.xib similarity index 95% rename from ShadowsocksX-NG/PreferencesWinController.xib rename to ShadowsocksX-NG/Base.lproj/PreferencesWinController.xib index 1b50276..2666a37 100644 --- a/ShadowsocksX-NG/PreferencesWinController.xib +++ b/ShadowsocksX-NG/Base.lproj/PreferencesWinController.xib @@ -44,8 +44,8 @@ - - + + @@ -240,10 +234,9 @@ - + - @@ -253,6 +246,7 @@ + @@ -260,6 +254,7 @@ + @@ -336,22 +331,11 @@ - - @@ -362,7 +346,6 @@ - @@ -568,19 +551,19 @@ - - + + + + + - - - - - + + @@ -589,18 +572,18 @@ - - + + + + + + - + - - - - - + @@ -623,11 +606,6 @@ - - - - - @@ -696,6 +674,5 @@ - diff --git a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib index 7c99041..d7a3032 100644 --- a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib +++ b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib @@ -521,7 +521,7 @@ Gw - + diff --git a/ShadowsocksX-NG/zh-Hans.lproj/MainMenu.strings b/ShadowsocksX-NG/zh-Hans.lproj/MainMenu.strings index bd40c2f..e201cca 100644 --- a/ShadowsocksX-NG/zh-Hans.lproj/MainMenu.strings +++ b/ShadowsocksX-NG/zh-Hans.lproj/MainMenu.strings @@ -1,4 +1,7 @@ +/* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "4CS-qD-zW5"; */ +"4CS-qD-zW5.title" = "偏好设置..."; + /* Class = "NSMenuItem"; title = "应用用户自定规则到 PAC"; ObjectID = "6qf-cg-HXc"; */ "6qf-cg-HXc.title" = "应用用户自定规则到 PAC"; diff --git a/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWinController.strings b/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWinController.strings new file mode 100644 index 0000000..af7725d --- /dev/null +++ b/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWinController.strings @@ -0,0 +1,129 @@ + +/* Class = "NSTextFieldCell"; title = "Seconds"; ObjectID = "4R2-UO-qs7"; */ +"4R2-UO-qs7.title" = "秒"; + +/* Class = "NSTextFieldCell"; title = "HTTP Proxy Listen Address:"; ObjectID = "6W4-TY-Bw5"; */ +"6W4-TY-Bw5.title" = "HTTP代理监听地址:"; + +/* Class = "NSButtonCell"; title = "Check"; ObjectID = "8Ku-VV-ZaY"; */ +"8Ku-VV-ZaY.title" = "Check"; + +/* Class = "NSToolbarItem"; label = "Servers"; ObjectID = "8Nu-gG-5rY"; */ +"8Nu-gG-5rY.label" = "Servers"; + +/* Class = "NSToolbarItem"; paletteLabel = "Servers"; ObjectID = "8Nu-gG-5rY"; */ +"8Nu-gG-5rY.paletteLabel" = "Servers"; + +/* Class = "NSTextFieldCell"; title = "Local Socks5 Listen Port:"; ObjectID = "8fk-fw-Tsx"; */ +"8fk-fw-Tsx.title" = "本地Socks5监听端口:"; + +/* Class = "NSTextFieldCell"; title = "Toggle Shadowsocks On/Off:"; ObjectID = "95S-ma-8Q7"; */ +"95S-ma-8Q7.title" = "开关 Shadowsocks:"; + +/* Class = "NSTextFieldCell"; title = "Switch proxy mode:"; ObjectID = "BaL-cn-m8v"; */ +"BaL-cn-m8v.title" = "切换代理模式:"; + +/* Class = "NSToolbarItem"; label = "Interfaces"; ObjectID = "Bdm-pj-Ckd"; */ +"Bdm-pj-Ckd.label" = "网络接口"; + +/* Class = "NSToolbarItem"; paletteLabel = "Interfaces"; ObjectID = "Bdm-pj-Ckd"; */ +"Bdm-pj-Ckd.paletteLabel" = "网络接口"; + +/* Class = "NSToolbarItem"; label = "Kcptun"; ObjectID = "CIc-BO-xjN"; */ +"CIc-BO-xjN.label" = "Kcptun"; + +/* Class = "NSToolbarItem"; paletteLabel = "Kcptun"; ObjectID = "CIc-BO-xjN"; */ +"CIc-BO-xjN.paletteLabel" = "Kcptun"; + +/* Class = "NSToolbarItem"; label = "HTTP"; ObjectID = "D0F-6S-Ztu"; */ +"D0F-6S-Ztu.label" = "HTTP"; + +/* Class = "NSToolbarItem"; paletteLabel = "HTTP"; ObjectID = "D0F-6S-Ztu"; */ +"D0F-6S-Ztu.paletteLabel" = "HTTP"; + +/* Class = "NSTabViewItem"; label = "Servers"; ObjectID = "Dsu-Ba-zYR"; */ +"Dsu-Ba-zYR.label" = "Servers"; + +/* Class = "NSWindow"; title = "Preferences"; ObjectID = "F0z-JX-Cv5"; */ +"F0z-JX-Cv5.title" = "偏好设置"; + +/* Class = "NSTabViewItem"; label = "HTTP"; ObjectID = "F5Q-Ce-JJN"; */ +"F5Q-Ce-JJN.label" = "HTTP"; + +/* Class = "NSTextFieldCell"; title = "Num of Kcptun connections:"; ObjectID = "FSi-9j-QBe"; */ +"FSi-9j-QBe.title" = "Num of Kcptun connections:"; + +/* Class = "NSTextFieldCell"; title = "Local PAC Server Listen Port:"; ObjectID = "IMQ-c4-gmc"; */ +"IMQ-c4-gmc.title" = "本地PAC服务器监听端口:"; + +/* Class = "NSToolbarItem"; label = "General"; ObjectID = "Mp8-cF-kQ7"; */ +"Mp8-cF-kQ7.label" = "常规"; + +/* Class = "NSToolbarItem"; paletteLabel = "General"; ObjectID = "Mp8-cF-kQ7"; */ +"Mp8-cF-kQ7.paletteLabel" = "常规"; + +/* Class = "NSButtonCell"; title = "Enable Udp Replay"; ObjectID = "R3v-iN-zu8"; */ +"R3v-iN-zu8.title" = "启用 UDP 中继"; + +/* Class = "NSTextFieldCell"; title = "HTTP Proxy Listen Port:"; ObjectID = "Ww9-j9-WYR"; */ +"Ww9-j9-WYR.title" = "HTTP代理监听端口:"; + +/* Class = "NSButtonCell"; title = "Launch At Login"; ObjectID = "XJx-j4-bBr"; */ +"XJx-j4-bBr.title" = "开机启动"; + +/* Class = "NSButtonCell"; title = "Auto Configure"; ObjectID = "bu3-s5-bYM"; */ +"bu3-s5-bYM.title" = "自动配置"; + +/* Class = "NSButtonCell"; title = "Enable Verbose Mode"; ObjectID = "cIS-Wb-Rzg"; */ +"cIS-Wb-Rzg.title" = "Enable Verbose Mode"; + +/* Class = "NSTabViewItem"; label = "Interfaces"; ObjectID = "eDR-CZ-P4p"; */ +"eDR-CZ-P4p.label" = "网络接口"; + +/* Class = "NSTextFieldCell"; title = "Local Kcptun Listen Address:"; ObjectID = "ejW-7L-9bP"; */ +"ejW-7L-9bP.title" = "Kcptun 本地监听地址:"; + +/* Class = "NSTabViewItem"; label = "Shortcuts"; ObjectID = "gpA-k4-fiw"; */ +"gpA-k4-fiw.label" = "快捷键"; + +/* Class = "NSTextFieldCell"; title = "Local Socks5 Listen Address:"; ObjectID = "jkc-e3-4O0"; */ +"jkc-e3-4O0.title" = "本地Socks5监听地址:"; + +/* Class = "NSButtonCell"; title = "HTTP Proxy Enable"; ObjectID = "jr6-x7-WJD"; */ +"jr6-x7-WJD.title" = "开启HTTP代理服务器"; + +/* Class = "NSTabViewItem"; label = "Advanced"; ObjectID = "ksf-9b-qoz"; */ +"ksf-9b-qoz.label" = "高级"; + +/* Class = "NSToolbarItem"; label = "Advanced"; ObjectID = "kuN-wm-bl5"; */ +"kuN-wm-bl5.label" = "高级"; + +/* Class = "NSToolbarItem"; paletteLabel = "Advanced"; ObjectID = "kuN-wm-bl5"; */ +"kuN-wm-bl5.paletteLabel" = "高级"; + +/* Class = "NSToolbarItem"; label = "Shortcuts"; ObjectID = "kzb-T5-CPp"; */ +"kzb-T5-CPp.label" = "快捷键"; + +/* Class = "NSToolbarItem"; paletteLabel = "Shortcuts"; ObjectID = "kzb-T5-CPp"; */ +"kzb-T5-CPp.paletteLabel" = "快捷键"; + +/* Class = "NSTabViewItem"; label = "Kcptun"; ObjectID = "n2m-5k-0Ws"; */ +"n2m-5k-0Ws.label" = "Kcptun"; + +/* Class = "NSTextFieldCell"; title = "Local Kcptun Listen Port:"; ObjectID = "pdk-mh-FAj"; */ +"pdk-mh-FAj.title" = "Kcptun 本地监听端口:"; + +/* Class = "NSTextFieldCell"; title = "Timeout:"; ObjectID = "sQ9-bj-V0I"; */ +"sQ9-bj-V0I.title" = "超时:"; + +/* Class = "NSTextFieldCell"; title = "Which network interfaces proxy setting would be controlled by ShadowsocksX-NG"; ObjectID = "t0I-6n-gnu"; */ +"t0I-6n-gnu.title" = "Which network interfaces proxy setting would be controlled by ShadowsocksX-NG"; + +/* Class = "NSTextFieldCell"; title = "GFW List URL:"; ObjectID = "v7a-wf-aEm"; */ +"v7a-wf-aEm.title" = "GFW List URL:"; + +/* Class = "NSButtonCell"; title = "Show Running Proxy Mode In Status Bar"; ObjectID = "wXO-Qz-yDg"; */ +"wXO-Qz-yDg.title" = "在状态栏显示当前代理模式"; + +/* Class = "NSTabViewItem"; label = "General"; ObjectID = "xbG-eW-Prj"; */ +"xbG-eW-Prj.label" = "常规"; diff --git a/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings b/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings index ff67bb1..a18ea8f 100644 --- a/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings +++ b/ShadowsocksX-NG/zh-Hans.lproj/PreferencesWindowController.strings @@ -35,5 +35,5 @@ /* Class = "NSButtonCell"; title = "OK"; ObjectID = "zPE-oD-PwK"; */ "zPE-oD-PwK.title" = "确定"; -/* Class = "NSMenuItem"; title = "Duplicate"; ObjectID = "bl9-lq-u9V"; */ -"bl9-lq-u9V.title" = "复制"; +/* Class = "NSMenuItem"; title = "Clone"; ObjectID = "bl9-lq-u9V"; */ +"bl9-lq-u9V.title" = "克隆";