Posted by fumbling on February 13, 2009 at 11:11pm
Jump to:
| Project: | Vote Up/Down |
| Version: | 6.x-1.0-beta6 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
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?
Comments
#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
#11
I saw the same request on og module any times, and it seems like a bad idea to Moshe: #252836: Allow the ability to rename "groups" / assign labels to groups, so maybe here we also do not want to do it
#12
Why is it a bad idea? You should be able to change 'points' to whatever you'd like it to say, for example instead of '2 points' I want to say '2 people liked this'.
#13
Copying from t()(please see the full page also, I'm copying only the conclusion):
Another solution for this problem can be context in translation, but sadly it's included in D7 only.
#14
I changed it in the code.
#15
Changed in code on lines 735 or 736 depending on what patched you've done like follows:
$variables['points_labelled'] = format_plural($vote_result, '1 poinasdft', '@count poiasdfnts');I just added a bunch of garbled asdkft type text to show where to change.
http://carbonpig.com
#16
Since I see not more arguments here, I mark this as won't fix.
Please feel free to reopen this if you have any solid arguments which are not against official documentation I mentioned.