Index: trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm =================================================================== --- trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm (revision 396) +++ trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm (revision 397) @@ -228,10 +228,12 @@ ft=false; [mStatusText setTextColor: [NSColor redColor] ]; if (errorString) - [mStatusText setStringValue:[NSString stringWithFormat: @"Error while parsing org.chameleon.Boot.plist : %@", + [mStatusText setStringValue:[NSString stringWithFormat: + GetLocStrDef(@"Error_Parsing", @"error", @"Error while parsing %@"), errorString] ]; else - [mStatusText setStringValue: @"Error while searching for org.chameleon.Boot.plist"]; + [mStatusText setStringValue: + GetLocStrDef(@"Error_Searching", @"Error while searching for org.chameleon.Boot.plist", @"error") ]; } else Index: trunk/ChameleonPrefPane/Sources/PreferencesControllerBase.mm =================================================================== --- trunk/ChameleonPrefPane/Sources/PreferencesControllerBase.mm (revision 396) +++ trunk/ChameleonPrefPane/Sources/PreferencesControllerBase.mm (revision 397) @@ -20,8 +20,15 @@ static KernOptionsParser kernelFlags; //-------------------------------------------------------------------------- +NSString* GetLocStrDef(NSString* label, NSString* comment, NSString* def) +{ + return NSLocalizedStringWithDefaultValue(label, nil, + [NSBundle bundleForClass:[ChameleonPrefPane class]], + def, + comment); +} +//-------------------------------------------------------------------------- - @implementation PreferencesControllerBase -(ChameleonPrefPane*) chameleon { return [ChameleonPrefPane instance]; } Index: trunk/ChameleonPrefPane/Sources/PreferencesControllerBase.h =================================================================== --- trunk/ChameleonPrefPane/Sources/PreferencesControllerBase.h (revision 396) +++ trunk/ChameleonPrefPane/Sources/PreferencesControllerBase.h (revision 397) @@ -29,6 +29,8 @@ SaveBootConfigOptions }; +/// PrefPane Localization Helper +NSString* GetLocStrDef(NSString* label, NSString* comment, NSString* def); // ENHANCE ME: remove this globals and integrate them in ChameleonPrefPane or at least Index: trunk/ChameleonPrefPane/English.lproj/Localizable.strings =================================================================== --- trunk/ChameleonPrefPane/English.lproj/Localizable.strings (revision 396) +++ trunk/ChameleonPrefPane/English.lproj/Localizable.strings (revision 397) @@ -22,6 +22,8 @@ /* comment */ "Peripherals" = "Peripherals"; -/* error message 1*/ -"Error while parsing" = "ERROR123456"; -"Error searching for" = "ERROR123456"; \ No newline at end of file +/* error */ +"Error_Parsing" = "Error while parsing %@"; + +/* error */ +"Error_Searching" = "Error while searching for org.chameleon.Boot.plist";