From c72245e950b135943d221a2e4af08ddefe91534e Mon Sep 17 00:00:00 2001 From: Jerome Guelfucci <jeromeg@xfce.org> Date: Thu, 21 May 2009 10:34:08 +0000 Subject: [PATCH] * lib/sexy-url-label.{c,h}: mark some strings as translatable and include the libxfce4util header to have the "_" translation function. * po/POTFILES.in: add the new translatable files. (Old svn revision: 7384) --- ChangeLog | 7 +++++++ lib/sexy-url-label.c | 4 ++-- lib/sexy-url-label.h | 1 + po/POTFILES.in | 4 +++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c740498..77a7debe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-05-21 jeromeg + + * lib/sexy-url-label.{c,h}: mark some strings as translatable and + include the libxfce4util header to have the "_" translation + function. + * po/POTFILES.in: add the new translatable files. + 2009-05-21 jeromeg * lib/screenshooter-zimagez.c: diff --git a/lib/sexy-url-label.c b/lib/sexy-url-label.c index b69fc9a3..f504c0e8 100644 --- a/lib/sexy-url-label.c +++ b/lib/sexy-url-label.c @@ -173,7 +173,7 @@ sexy_url_label_init(SexyUrlLabel *url_label) priv->popup_menu = gtk_menu_new(); /* Open Link */ - item = gtk_image_menu_item_new_with_mnemonic("_Open Link"); + item = gtk_image_menu_item_new_with_mnemonic(_("_Open Link")); gtk_widget_show(item); gtk_menu_shell_append(GTK_MENU_SHELL(priv->popup_menu), item); @@ -185,7 +185,7 @@ sexy_url_label_init(SexyUrlLabel *url_label) gtk_widget_show(image); /* Copy Link Address */ - item = gtk_image_menu_item_new_with_mnemonic("Copy _Link Address"); + item = gtk_image_menu_item_new_with_mnemonic(_("Copy _Link Address")); gtk_widget_show(item); gtk_menu_shell_append(GTK_MENU_SHELL(priv->popup_menu), item); diff --git a/lib/sexy-url-label.h b/lib/sexy-url-label.h index 784ce861..1044e3ef 100644 --- a/lib/sexy-url-label.h +++ b/lib/sexy-url-label.h @@ -26,6 +26,7 @@ typedef struct _SexyUrlLabel SexyUrlLabel; typedef struct _SexyUrlLabelClass SexyUrlLabelClass; #include <gtk/gtk.h> +#include <libxfce4util/libxfce4util.h> #define SEXY_TYPE_URL_LABEL (sexy_url_label_get_type()) #define SEXY_URL_LABEL(obj) \ diff --git a/po/POTFILES.in b/po/POTFILES.in index b529a509..f2d5ba1a 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,5 +1,7 @@ -lib/screenshooter-utils.c lib/screenshooter-dialogs.c +lib/screenshooter-utils.c +lib/screenshooter-zimagez.c +lib/sexy-url-label.c src/main.c src/xfce4-screenshooter.desktop.in.in panel-plugin/screenshooter-plugin.c -- GitLab