diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-30 11:33:19 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-05-01 09:39:35 +0100 |
commit | 027fefd517b8a93c54611a6cc4c51a54fea1b9fe (patch) | |
tree | 143c33d12478dd2f66a60d3d28c3529806b5bec7 /sparsify/utils.ml | |
parent | 75514ab57a06e534f26698fe1725ca29b966c3ad (diff) | |
download | libguestfs-027fefd517b8a93c54611a6cc4c51a54fea1b9fe.tar.gz libguestfs-027fefd517b8a93c54611a6cc4c51a54fea1b9fe.tar.xz libguestfs-027fefd517b8a93c54611a6cc4c51a54fea1b9fe.zip |
Add gettext support for OCaml tools (virt-resize, virt-sparsify, virt-sysprep).
Note that this support is optional: To enable it, install the
ocaml-gettext library from
http://forge.ocamlcore.org/projects/ocaml-gettext . If this library
is not installed, then configure detects this and inserts dummy
gettext functions that do nothing.
Diffstat (limited to 'sparsify/utils.ml')
-rw-r--r-- | sparsify/utils.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sparsify/utils.ml b/sparsify/utils.ml index d2be12c8..dd27ba88 100644 --- a/sparsify/utils.ml +++ b/sparsify/utils.ml @@ -22,6 +22,8 @@ open Printf +open Sparsify_gettext.Gettext + module G = Guestfs let (//) = Filename.concat @@ -104,7 +106,7 @@ let error fs = prerr_newline (); prerr_newline (); wrap ~chan:stderr - "If reporting bugs, run virt-sparsify with the '-v' and '-x' options and include the complete output."; + (s_"If reporting bugs, run virt-sparsify with the '-v' and '-x' options and include the complete output."); prerr_newline (); exit 1 in |