From c11ed17e579ce4ccaea0d218d92f96bef21b50c8 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 22 Nov 2011 04:07:13 +0000 Subject: Localizing the Named Sliders in the SPU plug-in. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72527 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- .../DFSound/English.lproj/Localizable.strings | 18 +++++++++++++++ macosx/plugins/DFSound/macsrc/PluginController.m | 27 +++++++++++----------- 2 files changed, 32 insertions(+), 13 deletions(-) (limited to 'macosx/plugins/DFSound') diff --git a/macosx/plugins/DFSound/English.lproj/Localizable.strings b/macosx/plugins/DFSound/English.lproj/Localizable.strings index fe252941..cc95ea1d 100644 --- a/macosx/plugins/DFSound/English.lproj/Localizable.strings +++ b/macosx/plugins/DFSound/English.lproj/Localizable.strings @@ -10,3 +10,21 @@ "OpenAL Sound" = "OpenAL Sound"; "Mac OS X Sound" = "Mac OS X Sound"; "P.E.Op.S. Sound Driver V1.7\nCoded by Pete Bernert and the P.E.Op.S. team\n" = "P.E.Op.S. Sound Driver V1.7\nCoded by Pete Bernert and the P.E.Op.S. team\n"; + +/* Interpolation Values */ +"(No Interpolation)" = "(No Interpolation)"; +"(Simple Interpolation)" = "(Simple Interpolation)"; +"(Gaussian Interpolation)" = "(Gaussian Interpolation)"; +"(Cubic Interpolation)" = "(Cubic Interpolation)"; + +/* Reverb Values */ +"(No Reverb)" = "(No Reverb)"; +"(Simple Reverb)" = "(Simple Reverb)"; +"(PSX Reverb)" = "(PSX Reverb)"; + +/* Volume Values */ +"(Muted)" = "(Muted)"; +"(Low)" = "(Low)"; +"(Medium)" = "(Medium)"; +"(Loud)" = "(Loud)"; +"(Loudest)" = "(Loudest)"; diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index 07446a20..25c55c74 100644 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -183,26 +183,27 @@ void ReadConfig(void) - (void)awakeFromNib { - //TODO: localize these, probably in their own table + NSBundle *mainBundle = [NSBundle bundleForClass:[self class]]; + [interpolValue setStrings:[NSArray arrayWithObjects: - @"(No Interpolation)", - @"(Simple Interpolation)", - @"(Gaussian Interpolation)", - @"(Cubic Interpolation)", + [mainBundle localizedStringForKey:@"(No Interpolation)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Simple Interpolation)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Gaussian Interpolation)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Cubic Interpolation)" value:nil table:nil], nil]]; [reverbValue setStrings:[NSArray arrayWithObjects: - @"(No Reverb)", - @"(Simple Reverb)", - @"(PSX Reverb)", + [mainBundle localizedStringForKey:@"(No Reverb)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Simple Reverb)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(PSX Reverb)" value:nil table:nil], nil]]; [volumeValue setStrings:[NSArray arrayWithObjects: - @"(Muted)", - @"(Low)", - @"(Medium)", - @"(Loud)", - @"(Loudest)", + [mainBundle localizedStringForKey:@"(Muted)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Low)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Medium)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Loud)" value:nil table:nil], + [mainBundle localizedStringForKey:@"(Loudest)" value:nil table:nil], nil]]; } -- cgit v1.2.3