summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-07-10 16:01:10 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-07-10 16:01:10 (GMT)
commit099bd524a4959f8cb7f4de2a24b73b7ae4505c8d (patch)
tree4e056fc2fbfc3aa6aba6f0abb417f23f81f20b43 /Doc/lib
parentdfa74b97ec6e79571be4905bba5b5c9a32acc6ff (diff)
downloadcpython-099bd524a4959f8cb7f4de2a24b73b7ae4505c8d.zip
cpython-099bd524a4959f8cb7f4de2a24b73b7ae4505c8d.tar.gz
cpython-099bd524a4959f8cb7f4de2a24b73b7ae4505c8d.tar.bz2
[Bug 949832] Fix example; edit sentence
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libgettext.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libgettext.tex b/Doc/lib/libgettext.tex
index d6944f3..f2c20f8 100644
--- a/Doc/lib/libgettext.tex
+++ b/Doc/lib/libgettext.tex
@@ -118,8 +118,8 @@ API. It is the recommended way of localizing your Python applications and
modules. \module{gettext} defines a ``translations'' class which
implements the parsing of GNU \file{.mo} format files, and has methods
for returning either standard 8-bit strings or Unicode strings.
-Translations instances can also install themselves in the built-in
-namespace as the function \function{_()}.
+Instances of this ``translations'' class can also install themselves
+in the built-in namespace as the function \function{_()}.
\begin{funcdesc}{find}{domain\optional{, localedir\optional{,
languages\optional{, all}}}}
@@ -365,7 +365,7 @@ cat = GNUTranslations(somefile)
message = cat.ungettext(
'There is %(num)d file in this directory',
'There are %(num)d files in this directory',
- n) % {'n': n}
+ n) % {'num': n}
\end{verbatim}
\versionadded{2.3}