[gnome-control-center] power: Make Tip translatable
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] power: Make Tip translatable
- Date: Tue, 18 Sep 2012 22:54:01 +0000 (UTC)
commit 5f27eb0cec5efd3da76fae8a8bfbb1bedf01656a
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 19 00:52:24 2012 +0200
power: Make Tip translatable
https://bugzilla.gnome.org/show_bug.cgi?id=684309
panels/power/cc-power-panel.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 7d9c9a1..ae81c98 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -993,6 +993,7 @@ cc_power_panel_init (CcPowerPanel *self)
GError *error;
GtkWidget *widget;
gint value;
+ char *text;
self->priv = POWER_PANEL_PRIVATE (self);
@@ -1070,8 +1071,11 @@ cc_power_panel_init (CcPowerPanel *self)
widget = GTK_WIDGET (gtk_builder_get_object (self->priv->builder,
"label_screen_settings"));
/* TRANSLATORS: this is a link to the "Brightness and Lock" control center panel */
- gtk_label_set_markup (GTK_LABEL (widget),
- "<span size=\"small\">Tip: <a href=\"screen\">screen brightness</a> affects how much power is used</span>");
+ text = g_strdup_printf ("<span size=\"small\">%s</span>",
+ _("Tip: <a href=\"screen\">screen brightness</a> affects how much power is used"));
+ gtk_label_set_markup (GTK_LABEL (widget), text);
+ g_free (text);
+
g_signal_connect (widget, "activate-link",
G_CALLBACK (activate_link_cb),
self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]