Ticket #21: fivestari18nfixes.patch
File fivestari18nfixes.patch, 1.1 kB (added by hailu, 6 days ago) |
---|
-
fivestar.module
old new 199 199 for ($n = 0; $n <= 10; $n++) { 200 200 if ($star_count == 5 && $n <= 5) { 201 201 // 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')); 203 203 } 204 204 elseif ($n == 0) { 205 $default_labels[$n] = 'Cancel rating';205 $default_labels[$n] = t('Cancel rating'); 206 206 } 207 207 else { 208 $default_labels[$n] = 'Give it @star/@count';208 $default_labels[$n] = t('Give it @star/@count'); 209 209 } 210 210 $form['fivestar']['labels']['fivestar_label_'. $n] = array( 211 211 '#type' => 'textfield',