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

Comments

wooody’s picture

Issue summary: View changes

nothing

tr’s picture

Version: 7.x-2.0-alpha1 » 8.x-1.x-dev
Assigned: wooody » Unassigned
Category: Feature request » Support request
Issue summary: View changes
tr’s picture

Status: Active » Fixed

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',
    ];

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.