Closed (fixed)
Project:
Abuse
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2007 at 15:14 UTC
Updated:
23 Feb 2008 at 21:15 UTC
Hi @all,
I just wanted to report a little problem with the abuse module: When you translate the "report abuse" permission constant, you are not able to report nodes anymore. I think this is because the appropriate t()-functions are missing.
Cheers
hctom
Comments
Comment #1
btmash commentedThanks for letting me know about this hctom; I'll issue a patch for it over the next couple of days.
Comment #2
btmash commentedI just realized...I don't know if I'm doing something wrong exactly. I've taken a look at how other modules handle user access and it doesn't seem like there should be any differences. Anyone else have thoughts on this?
Comment #3
archetwist commentedIt's pretty simple. In your module you have
and it should be just
Comment #4
archetwist commentedAlso, when you construct a link you do
l(t('Reason configuration settings'), 'admin/settings/abuse/reasons'), notl('Reason configuration settings', 'admin/settings/abuse/reasons')(notice the missingt('')).Comment #5
hctomJust a little follow up: You can of course use :
...notice the t()-functions, which are missing in your constant declaration code.
cheers
hctom
Comment #6
hctomafter thinking a bit about my previou spost, I'm not quite sure if the translation is really needed for module permissions, as I also checked some other modules where this is not done at all... So I think: just ignore my last post :-)
cheers
hctom
Comment #7
archetwist commentedYou could as well state there is no need to translate any other part of the admin UI...
Comment #8
mightyiam commentedNot being able to translate is one thing, and trying to translate and ending up with something broken is a bug.
Comment #9
archetwist commentedI guess nobody cares.