After translating my site from english to german I realized that all users besides the god-user could not access the recipe nodes. After a bit of research I figured out hat the problem was in the recipe_perm function in the recipe module. It fills the permissions array with the translated values of the permissions. But as this is not done in the recipe_access function no user will have access to this module.
To fix this problem I'd recommend to modify the recipe_perm function from:
function recipe_perm() {
return array(t('create recipes'), t('edit own recipes'));
}
to
function recipe_perm() {
return array('create recipes', 'edit own recipes');
}
Comments
Comment #1
nancydruActually that is the proper way. Drupal will always show the admin menus in the user's selected language, without the developer having to do it. Translation of permissions should not be done. In D6, you don't even translate menu titles or descriptions.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.