diff options
-rw-r--r-- | data/buttons-financial.ui | 2 | ||||
-rw-r--r-- | src/math-buttons.c | 9 |
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); } |