if (c == EOF)
{
if (ferror (stdin))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), _("standard input"));
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), _("standard input"));
}
return c;
error_at_line (0, 0,
logical_filename,
xmlGetLineNo (node),
- _("\
-The root element must be <%s>"),
+ _("The root element must be <%s>"),
"supplementalData");
goto out;
}
error_at_line (0, 0,
logical_filename,
xmlGetLineNo (n),
- _("\
-The element <%s> does not have attribute <%s>"),
+ _("The element <%s> does not have attribute <%s>"),
"pluralRules", "locales");
continue;
}
error_at_line (0, 0,
logical_filename,
xmlGetLineNo (n2),
- _("\
-The element <%s> does not have attribute <%s>"),
+ _("The element <%s> does not have attribute <%s>"),
"pluralRule", "count");
break;
}
/* Format strings.
- Copyright (C) 2001-2010, 2012-2013, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2010, 2012-2013, 2015, 2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
}
else
{
- error_logger (_("\
-'%s' is not a valid %s format string, unlike '%s'. Reason: %s"),
+ error_logger (_("'%s' is not a valid %s format string, unlike '%s'. Reason: %s"),
pretty_msgstr, format_language_pretty[i],
pretty_msgid, invalid_reason);
seen_errors++;
if (!include_untranslated && defmsg->msgstr[0] == '\0')
{
(*nerrors)++;
- po_gram_error_at_line (&defmsg->pos, _("\
-this message is untranslated"));
+ po_gram_error_at_line (&defmsg->pos,
+ _("this message is untranslated"));
}
else if (!include_fuzzies && defmsg->is_fuzzy && !is_header (defmsg))
{
(*nerrors)++;
- po_gram_error_at_line (&defmsg->pos, _("\
-this message needs to be reviewed by the translator"));
+ po_gram_error_at_line (&defmsg->pos,
+ _("this message needs to be reviewed by the translator"));
}
else
defmsg->used = 1;
defmsg = NULL;
if (defmsg)
{
- po_gram_error_at_line (&refmsg->pos, _("\
-this message is used but not defined..."));
+ po_gram_error_at_line (&refmsg->pos,
+ _("this message is used but not defined..."));
error_message_count--;
- po_gram_error_at_line (&defmsg->pos, _("\
-...but this definition is similar"));
+ po_gram_error_at_line (&defmsg->pos,
+ _("...but this definition is similar"));
defmsg->used = 1;
}
else
- po_gram_error_at_line (&refmsg->pos, _("\
-this message is used but not defined in %s"), fn1);
+ po_gram_error_at_line (&refmsg->pos,
+ _("this message is used but not defined in %s"),
+ fn1);
}
}
}
if (!this->has_header_entry)
{
multiline_error (xasprintf ("%s: ", this->file_name),
- xasprintf (_("\
-warning: PO file header missing or invalid\n")));
+ xasprintf (_("warning: PO file header missing or invalid\n")));
multiline_error (NULL,
- xasprintf (_("\
-warning: charset conversion will not work\n")));
+ xasprintf (_("warning: charset conversion will not work\n")));
}
}
}
exit_status = EXIT_FAILURE;
if (correct == 0)
{
- error (0, 0, _("\
-domain name \"%s\" not suitable as file name"), name);
+ error (0, 0,
+ _("domain name \"%s\" not suitable as file name"), name);
return;
}
else
- error (0, 0, _("\
-domain name \"%s\" not suitable as file name: will use prefix"), name);
+ error (0, 0,
+ _("domain name \"%s\" not suitable as file name: will use prefix"),
+ name);
name[correct] = '\0';
}
if (!include_fuzzies && check_compatibility && !warned)
{
warned = true;
- error (0, 0, _("\
-%s: warning: source file contains fuzzy translation"),
+ error (0, 0,
+ _("%s: warning: source file contains fuzzy translation"),
gram_pos.file_name);
}
}
FILE *fp = fopen (optarg, "r");
if (fp == NULL)
- error (EXIT_FAILURE, errno, _("\
-error while opening \"%s\" for reading"), optarg);
+ error (EXIT_FAILURE, errno,
+ _("error while opening \"%s\" for reading"), optarg);
while (!feof (fp))
{
if (count == 0)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), optarg);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), optarg);
/* EOF reached. */
break;
}
/* Message list concatenation and duplicate handling.
- Copyright (C) 2001-2003, 2005-2008, 2012, 2015 Free Software
+ Copyright (C) 2001-2003, 2005-2008, 2012, 2015, 2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
canon_charset = po_charset_ascii;
else
error (EXIT_FAILURE, 0,
- _("\
-present charset \"%s\" is not a portable encoding name"),
+ _("present charset \"%s\" is not a portable encoding name"),
charset);
}
canon_from_code = canon_charset;
else if (canon_from_code != canon_charset)
error (EXIT_FAILURE, 0,
- _("\
-two different charsets \"%s\" and \"%s\" in input file"),
+ _("two different charsets \"%s\" and \"%s\" in input file"),
canon_from_code, canon_charset);
}
}
else
{
if (k == 0)
- error (EXIT_FAILURE, 0, _("\
-input file '%s' doesn't contain a header entry with a charset specification"),
+ error (EXIT_FAILURE, 0,
+ _("input file '%s' doesn't contain a header entry with a charset specification"),
files[n]);
else
- error (EXIT_FAILURE, 0, _("\
-domain \"%s\" in input file '%s' doesn't contain a header entry with a charset specification"),
+ error (EXIT_FAILURE, 0,
+ _("domain \"%s\" in input file '%s' doesn't contain a header entry with a charset specification"),
mdlp->item[k]->domain, files[n]);
}
}
/* Message list charset and locale charset handling.
- Copyright (C) 2001-2003, 2005-2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2007, 2009, 2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
canon_charset = po_charset_canonicalize (charset);
if (canon_charset == NULL)
error (EXIT_FAILURE, 0,
- _("\
-present charset \"%s\" is not a portable encoding name"),
+ _("present charset \"%s\" is not a portable encoding name"),
charset);
freea (charset);
if (canon_locale_code != canon_charset)
/* Checking of messages in PO files.
- Copyright (C) 1995-1998, 2000-2008, 2010-2016 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000-2008, 2010-2016, 2019 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
This program is free software: you can redistribute it and/or modify
{
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
- (size_t)(-1), false, _("\
-'msgid' and 'msgid_plural' entries do not both begin with '\\n'"));
+ (size_t)(-1), false,
+ _("'msgid' and 'msgid_plural' entries do not both begin with '\\n'"));
seen_errors++;
}
for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++)
if (TEST_NEWLINE(p) != has_newline)
{
char *msg =
- xasprintf (_("\
-'msgid' and 'msgstr[%u]' entries do not both begin with '\\n'"), j);
+ xasprintf (_("'msgid' and 'msgstr[%u]' entries do not both begin with '\\n'"),
+ j);
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
(size_t)(-1), false, msg);
{
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
- (size_t)(-1), false, _("\
-'msgid' and 'msgstr' entries do not both begin with '\\n'"));
+ (size_t)(-1), false,
+ _("'msgid' and 'msgstr' entries do not both begin with '\\n'"));
seen_errors++;
}
}
{
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
- (size_t)(-1), false, _("\
-'msgid' and 'msgid_plural' entries do not both end with '\\n'"));
+ (size_t)(-1), false,
+ _("'msgid' and 'msgid_plural' entries do not both end with '\\n'"));
seen_errors++;
}
for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++)
if (TEST_NEWLINE(p) != has_newline)
{
char *msg =
- xasprintf (_("\
-'msgid' and 'msgstr[%u]' entries do not both end with '\\n'"), j);
+ xasprintf (_("'msgid' and 'msgstr[%u]' entries do not both end with '\\n'"),
+ j);
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
(size_t)(-1), false, msg);
{
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
- (size_t)(-1), false, _("\
-'msgid' and 'msgstr' entries do not both end with '\\n'"));
+ (size_t)(-1), false,
+ _("'msgid' and 'msgstr' entries do not both end with '\\n'"));
seen_errors++;
}
}
{
po_xerror (PO_SEVERITY_ERROR,
mp, msgid_pos->file_name, msgid_pos->line_number,
- (size_t)(-1), false, _("\
-plural handling is a GNU gettext extension"));
+ (size_t)(-1), false,
+ _("plural handling is a GNU gettext extension"));
seen_errors++;
}
if (uc != 0xfffd && uc_is_space (uc))
{
po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, false,
- _("\
-space before ellipsis found in user visible strings"));
+ _("space before ellipsis found in user visible strings"));
seen_errors++;
}
}
/* Message list charset and locale charset handling.
- Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2009, 2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
context->from_filename, context->from_code));
else
po_xerror (PO_SEVERITY_FATAL_ERROR, context->message, NULL, 0, 0, false,
- xasprintf (_("\
-%s: error while converting from \"%s\" encoding to \"%s\" encoding"),
+ xasprintf (_("%s: error while converting from \"%s\" encoding to \"%s\" encoding"),
context->from_filename, context->from_code,
context->to_code));
/* NOTREACHED */
canon_charset = po_charset_ascii;
else
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0,
- false, xasprintf (_("\
-present charset \"%s\" is not a portable encoding name"),
+ false,
+ xasprintf (_("present charset \"%s\" is not a portable encoding name"),
charset));
}
}
else if (canon_from_code != canon_charset)
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0,
false,
- xasprintf (_("\
-two different charsets \"%s\" and \"%s\" in input file"),
+ xasprintf (_("two different charsets \"%s\" and \"%s\" in input file"),
canon_from_code, canon_charset));
}
freea (charset);
canon_from_code = po_charset_ascii;
else
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
- _("\
-input file doesn't contain a header entry with a charset specification"));
+ _("input file doesn't contain a header entry with a charset specification"));
}
msgids_changed = false;
if (iconveh_open (canon_to_code, canon_from_code, &cd) < 0)
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
- xasprintf (_("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \
-and iconv() does not support this conversion."),
+ xasprintf (_("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does not support this conversion."),
canon_from_code, canon_to_code,
basename (program_name)));
if (msgids_changed)
if (message_list_msgids_changed (mlp))
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
- xasprintf (_("\
-Conversion from \"%s\" to \"%s\" introduces duplicates: \
-some different msgids become equal."),
+ xasprintf (_("Conversion from \"%s\" to \"%s\" introduces duplicates: some different msgids become equal."),
canon_from_code, canon_to_code));
#else
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
- xasprintf (_("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \
-This version was built without iconv()."),
+ xasprintf (_("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was built without iconv()."),
canon_from_code, canon_to_code,
basename (program_name)));
#endif
canon_to_code = po_charset_canonicalize (to_code);
if (canon_to_code == NULL)
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
- xasprintf (_("\
-target charset \"%s\" is not a portable encoding name."),
+ xasprintf (_("target charset \"%s\" is not a portable encoding name."),
to_code));
for (k = 0; k < mdlp->nitems; k++)
if (verbosity_level > 1)
{
- po_gram_error_at_line (&refmsg->pos, _("\
-this message is used but not defined..."));
+ po_gram_error_at_line (&refmsg->pos,
+ _("this message is used but not defined..."));
error_message_count--;
- po_gram_error_at_line (&defmsg->pos, _("\
-...but this definition is similar"));
+ po_gram_error_at_line (&defmsg->pos,
+ _("...but this definition is similar"));
}
/* Merge the reference with the definition: take the #. and
const char *pend;
if (verbosity_level > 1)
- po_gram_error_at_line (&refmsg->pos, _("\
-this message is used but not defined in %s"), fn1);
+ po_gram_error_at_line (&refmsg->pos,
+ _("this message is used but not defined in %s"),
+ fn1);
mp = message_copy (refmsg);
unsigned long i;
if (verbosity_level > 1)
- {
- po_gram_error_at_line (&mp->pos, _("\
-this message should define plural forms"));
- }
+ po_gram_error_at_line (&mp->pos,
+ _("this message should define plural forms"));
new_msgstr_len = nplurals * mp->msgstr_len;
new_msgstr = XNMALLOC (new_msgstr_len, char);
Use only the first among the plural forms. */
if (verbosity_level > 1)
- {
- po_gram_error_at_line (&mp->pos, _("\
-this message should not define plural forms"));
- }
+ po_gram_error_at_line (&mp->pos,
+ _("this message should not define plural forms"));
mp->msgstr_len = strlen (mp->msgstr) + 1;
mp->is_fuzzy = true;
/* GNU gettext - internationalization aids
- Copyright (C) 1995-2009, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1995-2009, 2011, 2019 Free Software Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>.
Multibyte character handling by Bruno Haible <haible@clisp.cons.org>.
if (ferror (mbf->fp))
goto eof;
if (signal_eilseq)
- po_gram_error (_("\
-incomplete multibyte sequence at end of file"));
+ po_gram_error (_("incomplete multibyte sequence at end of file"));
bytes = mbf->bufcount;
mbc->uc_valid = false;
break;
if (c == '\n')
{
if (signal_eilseq)
- po_gram_error (_("\
-incomplete multibyte sequence at end of line"));
+ po_gram_error (_("incomplete multibyte sequence at end of line"));
bytes = mbf->bufcount - 1;
mbc->uc_valid = false;
break;
/* Reading NeXTstep/GNUstep .strings files.
- Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2007, 2009, 2019 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
{
po_xerror (PO_SEVERITY_ERROR, NULL,
real_file_name, gram_pos.line_number, (size_t)(-1),
- false, _("\
-warning: syntax error, expected ';' after string"));
+ false,
+ _("warning: syntax error, expected ';' after string"));
break;
}
}
{
po_xerror (PO_SEVERITY_ERROR, NULL,
real_file_name, gram_pos.line_number, (size_t)(-1), false,
- _("\
-warning: syntax error, expected '=' or ';' after string"));
+ _("warning: syntax error, expected '=' or ';' after string"));
break;
}
}
conv_from_utf8 = iconv_open (locale_code, "UTF-8");
}
if (conv_to_utf8 == (iconv_t)(-1))
- error (EXIT_FAILURE, 0, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \
-and iconv() does not support this conversion."),
+ error (EXIT_FAILURE, 0,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does not support this conversion."),
locale_code, "UTF-8", basename (program_name));
if (conv_from_utf8 == (iconv_t)(-1))
- error (EXIT_FAILURE, 0, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \
-and iconv() does not support this conversion."),
+ error (EXIT_FAILURE, 0,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does not support this conversion."),
"UTF-8", locale_code, basename (program_name));
last_utf8_line = NULL;
last_utf8_line_len = 0;
last_backconv_line = NULL;
last_backconv_line_len = 0;
#else
- error (EXIT_FAILURE, 0, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \
-This version was built without iconv()."),
+ error (EXIT_FAILURE, 0,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was built without iconv()."),
locale_code, "UTF-8", basename (program_name));
#endif
}
if (!output_syntax->supports_multiple_domains && mdlp->nitems > 1)
{
if (output_syntax->alternative_is_po)
- po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, _("\
-Cannot output multiple translation domains into a single file with the specified output format. Try using PO file syntax instead."));
+ po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
+ _("Cannot output multiple translation domains into a single file with the specified output format. Try using PO file syntax instead."));
else
- po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, _("\
-Cannot output multiple translation domains into a single file with the specified output format."));
+ po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false,
+ _("Cannot output multiple translation domains into a single file with the specified output format."));
}
else
{
error_with_progname = false;
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL,
has_context->file_name, has_context->line_number,
- (size_t)(-1), false, _("\
-message catalog has context dependent translations, but the output format does not support them."));
+ (size_t)(-1), false,
+ _("message catalog has context dependent translations, but the output format does not support them."));
error_with_progname = true;
}
}
if (output_syntax->alternative_is_java_class)
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL,
has_plural->file_name, has_plural->line_number,
- (size_t)(-1), false, _("\
-message catalog has plural form translations, but the output format does not support them. Try generating a Java class using \"msgfmt --java\", instead of a properties file."));
+ (size_t)(-1), false,
+ _("message catalog has plural form translations, but the output format does not support them. Try generating a Java class using \"msgfmt --java\", instead of a properties file."));
else
po_xerror (PO_SEVERITY_FATAL_ERROR, NULL,
has_plural->file_name, has_plural->line_number,
- (size_t)(-1), false, _("\
-message catalog has plural form translations, but the output format does not support them."));
+ (size_t)(-1), false,
+ _("message catalog has plural form translations, but the output format does not support them."));
error_with_progname = true;
}
}
/* Writing Java ResourceBundles.
- Copyright (C) 2001-2003, 2005-2010, 2014, 2016, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2010, 2014, 2016, 2018-2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
true, false, true, verbose > 0))
{
if (!verbose)
- error (0, 0, _("\
-compilation of Java class failed, please try --verbose or set $JAVAC"));
+ error (0, 0,
+ _("compilation of Java class failed, please try --verbose or set $JAVAC"));
else
- error (0, 0, _("\
-compilation of Java class failed, please try to set $JAVAC"));
+ error (0, 0,
+ _("compilation of Java class failed, please try to set $JAVAC"));
goto quit3;
}
/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2010, 2012, 2014-2015, 2018 Free Software
+ Copyright (C) 1995-1998, 2000-2010, 2012, 2014-2015, 2018-2019 Free Software
Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
if (c != 'n' && c != 't')
{
char *error_message =
- xasprintf (_("\
-internationalized messages should not contain the '\\%c' escape sequence"),
+ xasprintf (_("internationalized messages should not contain the '\\%c' escape sequence"),
c);
po_xerror (PO_SEVERITY_WARNING, mp, NULL, 0, 0, false,
error_message);
/* xgettext C# backend.
- Copyright (C) 2003-2009, 2011, 2014, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2003-2009, 2011, 2014, 2018-2019 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
non_ascii_error_message (lexical_context,
real_file_name,
line_number),
- _("\
-Please specify the source encoding through --from-code.")));
+ _("Please specify the source encoding through --from-code.")));
exit (EXIT_FAILURE);
}
return c;
/* xgettext Emacs Lisp backend.
- Copyright (C) 2001-2003, 2005-2009, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001-2002.
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
else if (c == '\n')
line_number++;
/* xgettext Java backend.
- Copyright (C) 2003, 2005-2009, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
return c;
/* xgettext JavaScript backend.
- Copyright (C) 2002-2003, 2005-2009, 2013-2014, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2009, 2013-2014, 2018-2019 Free Software Foundation, Inc.
This file was written by Andreas Stricker <andy@knitter.ch>, 2010
It's based on x-python from Bruno Haible.
non_ascii_error_message (lexical_context,
real_file_name,
line_number),
- _("\
-Please specify the source encoding through --from-code\n")));
+ _("Please specify the source encoding through --from-code\n")));
exit (EXIT_FAILURE);
}
return c;
/* xgettext librep backend.
- Copyright (C) 2001-2003, 2005-2009, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
else if (c == '\n')
line_number++;
/* xgettext Lisp backend.
- Copyright (C) 2001-2003, 2005-2009, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
else if (c == '\n')
line_number++;
/* xgettext Perl backend.
- Copyright (C) 2002-2010, 2013, 2016, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2010, 2013, 2016, 2018-2019 Free Software Foundation, Inc.
This file was written by Guido Flohr <guido@imperia.net>, 2002-2010.
else
{
error_with_progname = false;
- error (EXIT_SUCCESS, 0, _("\
-%s:%d: can't find string terminator \"%s\" anywhere before EOF"),
+ error (EXIT_SUCCESS, 0,
+ _("%s:%d: can't find string terminator \"%s\" anywhere before EOF"),
real_file_name, line_number, delimiter);
error_with_progname = true;
if (end == NULL)
{
error_with_progname = false;
- error (error_level, 0, _("\
-%s:%d: missing right brace on \\x{HEXNUMBER}"), real_file_name, line_number);
+ error (error_level, 0,
+ _("%s:%d: missing right brace on \\x{HEXNUMBER}"),
+ real_file_name, line_number);
error_with_progname = true;
++crs;
continue;
else if ((unsigned char) *crs >= 0x80)
{
error_with_progname = false;
- error (error_level, 0, _("\
-%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\""),
+ error (error_level, 0,
+ _("%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\""),
real_file_name, line_number, *crs);
error_with_progname = true;
}
else if ((unsigned char) *crs >= 0x80)
{
error_with_progname = false;
- error (error_level, 0, _("\
-%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\""),
+ error (error_level, 0,
+ _("%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\""),
real_file_name, line_number, *crs);
error_with_progname = true;
}
if (!backslashed && !extract_all && (*crs == '$' || *crs == '@'))
{
error_with_progname = false;
- error (error_level, 0, _("\
-%s:%d: invalid variable interpolation at \"%c\""),
+ error (error_level, 0,
+ _("%s:%d: invalid variable interpolation at \"%c\""),
real_file_name, line_number, *crs);
error_with_progname = true;
++crs;
else if ((unsigned char) *crs >= 0x80)
{
error_with_progname = false;
- error (error_level, 0, _("\
-%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\""),
+ error (error_level, 0,
+ _("%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\""),
real_file_name, line_number, *crs);
error_with_progname = true;
buffer[bufpos++] = *crs;
else if ((unsigned char) *crs >= 0x80)
{
error_with_progname = false;
- error (error_level, 0, _("\
-%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\""),
+ error (error_level, 0,
+ _("%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\""),
real_file_name, line_number, *crs);
error_with_progname = true;
buffer[bufpos++] = *crs;
/* xgettext Python backend.
- Copyright (C) 2002-2003, 2005-2011, 2013-2014, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2011, 2013-2014, 2018-2019 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
# endif
cd = iconv_open (po_charset_utf8, xgettext_current_file_source_encoding);
if (cd == (iconv_t)(-1))
- error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \
-and iconv() does not support this conversion."),
- xgettext_current_file_source_encoding, po_charset_utf8,
- basename (program_name));
+ error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does not support this conversion."),
+ xgettext_current_file_source_encoding, po_charset_utf8,
+ basename (program_name));
xgettext_current_file_source_iconv = cd;
#else
- error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \
-This version was built without iconv()."),
- xgettext_global_source_encoding, po_charset_utf8,
- basename (program_name));
+ error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was built without iconv()."),
+ xgettext_global_source_encoding, po_charset_utf8,
+ basename (program_name));
#endif
}
if (canon_encoding == NULL)
{
error_at_line (0, 0,
- logical_file_name, line_number - 1, _("\
-Unknown encoding \"%s\". Proceeding with ASCII instead."),
+ logical_file_name, line_number - 1,
+ _("Unknown encoding \"%s\". Proceeding with ASCII instead."),
encoding);
canon_encoding = po_charset_ascii;
}
/* xgettext Scheme backend.
- Copyright (C) 2004-2009, 2011, 2014, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2004-2009, 2011, 2014, 2018-2019 Free Software Foundation, Inc.
This file was written by Bruno Haible <bruno@clisp.org>, 2004-2005.
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
else if (c == '\n')
line_number++;
/* xgettext sh backend.
- Copyright (C) 2003, 2005-2009, 2014, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2009, 2014, 2018-2019 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
else if (c == '\n')
line_number++;
/* xgettext Tcl backend.
- Copyright (C) 2002-2003, 2005-2009, 2013, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2009, 2013, 2018-2019 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
if (c == EOF)
{
if (ferror (fp))
- error (EXIT_FAILURE, errno, _("\
-error while reading \"%s\""), real_file_name);
+ error (EXIT_FAILURE, errno,
+ _("error while reading \"%s\""), real_file_name);
}
else if (c == '\n')
line_number++;
/* xgettext Vala backend.
- Copyright (C) 2013-2014, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2013-2014, 2018-2019 Free Software Foundation, Inc.
This file was written by Daiki Ueno <ueno@gnu.org>, 2013.
if (c == P7_NEWLINE)
{
error_with_progname = false;
- error (0, 0, _("\
-%s:%d: warning: unterminated string literal"),
+ error (0, 0,
+ _("%s:%d: warning: unterminated string literal"),
logical_file_name, line_number - 1);
error_with_progname = true;
phase7_ungetc ('\n');
/* Keeping track of the encoding of strings to be extracted.
- Copyright (C) 2001-2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
non_ascii_error_message (lcontext,
file_name,
line_number),
- _("\
-Please specify the source encoding through --from-code.")));
+ _("Please specify the source encoding through --from-code.")));
exit (EXIT_FAILURE);
}
}
if (xgettext_global_source_encoding == NULL)
{
multiline_warning (xasprintf (_("warning: ")),
- xasprintf (_("\
-'%s' is not a valid encoding name. Using ASCII as fallback.\n"),
+ xasprintf (_("'%s' is not a valid encoding name. Using ASCII as fallback.\n"),
optarg));
xgettext_global_source_encoding = po_charset_ascii;
}
"--kde", "--boost");
if (join_existing && strcmp (default_domain, "-") == 0)
- error (EXIT_FAILURE, 0, _("\
---join-existing cannot be used when output is written to stdout"));
+ error (EXIT_FAILURE, 0,
+ _("--join-existing cannot be used when output is written to stdout"));
if (no_default_keywords && !some_additional_keywords)
{
# endif
cd = iconv_open (po_charset_utf8, xgettext_global_source_encoding);
if (cd == (iconv_t)(-1))
- error (EXIT_FAILURE, 0, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \
-and iconv() does not support this conversion."),
+ error (EXIT_FAILURE, 0,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does not support this conversion."),
xgettext_global_source_encoding, po_charset_utf8,
basename (program_name));
xgettext_global_source_iconv = cd;
#else
- error (EXIT_FAILURE, 0, _("\
-Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \
-This version was built without iconv()."),
+ error (EXIT_FAILURE, 0,
+ _("Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was built without iconv()."),
xgettext_global_source_encoding, po_charset_utf8,
basename (program_name));
#endif
its_rules = its_rule_list_alloc ();
if (!its_rule_list_add_from_file (its_rules,
explicit_its_filename))
- {
- error (EXIT_FAILURE, 0, _("\
-warning: ITS rule file '%s' does not exist"), explicit_its_filename);
- }
+ error (EXIT_FAILURE, 0,
+ _("warning: ITS rule file '%s' does not exist"),
+ explicit_its_filename);
}
else
{
}
if (its_dirs[j] == NULL)
{
- error (0, 0, _("\
-warning: ITS rule file '%s' does not exist; check your gettext installation"),
+ error (0, 0,
+ _("warning: ITS rule file '%s' does not exist; check your gettext installation"),
its_basename);
its_rule_list_free (its_rules);
its_rules = NULL;
extension = "";
else
extension++;
- error (0, 0, _("\
-warning: file '%s' extension '%s' is unknown; will try C"), filename, extension);
+ error (0, 0,
+ _("warning: file '%s' extension '%s' is unknown; will try C"),
+ filename, extension);
language_from_extension = "C";
}
}
err:
- error (EXIT_FAILURE, 0, _("\
-A --flag argument doesn't have the <keyword>:<argnum>:[pass-]<flag> syntax: %s"),
+ error (EXIT_FAILURE, 0,
+ _("A --flag argument doesn't have the <keyword>:<argnum>:[pass-]<flag> syntax: %s"),
optionstring);
}
new_name = xstrdup (fn);
fp = fopen (fn, "r");
if (fp == NULL)
- error (EXIT_FAILURE, errno, _("\
-error while opening \"%s\" for reading"), fn);
+ error (EXIT_FAILURE, errno,
+ _("error while opening \"%s\" for reading"), fn);
logical_file_name = xstrdup (new_name);
}
else
const char *dir = dir_list_nth (j);
if (dir == NULL)
- error (EXIT_FAILURE, ENOENT, _("\
-error while opening \"%s\" for reading"), fn);
+ error (EXIT_FAILURE, ENOENT,
+ _("error while opening \"%s\" for reading"), fn);
new_name = xconcatenated_filename (dir, fn, NULL);
break;
if (errno != ENOENT)
- error (EXIT_FAILURE, errno, _("\
-error while opening \"%s\" for reading"), new_name);
+ error (EXIT_FAILURE, errno,
+ _("error while opening \"%s\" for reading"), new_name);
free (new_name);
}