@@ -149,7 +149,7 @@ Class-based API
149
149
150
150
The class-based API of the :mod: `gettext ` module gives you more flexibility and
151
151
greater convenience than the GNU :program: `gettext ` API. It is the recommended
152
- way of localizing your Python applications and modules. :mod: `gettext ` defines
152
+ way of localizing your Python applications and modules. :mod: `! gettext ` defines
153
153
a "translations" class which implements the parsing of GNU :file: `.mo ` format
154
154
files, and has methods for returning either standard 8-bit strings or Unicode
155
155
strings. Instances of this "translations" class can also install themselves in
@@ -239,7 +239,7 @@ Translation classes are what actually implement the translation of original
239
239
source file message strings to translated message strings. The base class used
240
240
by all translation classes is :class: `NullTranslations `; this provides the basic
241
241
interface you can use to write your own specialized translation classes. Here
242
- are the methods of :class: `NullTranslations `:
242
+ are the methods of :class: `! NullTranslations `:
243
243
244
244
245
245
.. class :: NullTranslations([fp])
@@ -268,14 +268,14 @@ are the methods of :class:`NullTranslations`:
268
268
269
269
.. method :: gettext(message)
270
270
271
- If a fallback has been set, forward :meth: `gettext ` to the
271
+ If a fallback has been set, forward :meth: `! gettext ` to the
272
272
fallback. Otherwise, return the translated message. Overridden in derived
273
273
classes.
274
274
275
275
276
276
.. method :: lgettext(message)
277
277
278
- If a fallback has been set, forward :meth: `lgettext ` to the
278
+ If a fallback has been set, forward :meth: `! lgettext ` to the
279
279
fallback. Otherwise, return the translated message. Overridden in derived
280
280
classes.
281
281
@@ -284,14 +284,14 @@ are the methods of :class:`NullTranslations`:
284
284
285
285
.. method :: ugettext(message)
286
286
287
- If a fallback has been set, forward :meth: `ugettext ` to the
287
+ If a fallback has been set, forward :meth: `! ugettext ` to the
288
288
fallback. Otherwise, return the translated message as a Unicode
289
289
string. Overridden in derived classes.
290
290
291
291
292
292
.. method :: ngettext(singular, plural, n)
293
293
294
- If a fallback has been set, forward :meth: `ngettext ` to the
294
+ If a fallback has been set, forward :meth: `! ngettext ` to the
295
295
fallback. Otherwise, return the translated message. Overridden in derived
296
296
classes.
297
297
@@ -300,7 +300,7 @@ are the methods of :class:`NullTranslations`:
300
300
301
301
.. method :: lngettext(singular, plural, n)
302
302
303
- If a fallback has been set, forward :meth: `lngettext ` to the
303
+ If a fallback has been set, forward :meth: `! lngettext ` to the
304
304
fallback. Otherwise, return the translated message. Overridden in derived
305
305
classes.
306
306
@@ -309,7 +309,7 @@ are the methods of :class:`NullTranslations`:
309
309
310
310
.. method :: ungettext(singular, plural, n)
311
311
312
- If a fallback has been set, forward :meth: `ungettext ` to the fallback.
312
+ If a fallback has been set, forward :meth: `! ungettext ` to the fallback.
313
313
Otherwise, return the translated message as a Unicode string. Overridden
314
314
in derived classes.
315
315
0 commit comments