Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sp09 on
How do I change the out put of the "Average" text in the fivestar module? I want to change it to Rating. It appears like this Average: 1 (1 vote)
Comments
~
You can do it in several ways. The easiest is either to use the string overrides module or place some string overrides in your settings.php
Around line 416 in your settings.php file, modify the following
I did it but nothing changed
I did it but nothing changed
Did you flush drupal, caches?
Did you flush drupal, caches?
Yep I cleared the cache.
Yep I cleared the cache. Here's the code
* Remove the leading hash signs to enable.
*/
$conf['locale_custom_strings_en'][''] = array(
'forum' => 'Discussion board',
'@count min' => '@count minutes',
'Average' => 'Rating',
);
/**