Export translation strings in a consistent order

Created on 23 January 2017, almost 8 years ago
Updated 20 July 2023, over 1 year ago

Note: apologies if this has been discussed before, but I couldn't find anything about this.

Problem/Motivation

When exporting a .po or .pot file from admin/config/regional/translate/export currently the order is dictated by the order the strings happen to he in the database. In our workflow, we store custom translations in .po files in the repository, but whenever a developer exports a new version of a po file (this is primarily i18n strings), the order in the file is reshuffled according to the order the strings happen to be in their development database.

Proposed resolution

Introduce a sort into the export process. To get the best results, this should probably sort on context first, source string second.

Remaining tasks

* Sanity check. Does this approach make sense, or am I missing something?
* Check if the same is true for D8
* Create a version of the patch for D8
* Create tests

User interface changes

None.

API changes

If this constitutes an API change, the order of translation strings in .po/.pot files may change.

Data model changes

None.

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
LocaleΒ  β†’

Last updated about 1 month ago

Created by

πŸ‡³πŸ‡±Netherlands eelkeblok Netherlands πŸ‡³πŸ‡±

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024