Mercurial > hg > xmms-sid
comparison src/xs_config.c @ 941:63342bbeab47
Mark messagebox messages as translatable strings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Nov 2012 18:03:35 +0200 |
parents | d624258d7800 |
children | f8e1de328ac1 |
comparison
equal
deleted
inserted
replaced
940:d624258d7800 | 941:63342bbeab47 |
---|---|
222 { | 222 { |
223 case XS_ENG_SIDPLAYFP: | 223 case XS_ENG_SIDPLAYFP: |
224 { | 224 { |
225 if (xs_cfg.romPath == NULL || xs_cfg.romPath[0] == 0) | 225 if (xs_cfg.romPath == NULL || xs_cfg.romPath[0] == 0) |
226 { | 226 { |
227 xs_messagebox("Error", | 227 xs_messagebox(_("Error"), |
228 "You have selected libSIDPlayFP backend, but not set the C64 ROM images directory."); | 228 _("You have selected libSIDPlayFP backend, but not set the C64 ROM images directory.\n")); |
229 return FALSE; | 229 return FALSE; |
230 } | 230 } |
231 | 231 |
232 if (!xs_is_dir_path(xs_cfg.romPath)) | 232 if (!xs_is_dir_path(xs_cfg.romPath)) |
233 { | 233 { |
234 xs_messagebox("Error", | 234 xs_messagebox(_("Error"), |
235 "The C64 ROM images directory path '%s' is not a directory.\n", | 235 _("The C64 ROM images directory path '%s' is not a directory.\n"), |
236 xs_cfg.romPath); | 236 xs_cfg.romPath); |
237 return FALSE; | 237 return FALSE; |
238 } | 238 } |
239 | 239 |
240 gint i; | 240 gint i; |
255 g_free(buf); | 255 g_free(buf); |
256 } | 256 } |
257 | 257 |
258 if (result != NULL) | 258 if (result != NULL) |
259 { | 259 { |
260 xs_messagebox("Error", | 260 xs_messagebox(_("Error"), |
261 "Could not load the required C64 ROM image files from '%s'.\n" | 261 _("Could not load the required C64 ROM image files from '%s'.\n" |
262 "\n" | 262 "\n" |
263 "Following files could not be found: %s.", | 263 "Following files could not be found: %s."), |
264 xs_cfg.romPath, result); | 264 xs_cfg.romPath, result); |
265 g_free(result); | 265 g_free(result); |
266 return FALSE; | 266 return FALSE; |
267 } | 267 } |
268 } | 268 } |
1230 (void) user_data; | 1230 (void) user_data; |
1231 gchar *path, *result = gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_hvsc_selector)); | 1231 gchar *path, *result = gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_hvsc_selector)); |
1232 if (!xs_is_dir_path(result)) | 1232 if (!xs_is_dir_path(result)) |
1233 { | 1233 { |
1234 path = xs_get_dir_path(result); | 1234 path = xs_get_dir_path(result); |
1235 xs_messagebox("Warning", | 1235 xs_messagebox(_("Warning"), |
1236 "Selected HVSC path '%s' does not seem like a path, adjusting to '%s'.\n", | 1236 _("Selected HVSC path '%s' does not seem like a path, adjusting to '%s'.\n"), |
1237 result, path); | 1237 result, path); |
1238 } | 1238 } |
1239 else | 1239 else |
1240 path = result; | 1240 path = result; |
1241 | 1241 |
1279 (void) user_data; | 1279 (void) user_data; |
1280 gchar *path, *result = gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_rom_selector)); | 1280 gchar *path, *result = gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_rom_selector)); |
1281 if (!xs_is_dir_path(result)) | 1281 if (!xs_is_dir_path(result)) |
1282 { | 1282 { |
1283 path = xs_get_dir_path(result); | 1283 path = xs_get_dir_path(result); |
1284 xs_messagebox("Warning", | 1284 xs_messagebox(_("Warning"), |
1285 "Selected ROM path '%s' does not seem like a path, adjusting to '%s'.\n", | 1285 _("Selected ROM path '%s' does not seem like a path, adjusting to '%s'.\n"), |
1286 result, path); | 1286 result, path); |
1287 } | 1287 } |
1288 else | 1288 else |
1289 path = result; | 1289 path = result; |
1290 | 1290 |