Commit 0ac2f287 authored by Tino Goratsch's avatar Tino Goratsch

correctly handle the plural/singular versions of the ratings label

parent 44d3a6cd
......@@ -23,7 +23,11 @@
itemprop="aggregateRating"
itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">{$rating.average_rating|string_format:"%.2f"}</span> / 5
{if $rating.total_ratings > 1}
({lang t="share|total_x_ratings" args=['%ratings%' => $rating.total_ratings]})
{else}
({lang t="share|total_1_rating"})
{/if}
</div>
{else}
<div class="rating-summary">
......
......@@ -50,6 +50,7 @@
<item key="service_xing">Xing</item>
<item key="services">Dienste</item>
<item key="share">Social sharing</item>
<item key="total_1_rating"><![CDATA[insgesamt <span itemprop="reviewCount">1</span> Bewertung]]></item>
<item key="total_x_ratings"><![CDATA[insgesamt <span itemprop="reviewCount">%ratings%</span> Bewertungen]]></item>
<item key="type_in_valid_resource">Bitte geben Sie einen validen Pfad zu einer ACP3 internen Ressource an.</item>
<item key="uri">Pfad</item>
......
......@@ -50,6 +50,7 @@
<item key="service_xing">Xing</item>
<item key="services">Dienste</item>
<item key="share">Social sharing</item>
<item key="total_1_rating"><![CDATA[based on <span itemprop="reviewCount">1</span> rating]]></item>
<item key="total_x_ratings"><![CDATA[based on <span itemprop="reviewCount">%ratings%</span> ratings]]></item>
<item key="type_in_valid_resource">Please type in a valid path to an ACP3 internal resource.</item>
<item key="uri">Path</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment