tractorcow-farm / silverstripe-fluent

Multi-language translate module for Silverstripe, without having to manage separate site trees.
BSD 3-Clause "New" or "Revised" License
91 stars 109 forks source link

Override data after deleting a translation #847

Open FarhangQ opened 4 months ago

FarhangQ commented 4 months ago

Module version(s) affected

6.0

Description

test case: create a job in DE then copy it to EN and change text in english to english then use translations button to publish until here, everything works then use unpublish all languages from translations button. then check language Versions, both are in english. Bildschirmfoto 2024-05-03 um 15 10 10

it saved the english version to the german one

How to reproduce

-

Possible Solution

No response

Additional Context

No response

Validations

tractorcow commented 4 months ago

Could it be that "unpublish all languages" is deleting not only the live localisation, but also the stage at the same time by accident?

FarhangQ commented 4 months ago

Could it be that "unpublish all languages" is deleting not only the live localisation, but also the stage at the same time by accident?

No, It just delete the language that we deleted then after trying to add new translation of it ( the non-deleted one ), the new translation will overwritten the main source. For ex:

  1. English
  2. German
  3. Removing German
  4. Adding German
  5. Now it'll change English exactly like German content