Mercurial > hg
comparison hgext/notify.py @ 29240:48afcaadf70e
notify: make a message translatable
This message has been overlooked by check-code, because it starts with
non-alphabet character ('\').
Making this message translatable seems reasonable, because messages
below in same function are already translatable
- '\ndiffs (truncated from %d to %d lines):\n\n'
- '\ndiffs (%d lines):\n\n'
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 | a0939666b836 |
children | d5883fd055c6 |
comparison
equal
deleted
inserted
replaced
29239:ecf296652080 | 29240:48afcaadf70e |
---|---|
361 | 361 |
362 if self.ui.configbool('notify', 'diffstat', True): | 362 if self.ui.configbool('notify', 'diffstat', True): |
363 s = patch.diffstat(difflines) | 363 s = patch.diffstat(difflines) |
364 # s may be nil, don't include the header if it is | 364 # s may be nil, don't include the header if it is |
365 if s: | 365 if s: |
366 self.ui.write('\ndiffstat:\n\n%s' % s) | 366 self.ui.write(_('\ndiffstat:\n\n%s') % s) |
367 | 367 |
368 if maxdiff == 0: | 368 if maxdiff == 0: |
369 return | 369 return |
370 elif maxdiff > 0 and len(difflines) > maxdiff: | 370 elif maxdiff > 0 and len(difflines) > maxdiff: |
371 msg = _('\ndiffs (truncated from %d to %d lines):\n\n') | 371 msg = _('\ndiffs (truncated from %d to %d lines):\n\n') |