[Libguestfs] [PATCH] builder: translate more user-visible strings

Pino Toscano ptoscano at redhat.com
Wed Dec 4 14:34:46 UTC 2013


Translate also the "OS version" and "Notes" strings that appear in the
--long output.
---
 builder/list_entries.ml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/builder/list_entries.ml b/builder/list_entries.ml
index 8c24fe2..a1d0696 100644
--- a/builder/list_entries.ml
+++ b/builder/list_entries.ml
@@ -47,7 +47,7 @@ let list_entries ?(list_long = false) ~sources index =
           printf "\n"
         )
         else (                          (* Long *)
-          printf "%-24s %s\n" "os-version:" name;
+          printf "%-24s %s\n" (s_"OS version:") name;
           (match printable_name with
           | None -> ()
           | Some name -> printf "%-24s %s\n" (s_"Full name:") name;
@@ -62,7 +62,7 @@ let list_entries ?(list_long = false) ~sources index =
           | None -> ()
           | Some notes ->
             printf "\n";
-            printf "Notes:\n\n%s\n" notes
+            printf (f_"Notes:\n\n%s\n") notes
           );
           printf "\n"
         )
-- 
1.8.3.1




More information about the Libguestfs mailing list