# HG changeset patch # User Giampaolo Fadel <gp.fa...@gmail.com> # Date 1243513583 -7200 # Node ID c4d14541d711a49a6c3e082b7dc363441950938d # Parent a70269c3ae051f6d0064a3d979d282cf806aa871 status: give a different text for the messages of delete and revert confirmation dialog
Add a gettext wrapper. diff --git a/hggtk/status.py b/hggtk/status.py --- a/hggtk/status.py +++ b/hggtk/status.py @@ -1138,7 +1138,7 @@ # rev options needs extra tweaking since it must be an empty # string when unspecified for revert command revertopts['rev'] = '' - dlg = gdialog.Confirm('Confirm Revert', files, self) + dlg = gdialog.Confirm(_('Confirm Revert'), files, self,_('Revert the following files?')) if not dlg or dlg.run() == gtk.RESPONSE_YES: success, outtext = self._hg_call_wrapper('Revert', dohgrevert) if success: @@ -1222,7 +1222,7 @@ self.delete_files([wfile]) def delete_files(self, files): - dlg = gdialog.Confirm(_('Confirm Delete Unrevisioned'), files, self) + dlg = gdialog.Confirm(_('Confirm Delete Unrevisioned'), files, self,_('Delete the following unrevisioned files?')) if dlg.run() == gtk.RESPONSE_YES: errors = '' for wfile in files: ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop