D5067: help: assigning categories to existing commands
Yuya Nishihara
yuya at tcha.org
Sun Oct 14 04:41:28 EDT 2018
> # 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.
More information about the Mercurial-devel
mailing list