From 7ad4661fef20aa3d404858f5250636bfeb0c8a7e Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 7 Mar 2008 23:24:42 +0000 Subject: Use dgettext instead of gettext as we are a library. 2008-03-08 Christian Kellner * hal/ghalmount.c: Use dgettext instead of gettext as we are a library. * hal/ghalvolume.c: Translate disc names (using dgettext). svn path=/trunk/; revision=1613 --- ChangeLog | 8 ++++++++ hal/ghalmount.c | 4 ++-- hal/ghalvolume.c | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 210091b4..2f203a0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-03-08 Christian Kellner + + * hal/ghalmount.c: + Use dgettext instead of gettext as we are a library. + + * hal/ghalvolume.c: + Translate disc names (using dgettext). + 2008-03-07 Alexander Larsson * hal/ghalvolumemonitor.c: diff --git a/hal/ghalmount.c b/hal/ghalmount.c index 7f205864..e4f77e3b 100644 --- a/hal/ghalmount.c +++ b/hal/ghalmount.c @@ -209,9 +209,9 @@ get_disc_name (const char *disc_type, gboolean is_blank) } if (is_blank) - return gettext(disc_data[n].ui_name_blank); + return dgettext (GETTEXT_PACKAGE, disc_data[n].ui_name_blank); else - return gettext(disc_data[n].ui_name); + return dgettext (GETTEXT_PACKAGE, disc_data[n].ui_name); } typedef struct _MountIconSearchData diff --git a/hal/ghalvolume.c b/hal/ghalvolume.c index 5a57f3e3..8cc18bbd 100644 --- a/hal/ghalvolume.c +++ b/hal/ghalvolume.c @@ -184,9 +184,9 @@ get_disc_name (const char *disc_type, gboolean is_blank) } if (is_blank) - return disc_data[n].ui_name_blank; + return dgettext (GETTEXT_PACKAGE, disc_data[n].ui_name_blank); else - return disc_data[n].ui_name; + return dgettext (GETTEXT_PACKAGE, disc_data[n].ui_name); } -- cgit v1.2.1