Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 099bd52

Browse files
committed
[Bug 949832] Fix example; edit sentence
1 parent dfa74b9 commit 099bd52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/lib/libgettext.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ \subsection{Class-based API}
118118
modules. \module{gettext} defines a ``translations'' class which
119119
implements the parsing of GNU \file{.mo} format files, and has methods
120120
for returning either standard 8-bit strings or Unicode strings.
121-
Translations instances can also install themselves in the built-in
122-
namespace as the function \function{_()}.
121+
Instances of this ``translations'' class can also install themselves
122+
in the built-in namespace as the function \function{_()}.
123123

124124
\begin{funcdesc}{find}{domain\optional{, localedir\optional{,
125125
languages\optional{, all}}}}
@@ -365,7 +365,7 @@ \subsubsection{The \class{GNUTranslations} class}
365365
message = cat.ungettext(
366366
'There is %(num)d file in this directory',
367367
'There are %(num)d files in this directory',
368-
n) % {'n': n}
368+
n) % {'num': n}
369369
\end{verbatim}
370370

371371
\versionadded{2.3}

0 commit comments

Comments
 (0)