Spolszczenie GD Star Rating

Jak spolszczyć „—” na „”?

Otwieramy plik gd-star-rating/gdragon/gd_google.php

szukamy linii 146 („gdsr_snippet_template_stars_rating”)

            $tpl = apply_filters(„gdsr_snippet_template_stars_rating”, $tpl, $this->snippet_type);

$votes = $options[„votes”];
$hidden = $options[„hidden”] ? ‚ style=”display: none !important;”‚ : ”;

$tpl = str_replace(„%HIDDEN%”, $hidden, $tpl);
$tpl = str_replace(„%WORD_BASEDON%”, __(„based on”, „gd-star-rating”), $tpl);
$tpl = str_replace(„%WORD_OUTOF%”, __(„out of”, „gd-star-rating”), $tpl);
$tpl = str_replace(„%WORD_VOTES%”, _n(„rating”, „ratings”, $votes, „gd-star-rating”), $tpl);
$tpl = str_replace(„%TITLE%”, $options[„title”], $tpl);
$tpl = str_replace(„%RATING%”, $options[„rating”], $tpl);
$tpl = str_replace(„%MAX_RATING%”, $options[„max_rating”], $tpl);
$tpl = str_replace(„%VOTES%”, $votes, $tpl);
$tpl = str_replace(„%REVIEW_EXCERPT%”, $options[„review_excerpt”], $tpl);

return $tpl;
}

zmieniamy na

            $tpl = apply_filters(„gdsr_snippet_template_stars_rating”, $tpl, $this->snippet_type);

$votes = $options[„votes”];
$hidden = $options[„hidden”] ? ‚ style=”display: none !important;”‚ : ”;

$tpl = str_replace(„%HIDDEN%”, $hidden, $tpl);
$tpl = str_replace(„%WORD_BASEDON%”, __(„, ocen:”, „gd-star-rating”), $tpl);
$tpl = str_replace(„%WORD_OUTOF%”, __(„/”, „gd-star-rating”), $tpl);
$tpl = str_replace(„%WORD_VOTES%”, _n(„”, „”, $votes, „gd-star-rating”), $tpl);
$tpl = str_replace(„%TITLE%”, $options[„title”], $tpl);
$tpl = str_replace(„%RATING%”, $options[„rating”], $tpl);
$tpl = str_replace(„%MAX_RATING%”, $options[„max_rating”], $tpl);
$tpl = str_replace(„%VOTES%”, $votes, $tpl);
$tpl = str_replace(„%REVIEW_EXCERPT%”, $options[„review_excerpt”], $tpl);

return $tpl;
}