diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-01-05 15:17:34 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-01-05 15:17:34 +0200 |
commit | f937fa90807400e87aa64cd03f2c8470093129d7 (patch) | |
tree | c94d0061b273b487a27d93de59a06314f78e2aad /src/piesctl.c | |
parent | 32a337f3b35c51ceb1d9320c7ff67fa1d5726c2a (diff) | |
download | pies-f937fa90807400e87aa64cd03f2c8470093129d7.tar.gz pies-f937fa90807400e87aa64cd03f2c8470093129d7.tar.bz2 |
Insert missing _() markers
Diffstat (limited to 'src/piesctl.c')
-rw-r--r-- | src/piesctl.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/piesctl.c b/src/piesctl.c index 4b448ad..a9555a1 100644 --- a/src/piesctl.c +++ b/src/piesctl.c @@ -129,7 +129,7 @@ parse_config () exit (grecs_preproc_run (file_name, grecs_preprocessor) ? EX_CONFIG : 0); if (verbose) - printf ("%s: reading configuration from %s\n", + printf (_("%s: reading configuration from %s\n"), program_name, file_name); tree = grecs_parse (file_name); if (!tree) @@ -137,7 +137,7 @@ parse_config () if (grecs_tree_process (tree, piesctl_keywords)) exit (EX_CONFIG); if (!url && verbose) - printf ("%s: URL not found in %s\n", + printf (_("%s: URL not found in %s\n"), program_name, file_name); } @@ -150,7 +150,7 @@ parse_config () struct grecs_node *node; if (verbose) - printf ("%s: reading configuration from %s\n", + printf (_("%s: reading configuration from %s\n"), program_name, file_name); if (preprocess_only) exit (grecs_preproc_run (file_name, grecs_preprocessor) @@ -169,7 +169,7 @@ parse_config () } } else if (verbose) - printf ("%s: URL not found in %s\n", + printf (_("%s: URL not found in %s\n"), program_name, file_name); } free (file_name); @@ -178,7 +178,7 @@ parse_config () if (!url) { if (verbose) - printf ("%s: falling back to default URL\n", program_name); + printf (_("%s: falling back to default URL\n"), program_name); if (default_url) url = default_url; else @@ -200,7 +200,7 @@ parse_config () } if (verbose) - printf ("%s: using URL %s\n", program_name, url->string); + printf (_("%s: using URL %s\n"), program_name, url->string); } static void @@ -215,8 +215,8 @@ config_help (void) } static void -piesctl_diag(grecs_locus_t const *locus, int err, int errcode, - const char *msg) +piesctl_diag (grecs_locus_t const *locus, int err, int errcode, + const char *msg) { fflush (stdout); fprintf (stderr, "%s: ", program_name); @@ -227,7 +227,7 @@ piesctl_diag(grecs_locus_t const *locus, int err, int errcode, fputc(' ', stderr); } if (!err) - fprintf (stderr, "warning: "); + fprintf (stderr, _("warning: ")); fprintf (stderr, "%s", msg); if (errcode) fprintf (stderr, ": %s", strerror (errno)); @@ -808,7 +808,7 @@ print_json (FILE *fp, struct json_value *v) static void shttp_format_result (struct shttp_connection *conn, FILE *fp) { - fprintf (stderr, "%s: raw JSON reply follows:\n", program_name); + fprintf (stderr, _("%s: raw JSON reply follows:\n"), program_name); print_json (fp, conn->result); } @@ -953,8 +953,8 @@ shttp_get_credentials (struct shttp_connection *conn) if (!realm) realm = grecs_strdup ("Server"); - conn->url->user = getans (1, "%s user", realm); - conn->url->passwd = getans (0, "%s password", realm); + conn->url->user = getans (1, _("%s user"), realm); + conn->url->passwd = getans (0, _("%s password"), realm); grecs_free (realm); } @@ -1512,10 +1512,10 @@ shttp_print_response_status (struct shttp_connection *conn) json_string, &v) == 0) fputs (v->v.s, stdout); else - printf ("unknown error"); + printf (_("unknown error")); } else - printf ("unknown status"); + printf (_("unknown status")); fputc ('\n', stdout); } } |