From 3a95c35d2f1727970f622b897778233a5ff9ebd8 Mon Sep 17 00:00:00 2001 From: Pierre Wieser Date: Mon, 23 Aug 2010 16:06:55 +0200 Subject: [PATCH] Make the error message translatable --- ChangeLog | 6 ++++++ po/POTFILES.in | 1 + src/core/na-selected-info.c | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ac8ee56..fd5095f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-08-23 Pierre Wieser + * po/POTFILES.in: Add src/core/na-selected-info.c file. + + * src/core/na-selected-info.c (query_file_attributes): + Make the error message translatable. + + * src/core/na-tokens.c (na_tokens_new_from_selection): Do not get dirname of a null filename. (parse_singular): Take care of possibly null data or over-indexing. diff --git a/po/POTFILES.in b/po/POTFILES.in index abd83e77..97caa999 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -13,6 +13,7 @@ src/core/na-object-item-factory.c src/core/na-object-menu.c src/core/na-object-profile.c src/core/na-object-profile-factory.c +src/core/na-selected-info.c src/core/na-tokens.c src/io-desktop/nadp-desktop-provider.c src/io-gconf/nagp-gconf-provider.c diff --git a/src/core/na-selected-info.c b/src/core/na-selected-info.c index de0efcd4..0a62ea95 100644 --- a/src/core/na-selected-info.c +++ b/src/core/na-selected-info.c @@ -32,6 +32,7 @@ #include #endif +#include #include #include "na-gnome-vfs-uri.h" @@ -671,7 +672,7 @@ query_file_attributes( NASelectedInfo *nsi, gchar **errmsg ) if( error ){ if( errmsg ){ - *errmsg = g_strdup_printf( "Error when querying informations for %s URI: %s", nsi->private->uri, error->message ); + *errmsg = g_strdup_printf( _( "Error when querying informations for %s URI: %s" ), nsi->private->uri, error->message ); } else { g_warning( "%s: g_file_query_info: %s", thisfn, error->message ); } -- 2.11.4.GIT