[Mailman-i18n] sorting pygettext.py output

Barry A. Warsaw barry@digicool.com
Mon, 21 May 2001 15:32:18 -0400

>>>>> "MvL" == Martin von Loewis <loewis@informatik.hu-berlin.de> writes:

    >> I found it a bit hard task to follow up the versions of
    >> mailman-i18n because pygettext.py output is random order.
    >> Following patch and executing the script with `--style sort'
    >> option make the output more friendly for translaters, I
    >> believe.

    MvL> This is a very good idea. I think pygettext should always
    MvL> sort the output, without even asking the user; ideally in the
    MvL> same way as xgettext would sort them. It appears that your
    MvL> patch sorts them by file-then-line, so does xgettext.

    MvL> Therefore, I propose that you remove the command line option,
    MvL> and submit your change to sf.net/projects/python.

I'm about to check in a slightly different patch, which retains packed
GNU style comments and also fixes a bug that can cause duplicate
entries.  Details (including the patch) are available at