~ubuntu-branches/debian/sid/tortoisehg/sid

« back to all changes in this revision

Viewing changes to tortoisehg/hgqt/thgstrip.py

  • Committer: Package Import Robot
  • Author(s): Ludovico Cavedon
  • Date: 2012-02-20 22:03:12 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120220220312-11yhqpn8suxvwyg4
Tags: 2.3-1
* Imported Upstream version 2.3 (Closes: #660387, #658140).
* Update dependency on Merurual (2.1, 2.2).

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from mercurial import hg, ui, error
13
13
 
14
14
from tortoisehg.util import hglib, paths
15
 
from tortoisehg.hgqt.i18n import _
 
15
from tortoisehg.hgqt.i18n import _, ngettext
16
16
from tortoisehg.hgqt import cmdui, cslist, qtlib, thgrepo
17
17
 
18
18
class StripDialog(QDialog):
171
171
    def preview(self):
172
172
        if self.updatecslist():
173
173
            striprevs = self.cslist.curitems
174
 
            cstext = _("<b>%d changesets</b> will be stripped") % len(striprevs)
 
174
            cstext = ngettext(
 
175
                "<b>%d changeset</b> will be stripped",
 
176
                "<b>%d changesets</b> will be stripped",
 
177
                len(striprevs)) % len(striprevs)
175
178
            self.status.setText(cstext)
176
179
            self.strip_btn.setEnabled(True)
177
180
        else: