Index: branches/ErmaC/ChameleonPrefPane/Sources/ChameleonPrefPane.mm =================================================================== --- branches/ErmaC/ChameleonPrefPane/Sources/ChameleonPrefPane.mm (revision 397) +++ branches/ErmaC/ChameleonPrefPane/Sources/ChameleonPrefPane.mm (revision 398) @@ -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: branches/ErmaC/ChameleonPrefPane/Sources/PreferencesControllerBase.mm =================================================================== --- branches/ErmaC/ChameleonPrefPane/Sources/PreferencesControllerBase.mm (revision 397) +++ branches/ErmaC/ChameleonPrefPane/Sources/PreferencesControllerBase.mm (revision 398) @@ -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: branches/ErmaC/ChameleonPrefPane/Sources/PreferencesControllerBase.h =================================================================== --- branches/ErmaC/ChameleonPrefPane/Sources/PreferencesControllerBase.h (revision 397) +++ branches/ErmaC/ChameleonPrefPane/Sources/PreferencesControllerBase.h (revision 398) @@ -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: branches/ErmaC/ChameleonPrefPane/CREDITS =================================================================== --- branches/ErmaC/ChameleonPrefPane/CREDITS (revision 397) +++ branches/ErmaC/ChameleonPrefPane/CREDITS (revision 398) @@ -9,7 +9,7 @@ Contributors & Testers: --------------------- BlackOSX, MasterChief, digital_dreamer, smith@@, scrax, quinielascom -Azimutz, iFabio +Azimutz, ErmaC Chameleon also reuses: --------------------- Index: branches/ErmaC/ChameleonPrefPane/Italian.lproj/Localizable.strings =================================================================== --- branches/ErmaC/ChameleonPrefPane/Italian.lproj/Localizable.strings (revision 397) +++ branches/ErmaC/ChameleonPrefPane/Italian.lproj/Localizable.strings (revision 398) @@ -5,6 +5,8 @@ "Advanced" = "Avanzate"; /* comment */ +"Bios" = "BIOS"; +/* comment */ "Boot_Flags" = "Opzioni Avvio"; /* comment */ @@ -19,5 +21,8 @@ /* comment */ "Peripherals" = "Periferiche"; -/* comment */ -"Bios" = "BIOS"; \ No newline at end of file +/* error */ +"Error_Parsing" = "Errore durante l'analisi %@"; + +/* error */ +"Error_Searching" = "Errore durante la ricerca dell'org.chameleon.Boot.plist"; Index: branches/ErmaC/ChameleonPrefPane/English.lproj/Localizable.strings =================================================================== --- branches/ErmaC/ChameleonPrefPane/English.lproj/Localizable.strings (revision 397) +++ branches/ErmaC/ChameleonPrefPane/English.lproj/Localizable.strings (revision 398) @@ -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";