Make volume name display formats translatable.

2005-01-23  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
	Make volume name display formats translatable.
This commit is contained in:
Tor Lillqvist 2005-01-23 01:14:59 +00:00 committed by Tor Lillqvist
parent 736f4c8758
commit eaec6d352c
4 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,8 @@
connected or not, so it's easier to just not try getting the
volume name for them. See the bug report for discussion.
Make volume name display formats translatable.
Fix for #163702, from Ivan Wong:
* gdk/win32/gdkprivate-win32.h

View File

@ -16,6 +16,8 @@
connected or not, so it's easier to just not try getting the
volume name for them. See the bug report for discussion.
Make volume name display formats translatable.
Fix for #163702, from Ivan Wong:
* gdk/win32/gdkprivate-win32.h

View File

@ -16,6 +16,8 @@
connected or not, so it's easier to just not try getting the
volume name for them. See the bug report for discussion.
Make volume name display formats translatable.
Fix for #163702, from Ivan Wong:
* gdk/win32/gdkprivate-win32.h

View File

@ -608,7 +608,7 @@ gtk_file_system_win32_volume_get_display_name (GtkFileSystem *file_system,
if (filename_is_drive_root (volume->drive) &&
volume->drive_type == DRIVE_REMOTE)
real_display_name = g_strdup (volume->drive);
real_display_name = g_strdup_printf (_("Network Drive (%s)"), volume->drive);
else if ((filename_is_drive_root (volume->drive) && volume->drive[0] >= 'C') ||
volume->drive_type != DRIVE_REMOVABLE)
{
@ -623,7 +623,7 @@ gtk_file_system_win32_volume_get_display_name (GtkFileSystem *file_system,
wname[0])
{
gchar *name = g_utf16_to_utf8 (wname, -1, NULL, NULL, NULL);
real_display_name = g_strconcat (name, " (", volume->drive, ")", NULL);
real_display_name = g_strdup_printf (_("%s (%s)"), name, volume->drive);
g_free (name);
}
else