Closed (fixed)
Project:
Translation templates for Drupal core
Version:
master
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2006 at 07:09 UTC
Updated:
16 Jan 2007 at 19:32 UTC
Because node_perm() uses a non-standard format (i.e. not just a plain array but also programmatically generated values), they are not included in the translation template.
Comments
Comment #1
gábor hojtsyWe cannot include programatically generated text in PO files, since these depend on user interaction. Do you have a suggested fix to identify misbehaving _perm hooks, and do not try to parse their contents?
Comment #2
kkaefer commentedextractor.php is already not parsing node_perm() because it's malformed. However, all the other permissions which are not programmatically generated, are not parsed as well.
Comment #3
gábor hojtsyOk, comitted a not-too-nice solution to CVS. Now we have a special case for node_perm. Crafting a special regexp for node_perm would be as unique as listing the permission names themselfs, so now the node.module strings will have the static permission names listed at least.
Comment #4
(not verified) commented