Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable i18n: add use of plural forms in code

Changeset 0e25b8220809

Parent bc05d42a6ee1

by Andrei Polushin

Changes to one file · Browse files at 0e25b8220809 Showing diff from parent bc05d42a6ee1 Diff from another changeset...

 
12
13
14
15
 
16
17
18
 
111
112
113
114
 
 
 
115
116
117
118
 
 
 
119
120
121
122
123
 
 
 
124
125
126
 
12
13
14
 
15
16
17
18
 
111
112
113
 
114
115
116
117
118
119
 
120
121
122
123
124
125
 
 
126
127
128
129
130
131
@@ -12,7 +12,7 @@
 from mercurial import cmdutil, hg, ui    from tortoisehg.util import hglib -from tortoisehg.hgqt.i18n import _ +from tortoisehg.hgqt.i18n import _, ngettext  from tortoisehg.hgqt import qtlib, cmdui    from PyQt4.QtCore import * @@ -111,16 +111,21 @@
  self.showMessage.emit(_('Ready to purge.'))   U, I, T = self.files   if U: - self.ucb.setText(_('Delete %d unknown files') % len(U)) + self.ucb.setText(ngettext( + 'Delete %d unknown file', + 'Delete %d unknown files', len(U)) % len(U))   self.ucb.setChecked(True)   self.ucb.setEnabled(True)   if I: - self.icb.setText(_('Delete %d ignored files') % len(I)) + self.icb.setText(ngettext( + 'Delete %d ignored file', + 'Delete %d ignored files', len(I)) % len(I))   self.icb.setChecked(True)   self.icb.setEnabled(True)   if T: - self.tcb.setText(_('Delete %d files in .hg/Trashcan') % - len(T)) + self.tcb.setText(ngettext( + 'Delete %d file in .hg/Trashcan', + 'Delete %d files in .hg/Trashcan', len(T)) % len(T))   self.tcb.setChecked(True)   self.tcb.setEnabled(True)