The generated POT file's messages are sorted alphabetically (i.e. msgid "a" is above msgid "b")
In other implementations such as Python's Babel (http://babel.pocoo.org) messages are sorted by source file path. For example
base/a.py
base/b.py
base/a/a.py
base/a/b.py
Note that files in 'higher' directories are kept at the top and subdirectories come afterwards.
When messages are present in multiple files babel seems to select the directory with the least subdirectories as the sort key.
This makes translators lives easier in tools that rely on the order of messages in the PO files as similar messages are grouped together.
Can we have an option to set the sort order of the generated POT file?
The generated POT file's messages are sorted alphabetically (i.e.
msgid "a"is abovemsgid "b")In other implementations such as Python's Babel (http://babel.pocoo.org) messages are sorted by source file path. For example
Note that files in 'higher' directories are kept at the top and subdirectories come afterwards.
When messages are present in multiple files babel seems to select the directory with the least subdirectories as the sort key.
This makes translators lives easier in tools that rely on the order of messages in the PO files as similar messages are grouped together.
Can we have an option to set the sort order of the generated POT file?