This is an archive of the discontinued Mercurial Phabricator instance.

ui: define (write|status|warn|note)noi18n aliases
ClosedPublic

Authored by indygreg on Oct 6 2019, 10:11 AM.

Details

Summary

We currently use write(('...')) to suppress check-code warnings
about not using translated strings. However, when we run black, it
will strip the ((...)). In order to placate black, we'll need to use
a different mechanism to pass untranslatable strings. This commit
introduces a writenoi18n alias (and friends) to write for that
purpose.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Oct 6 2019, 10:11 AM
indygreg set the repository for this revision to rHG Mercurial.Oct 6 2019, 10:39 AM
durin42 retitled this revision from ui: define a writenoi18n alias to ui: define (write|status|warn|note)noi18n aliases.
durin42 edited the summary of this revision. (Show Details)
durin42 updated this revision to Diff 16886.
durin42 accepted this revision.Oct 6 2019, 11:50 AM
This revision is now accepted and ready to land.Oct 6 2019, 11:50 AM
This revision was automatically updated to reflect the committed changes.