Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 29245:9d0d1242cd48
debugignore: make messages translatable
These messages have been overlooked by check-code, because they start
with non-alphabet character ('%' or '(').
Making these messages translatable seems reasonable, because messages
for ui.note(), ui.status(), ui.progress() and descriptive messages for
ui.write() in "debug" commands are already translatable in many cases.
This is also a part of preparation for making "missing _() in ui
message" detection of check-code more exact.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 26 May 2016 01:57:34 +0900 |
parents | a38c1808fbc6 |
children | b3a677c82a35 |
comparison
equal
deleted
inserted
replaced
29244:a38c1808fbc6 | 29245:9d0d1242cd48 |
---|---|
2519 ignored = p | 2519 ignored = p |
2520 ignoredata = repo.dirstate._ignorefileandline(p) | 2520 ignoredata = repo.dirstate._ignorefileandline(p) |
2521 break | 2521 break |
2522 if ignored: | 2522 if ignored: |
2523 if ignored == nf: | 2523 if ignored == nf: |
2524 ui.write("%s is ignored\n" % f) | 2524 ui.write(_("%s is ignored\n") % f) |
2525 else: | 2525 else: |
2526 ui.write("%s is ignored because of containing folder %s\n" | 2526 ui.write(_("%s is ignored because of " |
2527 "containing folder %s\n") | |
2527 % (f, ignored)) | 2528 % (f, ignored)) |
2528 ignorefile, lineno, line = ignoredata | 2529 ignorefile, lineno, line = ignoredata |
2529 ui.write("(ignore rule in %s, line %d: '%s')\n" | 2530 ui.write(_("(ignore rule in %s, line %d: '%s')\n") |
2530 % (ignorefile, lineno, line)) | 2531 % (ignorefile, lineno, line)) |
2531 else: | 2532 else: |
2532 ui.write("%s is not ignored\n" % f) | 2533 ui.write(_("%s is not ignored\n") % f) |
2533 | 2534 |
2534 @command('debugindex', debugrevlogopts + | 2535 @command('debugindex', debugrevlogopts + |
2535 [('f', 'format', 0, _('revlog format'), _('FORMAT'))], | 2536 [('f', 'format', 0, _('revlog format'), _('FORMAT'))], |
2536 _('[-f FORMAT] -c|-m|FILE'), | 2537 _('[-f FORMAT] -c|-m|FILE'), |
2537 optionalrepo=True) | 2538 optionalrepo=True) |