@@ -257,7 +257,7 @@ are the methods of :class:`!NullTranslations`:
257
257
258
258
.. method :: info()
259
259
260
- Return the "protected" :attr: ` _info ` variable, a dictionary containing
260
+ Return a dictionary containing
261
261
the metadata found in the message catalog file.
262
262
263
263
@@ -296,17 +296,17 @@ are the methods of :class:`!NullTranslations`:
296
296
The :class: `GNUTranslations ` class
297
297
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
298
298
299
- The :mod: `gettext ` module provides one additional class derived from
299
+ The :mod: `! gettext ` module provides one additional class derived from
300
300
:class: `NullTranslations `: :class: `GNUTranslations `. This class overrides
301
- :meth: `_parse ` to enable reading GNU :program: `gettext ` format :file: `.mo ` files
301
+ :meth: `! _parse ` to enable reading GNU :program: `gettext ` format :file: `.mo ` files
302
302
in both big-endian and little-endian format.
303
303
304
304
:class: `GNUTranslations ` parses optional metadata out of the translation
305
305
catalog. It is convention with GNU :program: `gettext ` to include metadata as
306
306
the translation for the empty string. This metadata is in :rfc: `822 `\ -style
307
307
``key: value `` pairs, and should contain the ``Project-Id-Version `` key. If the
308
308
key ``Content-Type `` is found, then the ``charset `` property is used to
309
- initialize the "protected" :attr: `_charset ` instance variable, defaulting to
309
+ initialize the "protected" :attr: `! _charset ` instance variable, defaulting to
310
310
``None `` if not found. If the charset encoding is specified, then all message
311
311
ids and message strings read from the catalog are converted to Unicode using
312
312
this encoding, else ASCII is assumed.
@@ -315,7 +315,7 @@ Since message ids are read as Unicode strings too, all ``*gettext()`` methods
315
315
will assume message ids as Unicode strings, not byte strings.
316
316
317
317
The entire set of key/value pairs are placed into a dictionary and set as the
318
- "protected" :attr: `_info ` instance variable.
318
+ "protected" :attr: `! _info ` instance variable.
319
319
320
320
If the :file: `.mo ` file's magic number is invalid, the major version number is
321
321
unexpected, or if other problems occur while reading the file, instantiating a
@@ -636,9 +636,9 @@ implementations, and valuable experience to the creation of this module:
636
636
637
637
.. rubric :: Footnotes
638
638
639
- .. [# ] The default locale directory is system dependent; for example, on RedHat Linux
639
+ .. [# ] The default locale directory is system dependent; for example, on Red Hat Linux
640
640
it is :file: `/usr/share/locale `, but on Solaris it is :file: `/usr/lib/locale `.
641
- The :mod: `gettext ` module does not try to support these system dependent
641
+ The :mod: `! gettext ` module does not try to support these system dependent
642
642
defaults; instead its default is :file: `{ sys.base_prefix } /share/locale ` (see
643
643
:data: `sys.base_prefix `). For this reason, it is always best to call
644
644
:func: `bindtextdomain ` with an explicit absolute path at the start of your
0 commit comments