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
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

dtarc - March 7, 2009 - 00:27

String Overrides module worked for me, i set a replacement for "point" and "points".

#2

skizzo - March 8, 2009 - 18:26

see also http://drupal.org/node/339312
maybe all format_plural's in Vote Up/Down needs t() ?

#3

fumbling - March 9, 2009 - 07:23

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

dtarc - March 10, 2009 - 22:01

You don't need to override "[n] points", just "points" and "point". The number and the label are displayed in different divs.

#5

fumbling - March 11, 2009 - 18:02

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

dtarc - March 11, 2009 - 20:37

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

parrottvision - May 5, 2009 - 06:57

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

fitzed - July 17, 2009 - 19:39

I agree with parrottvision, this should be incorporated into the module itself as an option under the "General" tab.

#9

ingo86 - August 7, 2009 - 07:42
Version:6.x-1.x-dev» 6.x-2.x-dev
Category:support request» feature request
Assigned to:Anonymous» lut4rp

Moved under the new branch, 2.x.
No new features for 1.x branch.

#10

totaldrupal - August 23, 2009 - 23:18

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.