File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ \subsection{Class-based API}
118118modules. \module {gettext} defines a `` translations'' class which
119119implements the parsing of GNU \file {.mo} format files, and has methods
120120for 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}
365365message = 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}
You can’t perform that action at this time.
0 commit comments