Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

replace Qt's tr() to gettext

Changeset 4d423c40191c

Parent cc943ce2c33d

by Yuki KODAMA

Changes to 2 files · Browse files at 4d423c40191c Showing diff from parent cc943ce2c33d Diff from another changeset...

 
19
20
21
 
22
23
24
 
110
111
112
113
114
115
116
 
 
 
 
117
118
119
 
19
20
21
22
23
24
25
 
111
112
113
 
 
 
 
114
115
116
117
118
119
120
@@ -19,6 +19,7 @@
 connect = QtCore.QObject.connect  SIGNAL = QtCore.SIGNAL   +from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt import icon as geticon  from tortoisehg.hgqt.filedialogs import FileLogDialog, FileDiffDialog   @@ -110,10 +111,10 @@
  dlg.activateWindow()     def _action_defs(self): - a = [("navigate", self.tr("File history"), None , - self.tr('Show the history of the selected file'), None, self.navigate), - ("diffnavigate", self.tr("Compare file revisions"), None, - self.tr('Compare revisions of the selected file'), None, self.diffNavigate), + a = [('navigate', _('File history'), None, _('Show the history of ' + 'the selected file'), None, self.navigate), + ('diffnavigate', _('Compare file revisions'), None, _('Compare ' + 'revisions of the selected file'), None, self.diffNavigate),   ]   return a  
 
22
23
24
 
25
26
27
 
100
101
102
103
 
104
105
106
 
107
108
109
110
 
 
111
112
 
113
114
115
 
22
23
24
25
26
27
28
 
101
102
103
 
104
105
106
 
107
108
109
 
 
110
111
112
 
113
114
115
116
@@ -22,6 +22,7 @@
 SIGNAL = QtCore.SIGNAL    from tortoisehg.hgqt import icon as geticon +from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt.quickbar import QuickBar    class GotoQuickBar(QuickBar): @@ -100,16 +101,16 @@
  connect(tb, SIGNAL('goto'), self.goto)     def _action_defs(self): - a = [("back", self.tr("Back"), 'back', None, + a = [('back', _('Back'), 'back', None,   QtGui.QKeySequence(QtGui.QKeySequence.Back),   self.back), - ("forward", self.tr("Forward"), 'forward', None, + ('forward', _('Forward'), 'forward', None,   QtGui.QKeySequence(QtGui.QKeySequence.Forward),   self.forward), - ("manifest", self.tr("Show at rev..."), None, - self.tr("Show the manifest at selected revision"), None, + ('manifest', _('Show at rev...'), None, + _('Show the manifest at selected revision'), None,   self.showAtRev), - ("update", self.tr("Update to rev..."), None, None, None, + ('update', _('Update to rev...'), None, None, None,   self.updateToRev),   ]   return a