sapling/i18n
Mark Thomas 60e99a245c ui: add labelled prefixes to ui.write
Summary:
Add optional prefix keyword arguments to `ui.write` (and thus `ui.status`,
`ui.warn`, etc.).  These prefixes can be used to indicate an error condition,
some notice to the user, or to mark a message as coming from a particular
component.  The prefixes are labelled so that they can be colored to stand
out from the surrounding text.  The default colors are red for errors, yellow
for notices, and cyan for components.

Add a component parameter to `error.Abort` (and thus any exception that
inherits from it) that can be used by callers to mark which component is
responsible for the exception.   When the error is printed, the component is
passed as the component prefix of the error message.

Reviewed By: mitrandir77

Differential Revision: D15201946

fbshipit-source-id: 02e3da40e9563704fa1d7ce81366e6e7f66c7f34
2019-05-09 06:55:11 -07:00
..
check-translation.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
da.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
de.po ui: add labelled prefixes to ui.write 2019-05-09 06:55:11 -07:00
el.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
fr.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
hggettext codemod: import from the edenscm package 2019-01-29 17:25:32 -08:00
it.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
ja.po commands: be more uniform in an "hg update" error message 2017-10-23 22:45:24 +02:00
polib.LICENSE i18n: import polib 0.5.2 (rev b0ab301cfdcc) 2010-06-17 20:10:34 -03:00
polib.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
posplit py3: make i18n/posplit use print_function 2016-05-13 03:09:30 +05:30
pt_BR.po ui: add labelled prefixes to ui.write 2019-05-09 06:55:11 -07:00
ro.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
ru.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
sv.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
zh_CN.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00
zh_TW.po i18n: update Report-Msgid-Bugs-To property of *.po files 2017-02-11 00:23:55 +09:00