How to reproduce
Just try to submit a job of translating from non-English to English.

Symptoms
I am not able to do it: I am always getting medium screen of job checkout stage, where "Source language" field is absent, see screenshot:
Source language is absent.
Please note, that "Target language" is incorrect too (I am translating from Russian to English) - but I think it is just a side effect of this issue.
Also keep in mind that source_language of tmgmt_job is always 'en', see screenshot:
Source language is always en.

Diagnosis
As I see it, we have an incorrect job saving mehanism, which puts 'en' as a source language for all jobs - that is the crux.

Comments

PatchRanger’s picture

Issue summary: View changes

Image tuning.

PatchRanger’s picture

Status: Active » Needs review
StatusFileSize
new759 bytes

Fixed. The problem is in incorrect call to entity_language. There is no more such kind of typo in TMGMT - so the patch changes only one line. Please review.

blueminds’s picture

Status: Needs review » Reviewed & tested by the community

The fix is reasonable.

miro_dietiker’s picture

Status: Reviewed & tested by the community » Fixed

Committed, pushed, attributed.

PatchRanger’s picture

Wow, lightning speed!)) Thanks.

berdir’s picture

Title: Source language of tmgmt_job is always 'en' » Add tests: Source language of tmgmt_job is always 'en'
Category: bug » task
Status: Fixed » Active
Issue tags: +Needs tests

Re-opening to add test coverage. This is the fix for the fix for the fix, we need test coverage to make sure we extract the source language correctly.

miro_dietiker’s picture

Assigned: Unassigned » berdir

Please check.

miro_dietiker’s picture

Issue summary: View changes

Added note about target language.