diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-29 21:34:06 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-29 21:34:06 +0100 |
commit | f8f10578093e926f5f36289a6c11615d067fbcad (patch) | |
tree | 544d21d89cd078d8f7485f9c56908fa1b0a674d8 /fish | |
parent | 7c4f90ddb8378dcf90cb0cc219105dccaa8a9d6e (diff) | |
download | libguestfs-f8f10578093e926f5f36289a6c11615d067fbcad.tar.gz libguestfs-f8f10578093e926f5f36289a6c11615d067fbcad.tar.xz libguestfs-f8f10578093e926f5f36289a6c11615d067fbcad.zip |
guestfish: Make more strings translatable.
However this doesn't yet attempt to translate the POD
command documentation. We need a plan to do that.
Diffstat (limited to 'fish')
-rw-r--r-- | fish/fish.c | 8 | ||||
-rw-r--r-- | fish/fish.h | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/fish/fish.c b/fish/fish.c index fdb2ba25..bb0762fd 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -404,7 +404,7 @@ main (int argc, char *argv[]) } void -pod2text (const char *heading, const char *str) +pod2text (const char *name, const char *shortdesc, const char *str) { FILE *fp; @@ -413,12 +413,10 @@ pod2text (const char *heading, const char *str) /* pod2text failed, maybe not found, so let's just print the * source instead, since that's better than doing nothing. */ - printf ("%s\n\n%s\n", heading, str); + printf ("%s - %s\n\n%s\n", name, shortdesc, str); return; } - fputs ("=head1 ", fp); - fputs (heading, fp); - fputs ("\n\n", fp); + fprintf (fp, "=head1 %s - %s\n\n", name, shortdesc); fputs (str, fp); pclose (fp); } diff --git a/fish/fish.h b/fish/fish.h index 59f2e10a..a65fe1b8 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -35,7 +35,7 @@ extern guestfs_h *g; extern int quit; extern int verbose; extern int issue_command (const char *cmd, char *argv[], const char *pipe); -extern void pod2text (const char *heading, const char *body); +extern void pod2text (const char *name, const char *shortdesc, const char *body); extern void list_builtin_commands (void); extern void display_builtin_command (const char *cmd); extern void free_strings (char **argv); |