Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 9636:926eba48eac9
commands: search for translated version of "DEPRECATED"
The option description is already translated at this point, so we must
search for a translation of "DEPRECATED".
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 24 Oct 2009 00:29:25 +0200 |
parents | 022b15b9ec8c |
children | 9e76232fbfbe |
comparison
equal
deleted
inserted
replaced
9635:5d8125bbbbf4 | 9636:926eba48eac9 |
---|---|
1602 # list all option lists | 1602 # list all option lists |
1603 opt_output = [] | 1603 opt_output = [] |
1604 for title, options in option_lists: | 1604 for title, options in option_lists: |
1605 opt_output.append(("\n%s" % title, None)) | 1605 opt_output.append(("\n%s" % title, None)) |
1606 for shortopt, longopt, default, desc in options: | 1606 for shortopt, longopt, default, desc in options: |
1607 if "DEPRECATED" in desc and not ui.verbose: continue | 1607 if _("DEPRECATED") in desc and not ui.verbose: continue |
1608 opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, | 1608 opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, |
1609 longopt and " --%s" % longopt), | 1609 longopt and " --%s" % longopt), |
1610 "%s%s" % (desc, | 1610 "%s%s" % (desc, |
1611 default | 1611 default |
1612 and _(" (default: %s)") % default | 1612 and _(" (default: %s)") % default |