]> granicus.if.org Git - python/commitdiff
[Bug 949832] Fix example; edit sentence
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 10 Jul 2004 16:01:10 +0000 (16:01 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 10 Jul 2004 16:01:10 +0000 (16:01 +0000)
Doc/lib/libgettext.tex

index d6944f3d02f5280ea2fd29e82ca9f15e21491b0c..f2c20f8d3d6b9309446f6f8ca83629ee96090398 100644 (file)
@@ -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}