Closed (won't fix)
Project:
Vote Up/Down
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2009 at 23:11 UTC
Updated:
21 Mar 2010 at 15:10 UTC
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
Comment #1
dtarc commentedString Overrides module worked for me, i set a replacement for "point" and "points".
Comment #2
skizzo commentedsee also http://drupal.org/node/339312
maybe all format_plural's in Vote Up/Down needs t() ?
Comment #3
fumbling commentedString 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.
Comment #4
dtarc commentedYou don't need to override "[n] points", just "points" and "point". The number and the label are displayed in different divs.
Comment #5
fumbling commentedThanks. 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.
Comment #6
dtarc commenteddrupal 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.
Comment #7
parrottvision commentedI 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.
Comment #8
fitzed commentedI agree with parrottvision, this should be incorporated into the module itself as an option under the "General" tab.
Comment #9
ingo86 commentedMoved under the new branch, 2.x.
No new features for 1.x branch.
Comment #10
totaldrupal commentedsubscribing
Comment #11
marvil07 commentedI 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
Comment #12
kevinquillen commentedWhy 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'.
Comment #13
marvil07 commentedCopying 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.
Comment #14
kevinquillen commentedI changed it in the code.
Comment #15
CarbonPig commentedChanged 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
Comment #16
marvil07 commentedSince 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.