Language-specific translation permissions

lishevita's picture
public
lishevita - Sun, 2008-05-18 10:49

I'm using Drupal 6 to create a translation site. The translations getting done on the site are of content, not the Drupal interface itself, but the issues I'm facing are probably the same as you would deal with when planning the I18n Server, which is why I'm asking about this here...

I want to give each translator access only to his/her language(s) for translation. I can do this by creating perms for each language:

  foreach (language_list() as $language){
    $perms[] = 'translate '.$language->name;
  }

and then creating user groups for each language. However, this seems instinctively like an inefficient method. Problem is, I can't think of a better solution.

Have any of you dealt with this problem already? Do you have any better ideas for assigning translators to specific languages?

Thanks in advance for your help!

  • Lisha

I think maybe...

netgenius's picture
netgenius - Fri, 2008-06-20 23:29

There's a module which allows you to restrict access by url path. As I remember its called simply Path Access. So, you could maybe restrict access based on the language prefix in the path. I'd guess it's not real "security" you need (there would probably be ways to get around this restriction) but just some reasonable administrative control, so maybe worth a look.


Path Access is not working

henrijs - Tue, 2008-09-30 01:08

Path Access ignores url part before "normal" root path begins. F. ex. mysite.com/en/node/5 with rule

allow only node/5 works,
allow only node/* works,

allow only en/* does not work,
allow only en/node/* does not work.

Its like language part of url is out of reach for that module. Is that just me?