Skip to content

[Translation] Extend the "translation:update" command's "sort" option to apply to the translation files #37918

Closed
@Adambean

Description

@Adambean

The command translation:update with --force is fantastically useful to begin building translation data.

One pitfall is that the translations in the XLIFF file it builds are sorted according to the arbitrary order they are found by the scanning process, whereas the output for --dump-messages has message sources sorted alphabetically according to the sort order you choose.

It would be a small but noticed beneficial if the --sort option could apply to the order in which the translations are added to the file, and a cherry on top if it could sort translations in existing files. (By the message source as per written in the application source/template, not the random ID such as "pDEsNqs".)

The XLIFF files are unfortunately quite difficult to sort by hand. If a process were to be written at all it might as well go directly into this command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions