# HG changeset patch # User Matti Hamalainen # Date 1353341015 -7200 # Node ID 63342bbeab47b31bb0e497e34c34508953c5d254 # Parent d624258d7800a94b70f3bd577642b014c3266823 Mark messagebox messages as translatable strings. diff -r d624258d7800 -r 63342bbeab47 src/xs_config.c --- a/src/xs_config.c Mon Nov 19 17:59:52 2012 +0200 +++ b/src/xs_config.c Mon Nov 19 18:03:35 2012 +0200 @@ -224,15 +224,15 @@ { if (xs_cfg.romPath == NULL || xs_cfg.romPath[0] == 0) { - xs_messagebox("Error", - "You have selected libSIDPlayFP backend, but not set the C64 ROM images directory."); + xs_messagebox(_("Error"), + _("You have selected libSIDPlayFP backend, but not set the C64 ROM images directory.\n")); return FALSE; } if (!xs_is_dir_path(xs_cfg.romPath)) { - xs_messagebox("Error", - "The C64 ROM images directory path '%s' is not a directory.\n", + xs_messagebox(_("Error"), + _("The C64 ROM images directory path '%s' is not a directory.\n"), xs_cfg.romPath); return FALSE; } @@ -257,10 +257,10 @@ if (result != NULL) { - xs_messagebox("Error", - "Could not load the required C64 ROM image files from '%s'.\n" + xs_messagebox(_("Error"), + _("Could not load the required C64 ROM image files from '%s'.\n" "\n" - "Following files could not be found: %s.", + "Following files could not be found: %s."), xs_cfg.romPath, result); g_free(result); return FALSE; @@ -1232,8 +1232,8 @@ if (!xs_is_dir_path(result)) { path = xs_get_dir_path(result); - xs_messagebox("Warning", - "Selected HVSC path '%s' does not seem like a path, adjusting to '%s'.\n", + xs_messagebox(_("Warning"), + _("Selected HVSC path '%s' does not seem like a path, adjusting to '%s'.\n"), result, path); } else @@ -1281,8 +1281,8 @@ if (!xs_is_dir_path(result)) { path = xs_get_dir_path(result); - xs_messagebox("Warning", - "Selected ROM path '%s' does not seem like a path, adjusting to '%s'.\n", + xs_messagebox(_("Warning"), + _("Selected ROM path '%s' does not seem like a path, adjusting to '%s'.\n"), result, path); } else