summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/x-python.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-24 10:49:59 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:14 +0200
commitc3bfe25c25e5d49659b3214987fa6a40fceb8f29 (patch)
tree6c27821d2e0033e11edd7967e2ef153c5b5f56e8 /gettext-tools/src/x-python.c
parent56e6e85b3b6190548e52cac419b779e5506b67fd (diff)
downloadexternal_gettext-c3bfe25c25e5d49659b3214987fa6a40fceb8f29.zip
external_gettext-c3bfe25c25e5d49659b3214987fa6a40fceb8f29.tar.gz
external_gettext-c3bfe25c25e5d49659b3214987fa6a40fceb8f29.tar.bz2
Support for plural forms in xgettext --language=Python.
Diffstat (limited to 'gettext-tools/src/x-python.c')
-rw-r--r--gettext-tools/src/x-python.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gettext-tools/src/x-python.c b/gettext-tools/src/x-python.c
index 5efd314..74e9a78 100644
--- a/gettext-tools/src/x-python.c
+++ b/gettext-tools/src/x-python.c
@@ -1,5 +1,5 @@
/* xgettext Python backend.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
@@ -126,7 +126,11 @@ init_keywords ()
if (default_keywords)
{
x_python_keyword ("gettext");
+ x_python_keyword ("ugettext");
x_python_keyword ("dgettext:2");
+ x_python_keyword ("ngettext:1,2");
+ x_python_keyword ("ungettext:1,2");
+ x_python_keyword ("dngettext:2,3");
x_python_keyword ("_");
default_keywords = false;
}