+2006-04-01 Bruno Haible <bruno@clisp.org>
+
+ * xgettext.texi (--keyword): Document the default keywords.
+ Suggested by Bjoern Voigt <bjoern@cs.tu-berlin.de>.
+
2006-03-28 Bruno Haible <bruno@clisp.org>
* msgfilter.texi: Explain built-in filters and recode-sr-latin.
comment @var{xcomment} to the message. Note that when used through a normal
shell command line, the double-quotes around the @var{xcomment} need to be
escaped.
-@*
+
+This option has an effect with most languages, namely C, C++, ObjectiveC,
+Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP,
+GCC-source, Glade.
+
The default keyword specifications, which are always looked for if not
-explicitly disabled, are @code{gettext}, @code{dgettext:2},
+explicitly disabled, are language dependent. They are:
+
+@itemize
+@item
+For C, C++, and GCC-source: @code{gettext}, @code{dgettext:2},
@code{dcgettext:2}, @code{ngettext:1,2}, @code{dngettext:2,3},
@code{dcngettext:2,3}, @code{gettext_noop}, and @code{pgettext:1c,2},
@code{dpgettext:2c,3}, @code{dcpgettext:2c,3}, @code{npgettext:1c,2,3},
@code{dnpgettext:2c,3,4}, @code{dcnpgettext:2c,3,4}.
-@*
-This option has an effect with most languages, namely C, C++, ObjectiveC,
-Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP,
-GCC-source, Glade.
+
+@item
+For Objective C: Like for C, and also @code{NSLocalizedString}, @code{_},
+@code{NSLocalizedStaticString}, @code{__}.
+
+@item
+For Shell scripts: @code{gettext}, @code{ngettext:1,2}, @code{eval_gettext},
+@code{eval_ngettext:1,2}.
+
+@item
+For Python: @code{gettext}, @code{ugettext}, @code{dgettext:2},
+@code{ngettext:1,2}, @code{ungettext:1,2}, @code{dngettext:2,3}, @code{_}.
+
+@item
+For Lisp: @code{gettext}, @code{ngettext:1,2}, @code{gettext-noop}.
+
+@item
+For EmacsLisp: @code{_}.
+
+@item
+For librep: @code{_}.
+
+@item
+For Scheme: @code{gettext}, @code{ngettext:1,2}, @code{gettext-noop}.
+
+@item
+For Java: @code{GettextResource.gettext:2},
+@code{GettextResource.ngettext:2,3}, @code{gettext}, @code{ngettext:1,2},
+@code{getString}.
+
+@item
+For C#: @code{GetString}, @code{GetPluralString:1,2}.
+
+@item
+For awk: @code{dcgettext}, @code{dcngettext:1,2}.
+
+@item
+For Tcl: @code{::msgcat::mc}.
+
+@item
+For Perl: @code{gettext}, @code{%gettext}, @code{$gettext}, @code{dgettext:2},
+@code{dcgettext:2}, @code{ngettext:1,2}, @code{dngettext:2,3},
+@code{dcngettext:2,3}, @code{gettext_noop}.
+
+@item
+For PHP: @code{_}, @code{gettext}, @code{dgettext:2}, @code{dcgettext:2},
+@code{ngettext:1,2}, @code{dngettext:2,3}, @code{dcngettext:2,3}.
+
+@item
+For Glade 1: @code{label}, @code{title}, @code{text}, @code{format},
+@code{copyright}, @code{comments}, @code{preview_text}, @code{tooltip}.
+@end itemize
+
+To disable the default keyword specifications, the option @samp{-k} or
+@samp{--keyword} or @samp{--keyword=}, without a @var{keywordspec}, can be
+used.
@item --flag=@var{word}:@var{arg}:@var{flag}
@opindex --flag@r{, @code{xgettext} option}
/* xgettext awk backend.
- Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_awk_keyword ("dcgettext");
x_awk_keyword ("dcngettext:1,2");
default_keywords = false;
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_c_keyword ("gettext");
x_c_keyword ("dgettext:2");
x_c_keyword ("dcgettext:2");
/* xgettext C# backend.
- Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2006 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 (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_csharp_keyword ("GetString"); /* Resource{Manager,Set}.GetString */
x_csharp_keyword ("GetPluralString:1,2"); /* GettextResource{Manager,Set}.GetPluralString */
default_keywords = false;
/* xgettext Emacs Lisp backend.
- Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001-2002.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_elisp_keyword ("_");
default_keywords = false;
}
/* xgettext glade backend.
- Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_glade_keyword ("label");
x_glade_keyword ("title");
x_glade_keyword ("text");
/* xgettext Java backend.
- Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2006 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 (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_java_keyword ("GettextResource.gettext:2"); /* static method */
x_java_keyword ("GettextResource.ngettext:2,3"); /* static method */
x_java_keyword ("gettext");
/* xgettext librep backend.
- Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_librep_keyword ("_");
default_keywords = false;
}
/* xgettext Lisp backend.
- Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_lisp_keyword ("gettext"); /* I18N:GETTEXT */
x_lisp_keyword ("ngettext:1,2"); /* I18N:NGETTEXT */
x_lisp_keyword ("gettext-noop");
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_perl_keyword ("gettext");
x_perl_keyword ("%gettext");
x_perl_keyword ("$gettext");
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_php_keyword ("_");
x_php_keyword ("gettext");
x_php_keyword ("dgettext:2");
/* xgettext Python backend.
- Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_python_keyword ("gettext");
x_python_keyword ("ugettext");
x_python_keyword ("dgettext:2");
/* xgettext Scheme backend.
- Copyright (C) 2004-2005 Free Software Foundation, Inc.
+ Copyright (C) 2004-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <bruno@clisp.org>, 2004-2005.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_scheme_keyword ("gettext"); /* libguile/i18n.c */
x_scheme_keyword ("ngettext:1,2"); /* libguile/i18n.c */
x_scheme_keyword ("gettext-noop");
/* xgettext sh backend.
- Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2006 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 (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_sh_keyword ("gettext");
x_sh_keyword ("ngettext:1,2");
x_sh_keyword ("eval_gettext");
/* xgettext Tcl backend.
- Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
{
if (default_keywords)
{
+ /* When adding new keywords here, also update the documentation in
+ xgettext.texi! */
x_tcl_keyword ("::msgcat::mc");
default_keywords = false;
}