From fa82b016b8d3b5c63ad5f1af8f021a341d7e3560 Mon Sep 17 00:00:00 2001
From: Steve Zesch <stevezesch2@gmail.com>
Date: Thu, 15 Nov 2012 19:34:44 -0500
Subject: 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
---
 src/math-buttons.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'src')

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);
     }
-- 
cgit v1.2.1