Closed (works as designed)
Project:
Translation template extractor
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2007 at 17:24 UTC
Updated:
15 Nov 2007 at 15:11 UTC
Comments
Comment #1
gábor hojtsyThe idea is that you either reuse a permission from core, which is already translated, or you use one of your defined permissions which is already picked up from the perm hook. If this is not good for you, please reopen.
Comment #2
nancydruApparently I didn't explain this well enough, so let me try to be a bit more precise.
Here's part of my code; I've shown the line numbers here for reference.
The "pot" file contains:
However, lines 76 and 84 that use these permissions are not listed in the "pot" file.
Would this not result in the menu items blocking users if the permissions in hook_perm are translated and the menu items are not? Is it suggested that all uses of access permissions be enclosed in "t()"? I have never seen another module that does this, although it would seem nice.
Comment #3
gábor hojtsyPermissions are not translated *when used* with user_access(). They are only translated when displayed on the permissions configuration form, so the administrator understands the different permissions. Otherwise Drupal uses the original untranslated permissions internally. They are only translated when displayed.
Comment #4
nancydruThank you. That completely clears up my worry.