Ticket #21: fivestari18nfixes.patch

File fivestari18nfixes.patch, 1.1 kB (added by hailu, 6 days ago)

Fixes to the i18n issues identified

  • fivestar.module

    old new  
    199199    for ($n = 0; $n <= 10; $n++) { 
    200200      if ($star_count == 5 && $n <= 5) { 
    201201        // If the default 5 stars are chosen, then use these five default label values. 
    202         $default_labels = array('Cancel rating', 'Poor', 'Okay', 'Good', 'Great', 'Awesome'); 
     202        $default_labels = array(t('Cancel rating'), t('Poor'), t('Okay'), t('Good'), t('Great'), t('Awesome')); 
    203203      } 
    204204      elseif ($n == 0) { 
    205         $default_labels[$n] = 'Cancel rating'
     205        $default_labels[$n] = t('Cancel rating')
    206206      } 
    207207      else { 
    208         $default_labels[$n] = 'Give it @star/@count'
     208        $default_labels[$n] = t('Give it @star/@count')
    209209      } 
    210210      $form['fivestar']['labels']['fivestar_label_'. $n] = array( 
    211211        '#type' => 'textfield',