summaryrefslogtreecommitdiff
path: root/src/themes/nodoka/nodoka-theme.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-24 22:04:58 +0200
committerraveit65 <[email protected]>2016-06-24 22:04:58 +0200
commit2111df36e03c9d1dbb5529594ebce42cf9e39f85 (patch)
treedd19b6fb57bab6c12846f94fcd9486d0590ff57c /src/themes/nodoka/nodoka-theme.c
parentde5e743317a3c150c276bb83d79d25a2a647bbb4 (diff)
downloadmate-notification-daemon-2111df36e03c9d1dbb5529594ebce42cf9e39f85.tar.bz2
mate-notification-daemon-2111df36e03c9d1dbb5529594ebce42cf9e39f85.tar.xz
themes: make text translatable
taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=b156f34
Diffstat (limited to 'src/themes/nodoka/nodoka-theme.c')
-rw-r--r--src/themes/nodoka/nodoka-theme.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 40095ea..318291c 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -25,6 +25,7 @@
#include "config.h"
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
/* Define basic nodoka types */
@@ -807,7 +808,7 @@ create_notification(UrlClickedCb url_clicked)
gtk_label_set_line_wrap_mode (GTK_LABEL (windata->summary_label), PANGO_WRAP_WORD_CHAR);
atkobj = gtk_widget_get_accessible(windata->summary_label);
- atk_object_set_description(atkobj, "Notification summary text.");
+ atk_object_set_description (atkobj, _("Notification summary text."));
/* Add the close button */
close_button = gtk_button_new();
@@ -821,9 +822,9 @@ create_notification(UrlClickedCb url_clicked)
atkobj = gtk_widget_get_accessible(close_button);
atk_action_set_description(ATK_ACTION(atkobj), 0,
- "Closes the notification.");
+ _("Closes the notification."));
atk_object_set_name(atkobj, "");
- atk_object_set_description(atkobj, "Closes the notification.");
+ atk_object_set_description (atkobj, _("Closes the notification."));
image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
gtk_widget_show(image);
@@ -864,7 +865,7 @@ create_notification(UrlClickedCb url_clicked)
G_CALLBACK(activate_link), windata);
atkobj = gtk_widget_get_accessible(windata->body_label);
- atk_object_set_description(atkobj, "Notification body text.");
+ atk_object_set_description (atkobj, _("Notification body text."));
windata->actions_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_set_halign (windata->actions_box, GTK_ALIGN_END);