aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-01-01 21:02:23 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-06 23:18:29 +0800
commite38cc7c99febaf760bc07e118c8ce3f2d1ffe615 (patch)
treef7045b37466cbe75e0ae4ac6dc8a3e6c25a4eb6d /libempathy-gtk
parent909a8b53b6ef8ec6e4a9e5bed8bbb5226dc061f4 (diff)
downloadgsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar
gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.gz
gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.bz2
gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.lz
gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.xz
gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.zst
gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.zip
Remove Pango markup from translatable strings where possible
Use GtkBuilder attributes on labels instead, and change one instance of code to automatically add markup to the translated string.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-aim.ui10
-rw-r--r--libempathy-gtk/empathy-account-widget-groupwise.ui10
-rw-r--r--libempathy-gtk/empathy-account-widget-icq.ui10
-rw-r--r--libempathy-gtk/empathy-account-widget-jabber.ui20
-rw-r--r--libempathy-gtk/empathy-account-widget-msn.ui10
-rw-r--r--libempathy-gtk/empathy-account-widget-sip.ui34
-rw-r--r--libempathy-gtk/empathy-account-widget-yahoo.ui10
-rw-r--r--libempathy-gtk/empathy-contact-widget.c6
8 files changed, 85 insertions, 25 deletions
diff --git a/libempathy-gtk/empathy-account-widget-aim.ui b/libempathy-gtk/empathy-account-widget-aim.ui
index 2dfdde216..63d894625 100644
--- a/libempathy-gtk/empathy-account-widget-aim.ui
+++ b/libempathy-gtk/empathy-account-widget-aim.ui
@@ -107,8 +107,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; MyScreenName&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; MyScreenName</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -253,8 +256,11 @@
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; MyScreenName&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; MyScreenName</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-account-widget-groupwise.ui b/libempathy-gtk/empathy-account-widget-groupwise.ui
index d8ce768f9..1f6c5aae6 100644
--- a/libempathy-gtk/empathy-account-widget-groupwise.ui
+++ b/libempathy-gtk/empathy-account-widget-groupwise.ui
@@ -108,8 +108,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; username&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; username</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -254,8 +257,11 @@
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; username&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; username</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-account-widget-icq.ui b/libempathy-gtk/empathy-account-widget-icq.ui
index 495d6e949..f889fd050 100644
--- a/libempathy-gtk/empathy-account-widget-icq.ui
+++ b/libempathy-gtk/empathy-account-widget-icq.ui
@@ -107,8 +107,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; 123456789&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; 123456789</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -282,8 +285,11 @@
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; 123456789&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; 123456789</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-account-widget-jabber.ui b/libempathy-gtk/empathy-account-widget-jabber.ui
index ac70fc4db..f9210c645 100644
--- a/libempathy-gtk/empathy-account-widget-jabber.ui
+++ b/libempathy-gtk/empathy-account-widget-jabber.ui
@@ -112,8 +112,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@jabber.org&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@jabber.org</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">0</property>
@@ -123,8 +126,11 @@
<object class="GtkLabel" id="label_username_g_example">
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@gmail.com&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@gmail.com</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
@@ -443,8 +449,11 @@
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@jabber.org&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@jabber.org</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
@@ -542,8 +551,11 @@
<object class="GtkLabel" id="label_g_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@gmail.com&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@gmail.com</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-account-widget-msn.ui b/libempathy-gtk/empathy-account-widget-msn.ui
index 083f4f9bd..9a9250b75 100644
--- a/libempathy-gtk/empathy-account-widget-msn.ui
+++ b/libempathy-gtk/empathy-account-widget-msn.ui
@@ -108,8 +108,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@hotmail.com&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@hotmail.com</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -254,8 +257,11 @@
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@hotmail.com&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@hotmail.com</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-account-widget-sip.ui b/libempathy-gtk/empathy-account-widget-sip.ui
index 1f465e478..13cc2f959 100644
--- a/libempathy-gtk/empathy-account-widget-sip.ui
+++ b/libempathy-gtk/empathy-account-widget-sip.ui
@@ -102,8 +102,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@my.sip.server&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@my.sip.server</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -199,8 +202,10 @@ username.</property>
<object class="GtkLabel" id="label_nat_traversal">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;NAT Traversal Options&lt;/b&gt;</property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">NAT Traversal Options</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="right_attach">4</property>
@@ -210,8 +215,10 @@ username.</property>
<object class="GtkLabel" id="label_proxy">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Proxy Options&lt;/b&gt;</property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Proxy Options</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="right_attach">4</property>
@@ -223,8 +230,10 @@ username.</property>
<object class="GtkLabel" id="label_misc">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Miscellaneous Options&lt;/b&gt;</property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Miscellaneous Options</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="right_attach">4</property>
@@ -318,8 +327,10 @@ username.</property>
<object class="GtkLabel" id="label_keep_alive">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Keep-Alive Options&lt;/b&gt;</property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Keep-Alive Options</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="right_attach">4</property>
@@ -555,8 +566,11 @@ username.</property>
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; user@my.sip.server&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@my.sip.server</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-account-widget-yahoo.ui b/libempathy-gtk/empathy-account-widget-yahoo.ui
index 0880cc7f4..c595a3430 100644
--- a/libempathy-gtk/empathy-account-widget-yahoo.ui
+++ b/libempathy-gtk/empathy-account-widget-yahoo.ui
@@ -108,8 +108,11 @@
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; username&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; username</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -357,8 +360,11 @@
<object class="GtkLabel" id="label_example">
<property name="visible">True</property>
<property name="xalign">0.10000000149011612</property>
- <property name="label" translatable="yes">&lt;span size="small"&gt;&lt;b&gt;Example:&lt;/b&gt; username&lt;/span&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; username</property>
<property name="use_markup">True</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="position">1</property>
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 134f67fb3..8b1522dc4 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1365,7 +1365,11 @@ contact_widget_location_update (EmpathyContactWidget *information)
value = g_hash_table_lookup (location, EMPATHY_LOCATION_TIMESTAMP);
if (value == NULL)
- gtk_label_set_markup (GTK_LABEL (information->label_location), _("<b>Location</b>"));
+ {
+ gchar *location = g_strdup_printf ("<b>%s</b>", _("Location"));
+ gtk_label_set_markup (GTK_LABEL (information->label_location), location);
+ g_free (location);
+ }
else
{
gchar *user_date;