diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-01-01 21:02:23 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-06 23:18:29 +0800 |
commit | e38cc7c99febaf760bc07e118c8ce3f2d1ffe615 (patch) | |
tree | f7045b37466cbe75e0ae4ac6dc8a3e6c25a4eb6d /libempathy-gtk | |
parent | 909a8b53b6ef8ec6e4a9e5bed8bbb5226dc061f4 (diff) | |
download | gsoc2013-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.ui | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-groupwise.ui | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-icq.ui | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-jabber.ui | 20 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-msn.ui | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-sip.ui | 34 | ||||
-rw-r--r-- | libempathy-gtk/empathy-account-widget-yahoo.ui | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 6 |
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"><span size="small"><b>Example:</b> MyScreenName</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> MyScreenName</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> username</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> username</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> 123456789</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> 123456789</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@jabber.org</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@gmail.com</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@jabber.org</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@gmail.com</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@hotmail.com</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@hotmail.com</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> user@my.sip.server</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><b>NAT Traversal Options</b></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"><b>Proxy Options</b></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"><b>Miscellaneous Options</b></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"><b>Keep-Alive Options</b></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"><span size="small"><b>Example:</b> user@my.sip.server</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> username</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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"><span size="small"><b>Example:</b> username</span></property> + <property name="label" translatable="yes"><b>Example:</b> 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; |