9
9
r"""Used to sort .items of txln_info pairs so gettext output files are
12
>>> gettext_file_sorting_function(("s", {"langs":{"l":["1","2"]}, "refs":[{"file":"f1"},{"file":"f2"}]}))
12
>>> gettext_file_sorting_function(("s", {"langs":{"l":["1","2"]}, "refs":[{"grdfile":"f1"},{"grdfile":"f2"}]}))
16
16
>>> gettext_file_sorting_function(("s", {"langs":{"l":["1","2"]}, "refs":[]}))
18
18
>>> gettext_file_sorting_function(("s", {"langs":{"l":["1","2"]},}))
24
24
def grd_msg_write_in_po(header, text, outfile):