symfony-bundle icon indicating copy to clipboard operation
symfony-bundle copied to clipboard

Order of translations seems random

Open Guite opened this issue 6 years ago • 6 comments

This could be related to #398 but I am not sure about that.

We've setup a GitHub Action workflow which should regularly extract translations and create a pull request for adding missing messages.

But it seems that the order of messages in a catalogue is changed every time. Maybe it would be possible to change that in order to use a "fixed order" instead?

Here is an example: https://github.com/zikula/core/pull/4123 If you look at the diff you'll see that it moves messages around which did not change actually.

Guite avatar Feb 09 '20 14:02 Guite

I tried on my local installation but I don't have this problem. In my case, with loco, everything is fine, I can download translations several times, the generated translation file will always be the same.

I guess it depends on the adapter you're using?

odolbeau avatar Feb 10 '20 08:02 odolbeau

I guess it depends on the adapter you're using?

That would be Filesystem then.

Guite avatar Feb 10 '20 08:02 Guite

Which command is used during this automatic PR? Is it translation:download or translation:update. Could you please give a try to both of them to see if you have the same problem?

(May be linked to #392)

odolbeau avatar Feb 10 '20 08:02 odolbeau

We use translation:extract.

Guite avatar Feb 10 '20 08:02 Guite

Here is what we execute as part of this workflow: https://github.com/zikula/core/blob/200a283e95dbabbf4716bdc18e838bb89d1bac7f/.github/workflows/update-translations.yml#L31

Guite avatar Feb 10 '20 08:02 Guite

which should regularly extract translations Obviously, it was already said! ^^

Looks like it's definitively the same issue described in #398.

odolbeau avatar Feb 10 '20 08:02 odolbeau