~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/reconfigure.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-15 11:31:47 UTC
  • mto: This revision was merged to the branch mainline in revision 6143.
  • Revision ID: jriddell@canonical.com-20110915113147-bgleett47i4jjxya
add gettext() to uses of trace.note()

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    ui,
30
30
    urlutils,
31
31
    )
32
 
 
 
32
from bzrlib.i18n import gettext
33
33
 
34
34
# TODO: common base class for all reconfigure operations, making no
35
35
# assumptions about what kind of change will be done.
48
48
        try:
49
49
            branch.set_stacked_on_url(on_url)
50
50
            if not trace.is_quiet():
51
 
                ui.ui_factory.note(
52
 
                    "%s is now stacked on %s\n"
53
 
                    % (branch.base, branch.get_stacked_on_url()))
 
51
                ui.ui_factory.note(gettext(
 
52
                    "{0} is now stacked on {1}\n").format(
 
53
                      branch.base, branch.get_stacked_on_url()))
54
54
        finally:
55
55
            branch.unlock()
56
56
 
63
63
        try:
64
64
            branch.set_stacked_on_url(None)
65
65
            if not trace.is_quiet():
66
 
                ui.ui_factory.note(
67
 
                    "%s is now not stacked\n"
 
66
                ui.ui_factory.note(gettext(
 
67
                    "%s is now not stacked\n")
68
68
                    % (branch.base,))
69
69
        finally:
70
70
            branch.unlock()