How to rename "points"
fumbling - February 13, 2009 - 23:11
| Project: | Vote Up/Down |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | lut4rp |
| Status: | active |
Jump to:
Description
I've replaced the "up/down" icons with thumbs up/down, and would like to replace "points" with "thumbs" accordingly. For example, where it reads "0 points" by default it would read "0 thumbs." String overrides wouldn't work so I fished around in the .module file and found a few places where I could make the label change, but it only worked for certain instances (e.g 1 point become 1 thumb, but couldn't change -1 point into 1 thumb for some reason). Any advice on how to make sure I'm changing all the labels in the .module file?

#1
String Overrides module worked for me, i set a replacement for "point" and "points".
#2
see also http://drupal.org/node/339312
maybe all format_plural's in Vote Up/Down needs t() ?
#3
String overrides didn't work for me, at least not on "[n] points" label that attaches itself to each comment. Any other thoughts? ("i'm not sure I follow the other reply below, but I'm not much a php guy yet). Thanks again for any help.
#4
You don't need to override "[n] points", just "points" and "point". The number and the label are displayed in different divs.
#5
Thanks. Yeah, I was just just the "[n]" to point out that I'm trying to override the place where it displays the number of points beside a posts, but I don't actually enter "[n]" into the string overrides field. Neither "point" or "points" string overrides works for that instance for some reason for me.
#6
drupal 6.9
Vote Up/Down 6.x-1.x-dev (2009-Feb-28)
String Overrides 6.x-1.7
I'm able to replace "point" and "points" with String Overrides. I haven't made any customizations that would change anything.
#7
I think in the latest dev for vote up/down point and points is no longer printed in a t() meaning it won't work to override it with String Overrides. I might be wrong but I can't see it and it doesn't work for me.
It should be built into the module to overide the description like userpoints module does, IMO.
#8
I agree with parrottvision, this should be incorporated into the module itself as an option under the "General" tab.
#9
Moved under the new branch, 2.x.
No new features for 1.x branch.
#10
subscribing