Problem/Motivation
Now that we have the feature to preview the translations #1998060: Provide an in-site preview for translator, to see how they will look like when the translated content will be published, we also want to support it in local translator so we can see previews of the local task items.
Comments
Comment #2
edurenye commentedAdded the preview in local.
Now saving the data item does not overwrite the source.
Added tests.
Comment #3
berdirAs discussed, lets make this a button that saves and then shows a link to preview in the success message.
Also, move the save fixes to a separate issue, mbovan opened one today.
Comment #4
edurenye commentedComment #5
edurenye commentedRemoved all unrelated things, and changed the link for the button.
Comment #7
edurenye commentedThe failing test will be fixed when this issue will be committed #2685815: Do not update source text after saving a translation.
Comment #8
edurenye commentedThis issue #2685815: Do not update source text after saving a translation is committed.
Comment #9
edurenye commentedRebased.
Comment #10
berdirIs the permission check really necessary? I don't think you can get here without having that permission?
I'm not sure if we should do this here or only if we have to (= in preview()).
I think i would prefer that. Also less overhead when you just want to save.
Local translator test is now the slowest test. Can we make a new LocalTranslatorPreviewTest for this? So we don't need the additional dependencies for all other tests.
Also, I'm reasonably sure we don't need ckeditor here, just like we didn't need it in the tmgmt (review) tests.
why not translatable?
why is this permission necessary?
Comment #11
edurenye commentedFixed all the points, testing the point one I found a big issue and I opened a followup #2688939: Unassigned not manager users must not be able to view or update task Items
Comment #12
mbovan commentedTested manually, looks good to me.
Comment #14
berdirNice, now TmgmtUiTest is the slowest again but we're also < 5m, I can live with that for now.
Looks good, committed!