summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-11-22 20:59:06 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-11-22 20:59:06 +0100
commit178b3eb8a6c89c06e9a775c58e0bb6784987eb28 (patch)
tree33cff47de91c91f6e888f094239cd8a0c90e6020
parent2f99033384e4ec02f96423d4fd0a1510f838695d (diff)
downloadweechat-178b3eb8a6c89c06e9a775c58e0bb6784987eb28.zip
doc: sort locales in documentation generator
-rw-r--r--doc/docgen.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/docgen.py b/doc/docgen.py
index e136932a5..544aafe53 100644
--- a/doc/docgen.py
+++ b/doc/docgen.py
@@ -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()