D5067: help: assigning categories to existing commands
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sun Oct 14 04:42:20 EDT 2018
yuja added a comment.
> 1. Command categories. +CATEGORY_REPO_CREATION = _('Repository creation') +CATEGORY_REMOTE_REPO_MANAGEMENT = _('Remote repository management') +CATEGORY_COMMITTING = _('Change creation') +CATEGORY_CHANGE_NAVIGATION = _('Change navigation') +CATEGORY_CHANGE_MANAGEMENT = _('Change manipulation') +CATEGORY_CHANGE_ORGANIZATION = _('Change organization') +CATEGORY_WORKING_DIRECTORY = _('Working directory management') +CATEGORY_FILE_CONTENTS = _('File content management') +CATEGORY_IMPORT_EXPORT = _('Change import/export') +CATEGORY_MAINTENANCE = _('Repository maintenance') +CATEGORY_HELP = _('Help') +CATEGORY_MISC = _('Miscellaneous commands') CATEGORY_NONE = _('Uncategorized commands')
Can you make these constants untranslated (e.g. 'help' instead of _('Help'))
and map them to corresponding translation later?
And, perhaps they can be moved to `registrar.command` so we can avoid
importing help.py everywhere.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5067
To: rdamazio, durin42, martinvonz, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list