summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-11-15 19:34:44 -0500
committerSteve Zesch <[email protected]>2012-11-15 19:34:44 -0500
commitfa82b016b8d3b5c63ad5f1af8f021a341d7e3560 (patch)
tree4ad1e33d383fa27fd0851763587fe3dccc2499fd
parent9889c1aaec7cabc7fdf425de7824784ce0da9f81 (diff)
downloadmate-calc-fa82b016b8d3b5c63ad5f1af8f021a341d7e3560.tar.bz2
mate-calc-fa82b016b8d3b5c63ad5f1af8f021a341d7e3560.tar.xz
Mark a few string as translatable, add translator comment to the ones
with non obvious meanings. http://git.gnome.org/browse/gcalctool/commit/?h=gnome-2-32&id=91f3718756d752738cc0b50adbef39f23e68b223
-rw-r--r--data/buttons-financial.ui2
-rw-r--r--src/math-buttons.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/data/buttons-financial.ui b/data/buttons-financial.ui
index 4bb6715..846adf8 100644
--- a/data/buttons-financial.ui
+++ b/data/buttons-financial.ui
@@ -28,7 +28,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label"> in </property>
+ <property name="label" translatable="yes" comments="This is between the currency selector dropdowns, for example: [USD] in [EUR]"> in </property>
</object>
<packing>
<property name="position">1</property>
diff --git a/src/math-buttons.c b/src/math-buttons.c
index 016ca41..3c71ed3 100644
--- a/src/math-buttons.c
+++ b/src/math-buttons.c
@@ -429,7 +429,7 @@ update_angle_label (MathButtons *buttons)
mp_multiply_integer(&fraction, 360, &output);
mp_cast_to_string(&output, 10, 10, 2, false, output_text, 1024);
- label = g_strdup_printf("%s radians = %s degrees", input_text, output_text);
+ label = g_strdup_printf(_("%s radians = %s degrees"), input_text, output_text);
break;
case MP_GRADIANS:
/* Clip to the range ±400 */
@@ -449,7 +449,7 @@ update_angle_label (MathButtons *buttons)
mp_multiply_integer(&fraction, 360, &output);
mp_cast_to_string(&output, 10, 10, 2, false, output_text, 1024);
- label = g_strdup_printf("%s gradians = %s degrees", input_text, output_text);
+ label = g_strdup_printf(_("%s gradians = %s degrees"), input_text, output_text);
break;
}
@@ -554,7 +554,10 @@ update_currency_label(MathButtons *buttons)
for (i = 0; strcmp(math_equation_get_target_currency(buttons->priv->equation), currency_names[i].short_name) != 0; i++);
target_symbol = currency_names[i].symbol;
- label = g_strdup_printf("%s%s = %s%s",
+ /* Translators: first and third %s are currency symbols, second
+ * and fourth are amounts in these currencies, you may want to change
+ * the order of these, example: $100 = €100 */
+ label = g_strdup_printf(_("%s%s = %s%s"),
source_symbol, input_text,
target_symbol, output_text);
}