[recipes/recipes-1.0] Translate prep time and cook time when printing



commit 54c8fe772c30f9026a3cb3199f71edf5b1f52c38
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 21 11:48:58 2017 -0400

    Translate prep time and cook time when printing
    
    We already do this in the UI, but it was forgotten
    in the print case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782906

 src/gr-recipe-printer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-recipe-printer.c b/src/gr-recipe-printer.c
index 5801cf8..ce76dee 100644
--- a/src/gr-recipe-printer.c
+++ b/src/gr-recipe-printer.c
@@ -155,8 +155,8 @@ begin_print (GtkPrintOperation *operation,
         g_string_truncate (s, 0);
 
         g_string_append_printf (s, "%s %s\n", _("Author:"), gr_chef_get_fullname (chef));
-        g_string_append_printf (s, "%s %s\n", _("Preparation:"), gr_recipe_get_prep_time (printer->recipe));
-        g_string_append_printf (s, "%s %s\n", _("Cooking:"), gr_recipe_get_cook_time (printer->recipe));
+        g_string_append_printf (s, "%s %s\n", _("Preparation:"), _(gr_recipe_get_prep_time 
(printer->recipe)));
+        g_string_append_printf (s, "%s %s\n", _("Cooking:"), _(gr_recipe_get_cook_time (printer->recipe)));
         g_string_append_printf (s, "%s %d\n", _("Serves:"), gr_recipe_get_serves (printer->recipe));
         g_string_append (s, "\n");
 


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