diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2011-01-13 16:53:11 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2011-01-13 16:55:42 +0000 |
commit | e1f30bb15ea6f54d2b2e5d60b3b390cf2153130b (patch) | |
tree | 626bf7dace0290a4ffe3d807aa5909d2c1296fed | |
parent | 8e596875cf660f9db3a80063c058d983acb3ff6a (diff) | |
download | totem-e1f30bb15ea6f54d2b2e5d60b3b390cf2153130b.tar.gz |
Bug 639398 — seconds and second strings
Slightly improve a translatable string which is used purely to set the width
of a label. Helps: bgo#639398
-rw-r--r-- | src/plugins/skipto/totem-skipto.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/skipto/totem-skipto.c b/src/plugins/skipto/totem-skipto.c index cfc803a36..4fe5421e6 100644 --- a/src/plugins/skipto/totem-skipto.c +++ b/src/plugins/skipto/totem-skipto.c @@ -35,6 +35,7 @@ #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> +#include <stdlib.h> #include "totem-dirs.h" #include "totem-skipto.h" @@ -164,6 +165,7 @@ totem_skipto_new (TotemObject *totem) { TotemSkipto *skipto; GtkWidget *container; + guint label_length; skipto = TOTEM_SKIPTO (g_object_new (TOTEM_TYPE_SKIPTO, NULL)); @@ -182,7 +184,11 @@ totem_skipto_new (TotemObject *totem) (skipto->priv->xml, "tstw_seconds_label")); /* Fix the label width at the maximum necessary for the plural labels, to prevent it changing size when we change the spinner value */ - gtk_label_set_width_chars (skipto->priv->seconds_label, MAX (strlen (_("second")), strlen (_("seconds")))); + /* Translators: you should translate this string to a number (written in digits) which corresponds to the longer character length of the + * translations for "second" and "seconds", as translated elsewhere in this file. For example, in English, "second" is 6 characters long and + * "seconds" is 7 characters long, so this string should be translated to "7". See: bgo#639398 */ + label_length = strtoul (C_("Skip To label length", "7"), NULL, 10); + gtk_label_set_width_chars (skipto->priv->seconds_label, label_length); /* Set the initial "seconds" label */ tstw_adjustment_value_changed_cb (GTK_ADJUSTMENT (gtk_builder_get_object |