summaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/math-buttons.c9
1 files changed, 6 insertions, 3 deletions
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);
}