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:

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:

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
Comment #0.0
PatchRanger commentedImage tuning.
Comment #1
PatchRanger commentedFixed. 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.
Comment #2
blueminds commentedThe fix is reasonable.
Comment #3
miro_dietikerCommitted, pushed, attributed.
Comment #4
PatchRanger commentedWow, lightning speed!)) Thanks.
Comment #5
berdirRe-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.
Comment #6
miro_dietikerPlease check.
Comment #6.0
miro_dietikerAdded note about target language.