Needs work
Project:
Translation Access
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2010 at 13:12 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
toemaz commentedNot a bad idea.
On question 1:
I would say the user role indeed needs 'translate interface' access.
On question 2:
I don't see a reason to add this.
Could you clean up the patch a bit? It has some +- which are cluttering the patch.
Comment #2
nirbhasa commentedOk - cleaned up patch and patched it against latest dev.
Comment #3
toemaz commented@nirbhasa
The patch is not attached.
Comment #4
nirbhasa commentedoops...patch attached now
Comment #5
toemaz commentedCommitted to the dev #386280. Needs more review until some people have reported it to be ok.
Comment #6
toemaz commentedI further enhanced the patch since there were a couple of issues. Also the performance improved since it doesn't need to do redundant sql queries to get the translations (again). I'm testing it in production currently.
Comment #7
toemaz commentedWhat should with do with import/export/refresh? Implement a hook_menu_alter and introduce a new permission?
where i18n_access_translate_interface() will return true or false;
Any thoughts?
Comment #8
nirbhasa commentedTo be consistent with what we did for search, you could just use hook_form_alter to limit the select in 'import' and 'export' and the checkboxes in 'refresh' to a single language. That way you wouldnt need to introduce any permissions.
Comment #9
nirbhasa commented(deleted - i accidentally submitted same comment many times)
Comment #10
nirbhasa commented(deleted - i accidentally submitted same comment many times)
Comment #11
nirbhasa commented(deleted - i accidentally submitted same comment many times)
Comment #12
nirbhasa commentedTo be consistent with what we did for search, you could just use hook_form_alter to limit the select in 'import' and 'export' and the checkboxes in 'refresh' to a single language. That way you wouldnt need to introduce any permissions.
Comment #13
toemaz commentedI issued a beta1 release but I'll leave this feature request open since it's not finished yet. For the time being, I personally use a hook_menu_alter to hide the export/import/refresh pages. The ultimate solution is proposed in #12. Patches are welcome.