Problem/Motivation
Fifth step for the #2464445: [meta] Jobless / continuous translators.
Proposed resolution
Add a new interface for translators, ContinuousTranslatorInterface, with a requestJobItemTranslation(JobItemInterface $job_item) method. Limit the allowed translators for continuous jobs to that interface. Implement it in the test translator. information like language and translator settings can be accessed through getJob().
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | interdiff-add_an_interface_for-2670258-12-14.txt | 1.35 KB | edurenye |
| #14 | add_an_interface_for-2670258-14.patch | 9.41 KB | edurenye |
| #12 | interdiff-add_an_interface_for-2670258-10-12.txt | 924 bytes | edurenye |
| #12 | add_an_interface_for-2670258-12.patch | 9.11 KB | edurenye |
| #10 | interdiff-add_an_interface_for-2670258-6-10.txt | 2.13 KB | edurenye |
Comments
Comment #2
edurenye commentedComment #3
edurenye commentedAdded the interface.
Make test_translator implement the interface.
Just can assign a continuous job to a ContinuousTranslator.
List of continuous jobs now don't show non continuous jobs.
Comment #4
berdiras discussed, make this plural, an array of job items.
$job is aparrently an optionl argument here, so we should check that one is passed in?
can you add a (continuous) or something to the message here?
That's not what I meant. It wouldn't be listed there even if file would support that. because it's not a continuous job.
You need to extend TMGMTUitest instead, around line 717, on the add form.
Comment #6
edurenye commentedDone.
Comment #9
berdirStill no.
You need to check available translators, not jobs.
Comment #10
edurenye commentedDone.
Comment #12
edurenye commentedNow I'm just installing tmgmt_file in the test where I need it.
Comment #13
berdirYeah, the problem with this is that this will no longer work properly when we change the translator label. See #2662498: Rename Translator to Provider. So it's very easy to break it so that it will no longer test anything useful.
For now, lets just shorten it to just checking for no "File". That will still be there, even after the the rename.
Almost there.
Comment #14
edurenye commentedDone.
Comment #17
berdirYes, that works. Committed.