Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
Translator: Local
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
22 Jan 2013 at 11:20 UTC
Updated:
26 Jul 2013 at 17:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
blueminds commentedSetting to major priority as without this tmgmt_server does not work well with tmgmt_local
Comment #2
blueminds commentedProposed solutions:
- The translator plugin should be able to implement method getAvailableLanguagePairs()
- The default implementation of getAvailableLanguagePairs() will just collect target languages for each source language.
- This can be then used by tmgmt_server to expose language capabilities
Comment #3
blueminds commentedComment #4
blueminds commentedAttached patch that deals with language pairs provided by a translator. This can then be used i.e. by tmgmt_server to collect language pairs from all installed translators.
This does not touch the capabilities logic around user skills in the tmgmt_local. I think this can be done in the follow up after we cleanup tmgmt_local from tmgmt_server stuff.
Comment #5
blueminds commentedComment #6
berdirLooks nice, just needs some documentation and the default implementation that we discussed :)
Comment #7
blueminds commentedAdded documentation
Comment #8
blueminds commentedso the third try ;)
Comment #9
berdirThe comment needs to be updated.
No idea why it is :: right now, but let's use a single : :)
language_pairs:$name would make more sense as the cid name I think.
Maybe add a comment above this that says something like "Slow default implementation, translator implementations are encouraged to provide a more efficient implementation if possible.
Looks nice otherwise.
Comment #10
blueminds commentedcomments implemented
Comment #11
berdirCommited.
As that's only part of what this issue is about, setting back to active for now, might also open a new issue but doesn't really matter.
Comment #12
blueminds commentedProvided suggested API for translator capabilities.
To optimise capability query I dropped the capabilities hook. I did not see any practical use for it at this moment and the complexity it introduced prevent from optimising the query.
So, what do you think?
Comment #13
berdirThis looks a lot better already, yes. The page no longer takes forever to load when you have 10k+ users ;)
Did some documentation improvements and removed a weird change at the beginning of the patch. This should be good to go.
Comment #15
berdirHah, so my only functional change killed it ;)
I prefer to enforce types, so I changed the calls to an array.
Comment #17
berdirThis should be green, replaced too much.
Comment #18
berdirCommitted and pushed.