Closed (won't fix)
Project:
Vote Up/Down
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2007 at 01:15 UTC
Updated:
11 Jun 2010 at 09:04 UTC
I've tried to change the text with localization but can't find the text. Is there a way to change the texts "points" / "point" to something else?
Comments
Comment #1
Christopher Herberte commentedOk, using the theme_vote_up_down_points_alt() override fixed this in my case. To my template.php file i copied and pasted the function and renamed it to suit
...and changed the 2nd last line t('points') to t('gumtrees')
I'm guessing there i could do all sorts of cool theming too, but that's all i needed. hope this helps someone.
Comment #2
Christopher Herberte commentedAlso, this can be changed by enabling the Locale module and changing the Localization (points) to "gumtrees", this was what i was originally looking for but did not look hard enough.
Comment #3
chadchandler commentedGreat post and idea! Branding is everything!
I was looking for this as well, what would be better? Adding the code or using localization?
Comment #4
Christopher Herberte commentedIf you only need to change this text and you already have the localization module installed I would go that route. The template.php way is going to give you more flexibility in theming the widget for sure and is my recommendation. I would much prefer a few lines of code to override the function than enabling the localization.module just for this. My 2c.
Comment #5
manerhabe commentedThe above code wouldn't work for me, so I followed the directions for changing locales at http://drupal.org/node/24593 (remember to visit some changes to add the default strings to the translation). Changing the string "@count points" to "@count whatever" fixed it for me.
Comment #6
chadchandler commentedI definitely would not enable the locale module just to change the widget text, instead add this function to your template.php file. In this case, I'm changing the "points" to "melons". This example is using Garland.
Don't forget to
Comment #7
manerhabe commentedThanks Prodigy. I had to change some other text in various other models too. I'm curious why you would not use the locale module to do this though.
Comment #8
marvil07 commentedPlease take a look to the update on the project page, now
5.xis not-really-maintained.If you think your question is still applicably to the last recommended version(
6.x-2.x) please move the version accordingly and reopen it.