@@ -134,7 +134,7 @@ Class-based API
134
134
135
135
The class-based API of the :mod: `gettext ` module gives you more flexibility and
136
136
greater convenience than the GNU :program: `gettext ` API. It is the recommended
137
- way of localizing your Python applications and modules. :mod: `gettext ` defines
137
+ way of localizing your Python applications and modules. :mod: `! gettext ` defines
138
138
a "translations" class which implements the parsing of GNU :file: `.mo ` format
139
139
files, and has methods for returning strings. Instances of this "translations"
140
140
class can also install themselves in the built-in namespace as the function
@@ -219,7 +219,7 @@ Translation classes are what actually implement the translation of original
219
219
source file message strings to translated message strings. The base class used
220
220
by all translation classes is :class: `NullTranslations `; this provides the basic
221
221
interface you can use to write your own specialized translation classes. Here
222
- are the methods of :class: `NullTranslations `:
222
+ are the methods of :class: `! NullTranslations `:
223
223
224
224
225
225
.. class :: NullTranslations(fp=None)
@@ -247,21 +247,21 @@ are the methods of :class:`NullTranslations`:
247
247
248
248
.. method :: gettext(message)
249
249
250
- If a fallback has been set, forward :meth: `. gettext ` to the fallback.
250
+ If a fallback has been set, forward :meth: `! gettext ` to the fallback.
251
251
Otherwise, return *message *. Overridden in derived classes.
252
252
253
253
254
254
.. method :: ngettext(singular, plural, n)
255
255
256
- If a fallback has been set, forward :meth: `ngettext ` to the fallback.
256
+ If a fallback has been set, forward :meth: `! ngettext ` to the fallback.
257
257
Otherwise, return *singular * if *n * is 1; return *plural * otherwise.
258
258
Overridden in derived classes.
259
259
260
260
261
261
.. method :: lgettext(message)
262
262
.. method :: lngettext(singular, plural, n)
263
263
264
- Equivalent to :meth: `.gettext ` and :meth: `ngettext `, but the translation
264
+ Equivalent to :meth: `.gettext ` and :meth: `. ngettext `, but the translation
265
265
is returned as a byte string encoded in the preferred system encoding
266
266
if no encoding was explicitly set with :meth: `set_output_charset `.
267
267
Overridden in derived classes.
0 commit comments