doc: sort locales in documentation generator

v2.8-utf8proc
Sébastien Helleu 2019-11-22 20:59:06 +01:00
parent 2f99033384
commit 178b3eb8a6
1 changed files with 9 additions and 2 deletions

View File

@ -72,7 +72,14 @@ except ImportError:
IMPORT_OK = False
# list of locales for which we want to build doc files to include
LOCALE_LIST = ('en_US', 'fr_FR', 'it_IT', 'de_DE', 'ja_JP', 'pl_PL')
LOCALE_LIST = (
'de_DE',
'en_US',
'fr_FR',
'it_IT',
'ja_JP',
'pl_PL',
)
# all commands/options/.. of following plugins will produce a file
# non-listed plugins will be ignored
@ -449,7 +456,7 @@ def docgen_cmd_cb(data, buf, args):
if args:
locales = args.split(' ')
else:
locales = LOCALE_LIST
locales = sorted(LOCALE_LIST)
commands = get_commands()
options = get_options()
infos = get_infos()