Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2016 at 13:07 UTC
Updated:
17 Feb 2016 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mbovan commentedThis patch is created on top of patch 5 uploaded in #2654944: Provide test credentials button and callbacks in base UI class.
I had to add submit callback on "Translator plugin" to (re)update "remote_languages_mapping" on entity and user input...
Comment #3
mbovan commentedTypo.
Comment #6
miro_dietikerHm, applied easily here. Rerolled..
Comment #7
berdirThis is not correct. the camel case one is a static cache. We already were using the one with underscore before, it just wasn't documented.
mapToRemoteLanguage() then looks again at $this->get('remote_languages_mappings'), that makes no sense like this.
Maybe we no longer need the static or can simplify it elsewhere but this change is definitely not correct.
Comment #8
edurenye commentedIs not anymore a property, set to local variable.
Comment #9
berdirWe still need to define the actual property remote_languages_mappings like the previous patch did.
Also, would be great to test this. To do this, we need to simulate that a translator doesn't return mappings or they change based on the settings.
Comment #10
berdirI'd be OK if we can write those tests using a remote translator like gengo and simulate this behavior there.
Comment #11
edurenye commentedRe-added the property and some clean up.
We tested manually and it works.
We will add tests in this issue #2655948: Add "Connect" button when we release a new version of tmgmt.
The test will consist on open the translator config form check the default mapping, add the auth keys, ajax will refresh with the server values, to pass the test it must show the previous value instead of the empty value '-'.
Comment #12
berdirThanks committed.