Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54a069f commit 128c77dCopy full SHA for 128c77d
1 file changed
Tools/i18n/pygettext.py
@@ -325,7 +325,17 @@ def write(self, fp):
325
# The time stamp in the header doesn't have the same format as that
326
# generated by xgettext...
327
print >> fp, pot_header % {'time': timestamp, 'version': __version__}
328
+ # Sort the entries. First sort each particular entry's keys, then
329
+ # sort all the entries by their first item.
330
+ reverse = {}
331
for k, v in self.__messages.items():
332
+ keys = v.keys()
333
+ keys.sort()
334
+ reverse[tuple(keys)] = (k, v)
335
+ rkeys = reverse.keys()
336
+ rkeys.sort()
337
+ for rkey in rkeys:
338
+ k, v = reverse[rkey]
339
# If the entry was gleaned out of a docstring, then add a comment
340
# stating so. This is to aid translators who may wish to skip
341
# translating some unimportant docstrings.
0 commit comments