Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2015 at 13:43 UTC
Updated:
26 Nov 2015 at 11:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dragos-dumi commentedAdded validation on job item form submit to check if the job has a translator.
Regarding the redirect to the job form, if wanted, do you have any suggestion how to do that in the job item form method?
Comment #4
berdirI don't think we need to have a validation error. We just need to avoid calling the translator, which means we just need to switch the getTranslator() call below to hasTranslator().
And we will need tests, since they currently don't fail.
Comment #7
sasanikolic commentedThis core issue probably broke configration translation. We need the core issue fixed before making a patch for this issue.
Comment #8
sasanikolic commentedI get this error.
Comment #9
tduong commentedUploaded:
Comment #10
giancarlosotelo commentedLooks pretty good to me. Some minor stuff
Maybe we can add a comment here about what we are testing.
We can get rid of these asserts because we already do that before.
Comment #11
tduong commentedUploaded patch:
Comment #12
giancarlosotelo commentedSeems fine to me.
Comment #13
miro_dietikerIf there is no translator assigned, why do we allow editing and we are showing the save button?
Feels like a UX trap.
See also comment above from Berdir: "We just need to avoid calling the translator, which means we just need to switch the getTranslator() call below to hasTranslator()."
So the fact that we don't have a translator is definitively not an Error.
We should discuss to properly define the goal.
Comment #14
berdirJust remove the else. No error, just don't call the translator. This is just a left-over of the switch to hasTranslation().
Editing before submitting is currently not very useful, but we want to change that (e.g. skip data items from being translated/sent to the translator and stuff like that)
Comment #15
tduong commentedUploaded patch:
Comment #17
miro_dietikerI don't agree with the save() modification.
The problem is in addTranslatedData() where the Translator is called.
Check there if a translator is present.
Comment #18
tduong commentedComment #19
miro_dietikerLook good to me!