mouseover text give it 5/5

Created on 19 January 2012, over 13 years ago
Updated 8 August 2023, over 1 year ago

I tried to change the text , i saw this post but it's for Drupal 5
any way to change it in Drupal 7

http://drupal.org/node/137193
http://drupal.org/node/182174

  $options = array('-' => t('Select rating'));
  for ($i = 1; $i <= $element['#stars']; $i++) {
    $this_value = ceil($i * 100/$element['#stars']);
    $options[$this_value] = t('Give it @star/@count', array('@star' => $i, '@count' => $element['#stars']));
  }

Thanks

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden wooody

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia
  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    The way to override strings like this in the Fivestar module is the same as with any other module in Drupal. You have several choices:

    1. hook_form_alter()
    2. String Overrides module (mainly for D7 and previous)
    3. Locale settings in settings.php. For example, to change the default "Give" string, you can do:
      $langcode = 'en';
      $settings['locale_custom_strings_' . $langcode] = [
        'Give @star/@count' => 'Rate it at @star/@count',
      ];
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024