Revert accidental translatable string change, use same string for warning

2006-08-23  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
	Revert accidental translatable string change, use same string
	for warning as in gtkfilesystemunix.c.
This commit is contained in:
Tor Lillqvist 2006-08-23 08:48:42 +00:00 committed by Tor Lillqvist
parent 3420b7e654
commit 2e2f121930
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2006-08-23 Tor Lillqvist <tml@novell.com>
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
Revert accidental translatable string change, use same string
for warning as in gtkfilesystemunix.c.
* gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
Fix logic at the end of strings.

View File

@ -1403,13 +1403,17 @@ gtk_file_system_win32_make_path (GtkFileSystem *file_system,
if ((p = strpbrk (display_name, "<>\"/\\|")))
{
gchar badchar[2];
badchar[0] = *p; /* We know it is a single-byte char */
badchar[1] = '\0';
g_set_error (error,
GTK_FILE_SYSTEM_ERROR,
GTK_FILE_SYSTEM_ERROR_BAD_FILENAME,
_("The name \"%s\" is not valid because it contains the character \"%c\". "
_("The name \"%s\" is not valid because it contains the character \"%s\". "
"Please use a different name."),
display_name,
*p);
badchar);
return NULL;
}