Skip to content

Conversation

@elisescu
Copy link
Contributor

Issue fixed:

  1. Site language set to English and user creates/writes an English question, with its content at version V1 (Google Translated detected it also as English content).
  2. User changes the language to “Untranslated”
  3. User makes more edits to the content, bringing it to V2
  4. User changes the language back to English (doesn’t edit!) and content is now at V1. But for all the other languages, including the “Untranslated”, content is V2.
  5. The issue is that the platform was detecting the content as being English and was not updating the English column (e.g.: title_en) because it was wrongly relying on the Default language mechanism to use the content from the title_original given that the language of the content was English. But that only happens if the title_en was empty, and here it was not the case, as the question was initially written in English, so it’s *_en columns were populated. It’s only the case for content never translated.

Issue fixed:

1. Site language set to English and user creates/writes an English question,
   with its content at version **V1** (Google Translated detected it also as English content).
2. User changes the language to “Untranslated”
3. User makes more edits to the content, bringing it to **V2**
4. User changes the language back to English (doesn’t edit!) and content is now at **V1**.
   But for all the other languages, including the “Untranslated”, content is **V2**.
5. The issue is that the platform was detecting the content as being English and was
   not updating the English column (e.g.: `title_en`) because it was wrongly relying
   on the Default language mechanism to use the content from the `title_original`
   given that the language of the content was English. But that only happens
   if the `title_en` was empty, and here it was not the case, as the question
   was initially written in English, so it’s `*_en` columns were populated.
   It’s only the case for content never translated.
@elisescu elisescu merged commit c891f7f into main Nov 22, 2024
2 checks passed
@elisescu elisescu deleted the fixTranslations branch November 22, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants