/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 breezy/export_pot.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

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 breezy 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 breezy 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 breezy.trace import (
43
43
    mutter,
44
44
    note,
45
45
    )
46
 
from bzrlib.i18n import gettext
 
46
from breezy.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 breezy.errors."""
278
278
    context = exporter.get_context(errors)
279
279
    base_klass = errors.BzrError
280
280
    for name in dir(errors):