# HG changeset patch
# User Giampaolo Fadel <[email protected]>
# Date 1245163723 -7200
# Node ID 6af882fd985406d5a8c626e6f3902be96ec65cba
# Parent 30d64724df5e9a18a67bc5f34049d9d683b561a1
backout: add gettext wrapper
diff --git a/hggtk/backout.py b/hggtk/backout.py
--- a/hggtk/backout.py
+++ b/hggtk/backout.py
@@ -92,15 +92,15 @@
summary = ctx.description().replace('\0', '')
summary = summary.split('\n')[0]
escape = gobject.markup_escape_text
- desc = '<b>rev</b>\t\t: %s\n' % escape(revstr)
- desc += '<b>summary</b>\t: %s\n' % escape(summary[:80])
- desc += '<b>user</b>\t\t: %s\n' % escape(ctx.user())
- desc += '<b>date</b>\t\t: %s\n' % escape(hglib.displaytime(ctx.date()))
+ desc = '<b>' + _('rev') + '</b>\t\t: %s\n' % escape(revstr)
+ desc += '<b>' + _('summary') + '</b>\t: %s\n' % escape(summary[:80])
+ desc += '<b>' + _('user') + '</b>\t\t: %s\n' % escape(ctx.user())
+ desc += '<b>' + _('date') + '</b>\t\t: %s\n' %
escape(hglib.displaytime(ctx.date()))
node = repo.lookup(revid)
tags = repo.nodetags(node)
- desc += '<b>branch</b>\t: ' + escape(ctx.branch())
+ desc += '<b>' + _('branch') + '</b>\t: ' + escape(ctx.branch())
if tags:
- desc += '\n<b>tags</b>\t\t: ' + escape(', '.join(tags))
+ desc += '\n<b>' + _('tags') + '</b>\t\t: ' + escape(',
'.join(tags))
return hglib.toutf(desc)
def set_notify_func(self, func, *args):
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop