[gcalctool] Mark a few string as translatable, add translator comment to the ones with non obvious meanings. Fix



commit 91f3718756d752738cc0b50adbef39f23e68b223
Author: Gabor Kelemen <kelemeng gnome hu>
Date:   Thu Sep 30 17:20:53 2010 +0200

    Mark a few string as translatable, add translator comment to the ones with non obvious meanings. Fixes bug #630899

 data/buttons-financial.ui |    2 +-
 src/math-buttons.c        |    7 ++++---
 2 files changed, 5 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 01abb1e..1978ca2 100644
--- a/src/math-buttons.c
+++ b/src/math-buttons.c
@@ -426,7 +426,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 */
@@ -446,7 +446,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;
     }
 
@@ -551,7 +551,8 @@ 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);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]