From 3905f1452887b591eb3685ffad6c66cbab203840 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Jan 2008 05:18:17 +0000 Subject: [PATCH] Mark strings for translation. svn path=/trunk/; revision=6256 --- gio/ChangeLog | 6 ++++++ gio/glocaldirectorymonitor.c | 13 ++++++++++--- gio/glocalfilemonitor.c | 13 ++++++++++--- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 7ad775b..54702f6 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,11 @@ 2008-01-06 Matthias Clasen + * glocalfilemonitor.c: + * glocaldirectorymonitor.c: Mark property nicks and blurbs + for translation. + +2008-01-06 Matthias Clasen + * gdesktopappinfo.c: Fix a docs typo. * gfileattribute.c: Add information about extended attributes diff --git a/gio/glocaldirectorymonitor.c b/gio/glocaldirectorymonitor.c index 1ee3de7..3667571 100644 --- a/gio/glocaldirectorymonitor.c +++ b/gio/glocaldirectorymonitor.c @@ -26,6 +26,7 @@ #include "gunixmounts.h" #include "gdirectorymonitor.h" #include "giomodule-priv.h" +#include "glibintl.h" #include @@ -147,9 +148,15 @@ g_local_directory_monitor_class_init (GLocalDirectoryMonitorClass* klass) dir_monitor_class->cancel = g_local_directory_monitor_cancel; - g_object_class_install_property (gobject_class, PROP_DIRNAME, - g_param_spec_string ("dirname", "Directory name", "Directory to monitor", - NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE)); + g_object_class_install_property (gobject_class, + PROP_DIRNAME, + g_param_spec_string ("dirname", + P_("Directory name"), + P_("Directory to monitor"), + NULL, + G_PARAM_CONSTRUCT_ONLY| + G_PARAM_WRITABLE| + G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); klass->mount_notify = FALSE; } diff --git a/gio/glocalfilemonitor.c b/gio/glocalfilemonitor.c index b18c1c7..6ca67a5 100644 --- a/gio/glocalfilemonitor.c +++ b/gio/glocalfilemonitor.c @@ -24,6 +24,7 @@ #include "glocalfilemonitor.h" #include "giomodule-priv.h" +#include "glibintl.h" #include @@ -118,9 +119,15 @@ g_local_file_monitor_class_init (GLocalFileMonitorClass* klass) gobject_class->finalize = g_local_file_monitor_finalize; gobject_class->constructor = g_local_file_monitor_constructor; - g_object_class_install_property (gobject_class, PROP_FILENAME, - g_param_spec_string ("filename", "File name", "File name to monitor", - NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE)); + g_object_class_install_property (gobject_class, + PROP_FILENAME, + g_param_spec_string ("filename", + P_("File name"), + P_("File name to monitor"), + NULL, + G_PARAM_CONSTRUCT_ONLY| + G_PARAM_WRITABLE| + G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); } static gint -- 2.7.4