diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-12-08 19:21:21 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-12-08 19:21:21 +0000 |
| commit | fc9dc0e8888053c61927991eb755edefadc70571 (patch) | |
| tree | eccfb684d5fd5c8a24e3ae1786a0a76b95d007d3 | |
| parent | 643df7a7c83ad93cf98fa7f4bc10a8d4e557958e (diff) | |
| download | pcsxr-fc9dc0e8888053c61927991eb755edefadc70571.tar.gz | |
OS X:
Localizing some strings in the Net Plug-In
Changing three periods to ellipses on all localizations.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88069 e17a0e51-4ae3-4d35-97c3-1a29b211df97
12 files changed, 63 insertions, 45 deletions
diff --git a/macosx/English.lproj/zh-Hans.lproj/Configuration.strings b/macosx/English.lproj/zh-Hans.lproj/Configuration.strings index 6b8759be..aac78b69 100644 --- a/macosx/English.lproj/zh-Hans.lproj/Configuration.strings +++ b/macosx/English.lproj/zh-Hans.lproj/Configuration.strings @@ -114,28 +114,28 @@ "579.label" = "记忆卡"; /* Class = "NSButtonCell"; title = "关于..."; ObjectID = "599"; */ -"599.title" = "关于..."; +"599.title" = "关于…"; /* Class = "NSButtonCell"; title = "配置..."; ObjectID = "600"; */ -"600.title" = "配置..."; +"600.title" = "配置…"; /* Class = "NSButtonCell"; title = "关于..."; ObjectID = "602"; */ -"602.title" = "关于..."; +"602.title" = "关于…"; /* Class = "NSButtonCell"; title = "配置..."; ObjectID = "603"; */ -"603.title" = "配置..."; +"603.title" = "配置…"; /* Class = "NSButtonCell"; title = "配置..."; ObjectID = "605"; */ -"605.title" = "配置..."; +"605.title" = "配置…"; /* Class = "NSButtonCell"; title = "关于..."; ObjectID = "606"; */ -"606.title" = "关于..."; +"606.title" = "关于…"; /* Class = "NSButtonCell"; title = "关于..."; ObjectID = "608"; */ -"608.title" = "关于..."; +"608.title" = "关于…"; /* Class = "NSButtonCell"; title = "配置..."; ObjectID = "609"; */ -"609.title" = "配置..."; +"609.title" = "配置…"; /* Class = "NSButtonCell"; title = "选择"; ObjectID = "617"; */ "617.title" = "选择"; @@ -150,10 +150,10 @@ "622.title" = "网络"; /* Class = "NSButtonCell"; title = "配置..."; ObjectID = "626"; */ -"626.title" = "配置..."; +"626.title" = "配置…"; /* Class = "NSButtonCell"; title = "关于..."; ObjectID = "627"; */ -"627.title" = "关于..."; +"627.title" = "关于…"; /* Class = "NSMenu"; title = "查看其他"; ObjectID = "629"; */ "629.title" = "查看其他"; @@ -174,10 +174,10 @@ "770.title" = "快进"; /* Class = "NSTextFieldCell"; placeholderString = "无..."; ObjectID = "772"; */ -"772.placeholderString" = "无..."; +"772.placeholderString" = "无…"; /* Class = "NSTextFieldCell"; placeholderString = "无..."; ObjectID = "852"; */ -"852.placeholderString" = "无..."; +"852.placeholderString" = "无…"; /* Class = "NSButtonCell"; title = "即时存档"; ObjectID = "853"; */ "853.title" = "即时存档"; @@ -192,13 +192,13 @@ "868.title" = "上个进度"; /* Class = "NSTextFieldCell"; placeholderString = "无..."; ObjectID = "871"; */ -"871.placeholderString" = "无..."; +"871.placeholderString" = "无…"; /* Class = "NSTextFieldCell"; placeholderString = "无..."; ObjectID = "873"; */ -"873.placeholderString" = "无..."; +"873.placeholderString" = "无…"; /* Class = "NSTextFieldCell"; placeholderString = "无..."; ObjectID = "875"; */ -"875.placeholderString" = "无..."; +"875.placeholderString" = "无…"; /* Class = "NSBox"; title = "窗体"; ObjectID = "884"; */ "884.title" = "窗体"; @@ -225,7 +225,7 @@ "893.title" = "Alt / Option ⌥"; /* Class = "NSTextFieldCell"; placeholderString = "无..."; ObjectID = "898"; */ -"898.placeholderString" = "无..."; +"898.placeholderString" = "无…"; /* Class = "NSButtonCell"; title = "跳帧限制"; ObjectID = "899"; */ "899.title" = "跳帧限制"; @@ -240,10 +240,10 @@ "908.title" = "网络插件"; /* Class = "NSButtonCell"; title = "关于..."; ObjectID = "909"; */ -"909.title" = "关于..."; +"909.title" = "关于…"; /* Class = "NSButtonCell"; title = "配置..."; ObjectID = "910"; */ -"910.title" = "配置..."; +"910.title" = "配置…"; /* Class = "NSTextFieldCell"; title = "标签"; ObjectID = "936"; */ "936.title" = "标签"; @@ -252,7 +252,7 @@ "937.title" = "改变…"; /* Class = "NSButtonCell"; title = "新建..."; ObjectID = "938"; */ -"938.title" = "新建..."; +"938.title" = "新建…"; /* Class = "NSTextFieldCell"; title = "标签"; ObjectID = "939"; */ "939.title" = "标签"; @@ -261,19 +261,19 @@ "940.title" = "改变…"; /* Class = "NSButtonCell"; title = "新建..."; ObjectID = "941"; */ -"941.title" = "新建..."; +"941.title" = "新建…"; /* Class = "NSButtonCell"; title = "删除..."; ObjectID = "942"; */ -"942.title" = "删除..."; +"942.title" = "删除…"; /* Class = "NSButtonCell"; title = "删除..."; ObjectID = "943"; */ -"943.title" = "删除..."; +"943.title" = "删除…"; /* Class = "NSButtonCell"; title = "格式化..."; ObjectID = "944"; */ -"944.title" = "格式化..."; +"944.title" = "格式化…"; /* Class = "NSButtonCell"; title = "格式化..."; ObjectID = "945"; */ -"945.title" = "格式化..."; +"945.title" = "格式化…"; /* Class = "NSButtonCell"; title = "->"; ObjectID = "952"; */ "952.title" = "->"; diff --git a/macosx/English.lproj/zh-Hans.lproj/PCSXR.strings b/macosx/English.lproj/zh-Hans.lproj/PCSXR.strings index 6c8d494a..84be04df 100644 --- a/macosx/English.lproj/zh-Hans.lproj/PCSXR.strings +++ b/macosx/English.lproj/zh-Hans.lproj/PCSXR.strings @@ -39,7 +39,7 @@ "111.title" = "PCSXR 帮助"; /* Class = "NSMenuItem"; title = "偏好设置..."; ObjectID = "129"; */ -"129.title" = "偏好设置..."; +"129.title" = "偏好设置…"; /* Class = "NSMenu"; title = "服务"; ObjectID = "130"; */ "130.title" = "服务"; @@ -96,7 +96,7 @@ "289.title" = "位置 2"; /* Class = "NSMenuItem"; title = "运行 ISO..."; ObjectID = "290"; */ -"290.title" = "运行 ISO..."; +"290.title" = "运行 ISO…"; /* Class = "NSMenuItem"; title = "位置 3"; ObjectID = "292"; */ "292.title" = "位置 3"; @@ -135,10 +135,10 @@ "322.title" = "位置 1"; /* Class = "NSMenuItem"; title = "运行历史..."; ObjectID = "329"; */ -"329.title" = "运行历史..."; +"329.title" = "运行历史…"; /* Class = "NSMenu"; title = "运行历史..."; ObjectID = "330"; */ -"330.title" = "运行历史..."; +"330.title" = "运行历史…"; /* Class = "NSMenuItem"; title = "清除列表"; ObjectID = "366"; */ "366.title" = "清除列表"; @@ -258,7 +258,7 @@ "425.title" = "查找"; /* Class = "NSMenuItem"; title = "查找..."; ObjectID = "426"; */ -"426.title" = "查找..."; +"426.title" = "查找…"; /* Class = "NSMenuItem"; title = "查找下一个"; ObjectID = "427"; */ "427.title" = "查找下一个"; diff --git a/macosx/plugins/DFNet/English.lproj/Localizable.strings b/macosx/plugins/DFNet/English.lproj/Localizable.strings index f48d7085..31bb46c2 100644 --- a/macosx/plugins/DFNet/English.lproj/Localizable.strings +++ b/macosx/plugins/DFNet/English.lproj/Localizable.strings @@ -9,3 +9,8 @@ "Error allocating memory!\n" = "Error allocating memory!\n"; "error connecting to %s: %s\n" = "Error connecting to %s: %s\n"; "Socket Driver" = "Socket Driver"; + +"Address Too Long" = "Address Too Long"; +"The address is too long.\n\nTry to use only the IP address and not a host name." = "The address is too long.\n\nTry to use only the IP address and not a host name."; +"Blank Address" = "Blank Address"; +"The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals." = "The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals."; diff --git a/macosx/plugins/DFNet/fr.lproj/Localizable.strings b/macosx/plugins/DFNet/fr.lproj/Localizable.strings index 0361887a..77e144e3 100644 --- a/macosx/plugins/DFNet/fr.lproj/Localizable.strings +++ b/macosx/plugins/DFNet/fr.lproj/Localizable.strings @@ -9,3 +9,8 @@ "Error allocating memory!\n" = "Erreur d'allocation mémoire !\n"; "error connecting to %s: %s\n" = "Erreur lors de la connection à %s: %s\n"; "Socket Driver" = "Pilote Socket"; + +//"Address Too Long" = "Address Too Long"; +//"The address is too long.\n\nTry to use only the IP address and not a host name." = "The address is too long.\n\nTry to use only the IP address and not a host name."; +//"Blank Address" = "Blank Address"; +//"The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals." = "The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals."; diff --git a/macosx/plugins/DFNet/hu.lproj/Localizable.strings b/macosx/plugins/DFNet/hu.lproj/Localizable.strings index 570d94da..f3baef54 100644 --- a/macosx/plugins/DFNet/hu.lproj/Localizable.strings +++ b/macosx/plugins/DFNet/hu.lproj/Localizable.strings @@ -9,3 +9,8 @@ "Error allocating memory!\n" = "Memória kiosztási hiba!\n"; "error connecting to %s: %s\n" = "hiba a következőhöz történő kapcsolódáskor: %s: %s\n"; "Socket Driver" = "Socket illesztőprogram"; + +//"Address Too Long" = "Address Too Long"; +//"The address is too long.\n\nTry to use only the IP address and not a host name." = "The address is too long.\n\nTry to use only the IP address and not a host name."; +//"Blank Address" = "Blank Address"; +//"The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals." = "The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals."; diff --git a/macosx/plugins/DFNet/macsrc/PluginConfigController.m b/macosx/plugins/DFNet/macsrc/PluginConfigController.m index 434a108b..0ea7951e 100755 --- a/macosx/plugins/DFNet/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFNet/macsrc/PluginConfigController.m @@ -28,6 +28,8 @@ #define APP_ID @"net.codeplex.pcsxr.DFNet" #define PrefsKey APP_ID @" Settings" +#define NSLocalizedStringInBundle(key, bundle, comment) \ + [bundle localizedStringForKey:(key) value:@"" table:nil] static PluginConfigController *windowController = nil; @@ -49,7 +51,7 @@ void AboutDlgProc() NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"]; NSAttributedString *credits; if (path) { - credits = [[NSAttributedString alloc] initWithPath: path + credits = [[NSAttributedString alloc] initWithPath:path documentAttributes:NULL]; } else { credits = [[NSAttributedString alloc] initWithString:@""]; @@ -99,7 +101,7 @@ void ReadConfig() keyValues = [defaults dictionaryForKey:PrefsKey]; - conf.PortNum = [keyValues[kIPPORT] intValue]; + conf.PortNum = [keyValues[kIPPORT] unsignedShortValue]; conf.PlayerNum = [keyValues[kPLAYERNUM] intValue]; strlcpy(conf.ipAddress, [keyValues[kIPADDRKEY] cStringUsingEncoding:NSASCIIStringEncoding], sizeof(conf.ipAddress)); } @@ -114,14 +116,15 @@ void ReadConfig() - (IBAction)ok:(id)sender { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSBundle *curBundle = [NSBundle bundleForClass:[PluginConfigController class]]; NSString *theAddress = [ipAddress stringValue]; NSInteger asciiLen = [theAddress lengthOfBytesUsingEncoding:NSASCIIStringEncoding]; if (asciiLen > (sizeof(conf.ipAddress) - 1)) { - NSBeginAlertSheet(@"Address too long", nil, nil, nil, [self window], nil, NULL, NULL, NULL, @"The address is too long.\n\nTry to use only the IP address and not a host name."); + NSBeginAlertSheet(NSLocalizedStringInBundle(@"Address Too Long", curBundle, nil), nil, nil, nil, [self window], nil, NULL, NULL, NULL, @"%@", NSLocalizedStringInBundle(@"The address is too long.\n\nTry to use only the IP address and not a host name.", curBundle, nil)); return; } else if (asciiLen == 0) { - NSBeginAlertSheet(@"Blank address", nil, nil, nil, [self window], nil, NULL, NULL, NULL, @"The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals."); + NSBeginAlertSheet(NSLocalizedStringInBundle(@"Blank Address", curBundle, nil), nil, nil, nil, [self window], nil, NULL, NULL, NULL, @"%@", NSLocalizedStringInBundle(@"The address specified is either blank, or can't be converted to ASCII.\n\nTry connecting directly using the IP address using latin numerals.", curBundle, nil)); return; } diff --git a/macosx/plugins/DFNet/zh-Hans.lproj/SockDialog.strings b/macosx/plugins/DFNet/zh-Hans.lproj/SockDialog.strings index 20524804..ba961b3d 100644 --- a/macosx/plugins/DFNet/zh-Hans.lproj/SockDialog.strings +++ b/macosx/plugins/DFNet/zh-Hans.lproj/SockDialog.strings @@ -3,7 +3,7 @@ "1.title" = "连接中…"; /* Class = "NSTextFieldCell"; title = "连接等待中..."; ObjectID = "4"; */ -"4.title" = "连接等待中..."; +"4.title" = "连接等待中…"; /* Class = "NSButtonCell"; title = "取消"; ObjectID = "27"; */ "27.title" = "取消"; diff --git a/macosx/plugins/DFXVideo/fr.lproj/NetSfPeopsSoftGPUConfig.strings b/macosx/plugins/DFXVideo/fr.lproj/NetSfPeopsSoftGPUConfig.strings index 0073e6e0..d4f6551b 100644 --- a/macosx/plugins/DFXVideo/fr.lproj/NetSfPeopsSoftGPUConfig.strings +++ b/macosx/plugins/DFXVideo/fr.lproj/NetSfPeopsSoftGPUConfig.strings @@ -132,10 +132,10 @@ "181.title" = "Enable Shaders"; /* Class = "NSButtonCell"; title = "Select..."; ObjectID = "183"; */ -"183.title" = "Select..."; +"183.title" = "Select…"; /* Class = "NSButtonCell"; title = "Select..."; ObjectID = "185"; */ -"185.title" = "Select..."; +"185.title" = "Select…"; /* Class = "NSTextFieldCell"; title = "Label"; ObjectID = "187"; */ "187.title" = "Label"; diff --git a/macosx/plugins/DFXVideo/hu.lproj/NetSfPeopsSoftGPUConfig.strings b/macosx/plugins/DFXVideo/hu.lproj/NetSfPeopsSoftGPUConfig.strings index 0073e6e0..d4f6551b 100644 --- a/macosx/plugins/DFXVideo/hu.lproj/NetSfPeopsSoftGPUConfig.strings +++ b/macosx/plugins/DFXVideo/hu.lproj/NetSfPeopsSoftGPUConfig.strings @@ -132,10 +132,10 @@ "181.title" = "Enable Shaders"; /* Class = "NSButtonCell"; title = "Select..."; ObjectID = "183"; */ -"183.title" = "Select..."; +"183.title" = "Select…"; /* Class = "NSButtonCell"; title = "Select..."; ObjectID = "185"; */ -"185.title" = "Select..."; +"185.title" = "Select…"; /* Class = "NSTextFieldCell"; title = "Label"; ObjectID = "187"; */ "187.title" = "Label"; diff --git a/macosx/plugins/DFXVideo/zh-Hans.lproj/NetSfPeopsSoftGPUConfig.strings b/macosx/plugins/DFXVideo/zh-Hans.lproj/NetSfPeopsSoftGPUConfig.strings index d9fcb4b6..3e220ec1 100644 --- a/macosx/plugins/DFXVideo/zh-Hans.lproj/NetSfPeopsSoftGPUConfig.strings +++ b/macosx/plugins/DFXVideo/zh-Hans.lproj/NetSfPeopsSoftGPUConfig.strings @@ -132,10 +132,10 @@ "181.title" = "启用着色器"; /* Class = "NSButtonCell"; title = "选择..."; ObjectID = "183"; */ -"183.title" = "选择..."; +"183.title" = "选择…"; /* Class = "NSButtonCell"; title = "选择..."; ObjectID = "185"; */ -"185.title" = "选择..."; +"185.title" = "选择…"; /* Class = "NSTextFieldCell"; title = "标签"; ObjectID = "187"; */ "187.title" = "标签"; diff --git a/macosx/plugins/PeopsXgl/zh-Hans.lproj/NetSfPeopsOpenGLConfig.strings b/macosx/plugins/PeopsXgl/zh-Hans.lproj/NetSfPeopsOpenGLConfig.strings index dfa5b7d0..d6a6d70d 100644 --- a/macosx/plugins/PeopsXgl/zh-Hans.lproj/NetSfPeopsOpenGLConfig.strings +++ b/macosx/plugins/PeopsXgl/zh-Hans.lproj/NetSfPeopsOpenGLConfig.strings @@ -198,7 +198,7 @@ "482.title" = "假装删减混合"; /* Class = "NSButtonCell"; ibShadowedToolTip = "DW7 fix (不是100%完美...)"; ObjectID = "483"; */ -"483.ibShadowedToolTip" = "DW7 fix (不是100%完美...)"; +"483.ibShadowedToolTip" = "DW7 fix (不是100%完美…)"; /* Class = "NSButtonCell"; title = "缓慢检测更新"; ObjectID = "483"; */ "483.title" = "缓慢检测更新"; @@ -222,7 +222,7 @@ "486.title" = "扩大屏幕宽度"; /* Class = "NSButtonCell"; ibShadowedToolTip = "只对FF9战斗模式..."; ObjectID = "487"; */ -"487.ibShadowedToolTip" = "只对FF9战斗模式..."; +"487.ibShadowedToolTip" = "只对FF9战斗模式…"; /* Class = "NSButtonCell"; title = "G4多边形缓存"; ObjectID = "487"; */ "487.title" = "G4多边形缓存"; @@ -234,7 +234,7 @@ "488.title" = "检测特殊上传"; /* Class = "NSButtonCell"; ibShadowedToolTip = "只对FF9战斗指针..."; ObjectID = "489"; */ -"489.ibShadowedToolTip" = "只对FF9战斗指针..."; +"489.ibShadowedToolTip" = "只对FF9战斗指针…"; /* Class = "NSButtonCell"; title = "调整帧缓冲区通道"; ObjectID = "489"; */ "489.title" = "调整帧缓冲区通道"; diff --git a/macosx/zh-Hans.lproj/CheatWindow.strings b/macosx/zh-Hans.lproj/CheatWindow.strings index b2f64127..4e2ba4fa 100644 --- a/macosx/zh-Hans.lproj/CheatWindow.strings +++ b/macosx/zh-Hans.lproj/CheatWindow.strings @@ -3,10 +3,10 @@ "1.title" = "金手指"; /* Class = "NSButtonCell"; title = "存储金手指..."; ObjectID = "5"; */ -"5.title" = "存储金手指..."; +"5.title" = "存储金手指…"; /* Class = "NSButtonCell"; title = "载入金手指..."; ObjectID = "7"; */ -"7.title" = "载入金手指..."; +"7.title" = "载入金手指…"; /* Class = "NSTableColumn"; headerCell.title = "名称"; ObjectID = "28"; */ "28.headerCell.title" = "名称"; |
