/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to brzlib/export_pot.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 11:25:18 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521112518-5x3xa7t4hnjk8kb8
Rename bzrlib => brzlib, bzr => brz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
"""Extract docstrings from Bazaar commands.
21
21
 
22
 
This module only handles bzrlib objects that use strings not directly wrapped
 
22
This module only handles brzlib objects that use strings not directly wrapped
23
23
by a gettext() call. To generate a complete translation template file, this
24
24
output needs to be combined with that of xgettext or a similar command for
25
25
extracting those strings, as is done in the bzr Makefile. Sorting the output
31
31
import inspect
32
32
import os
33
33
 
34
 
from bzrlib import (
 
34
from brzlib import (
35
35
    commands as _mod_commands,
36
36
    errors,
37
37
    help_topics,
39
39
    plugin,
40
40
    help,
41
41
    )
42
 
from bzrlib.trace import (
 
42
from brzlib.trace import (
43
43
    mutter,
44
44
    note,
45
45
    )
46
 
from bzrlib.i18n import gettext
 
46
from brzlib.i18n import gettext
47
47
 
48
48
 
49
49
def _escape(s):
274
274
 
275
275
 
276
276
def _error_messages(exporter):
277
 
    """Extract fmt string from bzrlib.errors."""
 
277
    """Extract fmt string from brzlib.errors."""
278
278
    context = exporter.get_context(errors)
279
279
    base_klass = errors.BzrError
280
280
    for name in dir(errors):