Improve trophy awarded count
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 6 Aug 2017 10:51:24 +0000 (12:51 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 6 Aug 2017 10:51:24 +0000 (12:51 +0200)
See #2315

com.woltlab.wcf/templates/trophy.tpl
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 33c3a52059ad4374d24d37c51e5e4dd9e3349925..d5e33ebef0b05067e40750a8c2e4de9f1d733c1a 100644 (file)
                        <h1 class="contentTitle">{$trophy->getTitle()}</h1>
                        <ul class="inlineList contentHeaderMetaData">
                                {if !$trophy->getDescription()|empty}<li>{$trophy->getDescription()}</li>{/if}
-                               <li><span class="icon icon16 fa-users"></span> {@$items}</li>
+                               <li>
+                                       <span class="icon icon16 fa-users"></span>
+                                       <span>{lang}wcf.user.trophy.trophyAwarded{/lang}</span>
+                               </li>
                        </ul>
                </div>
        </header>
index f1cedb7301be1f59cd367a2981f4b48ce29eab63..ff46583d98d65912e4e5650a5b9d8aa9cb960574 100644 (file)
@@ -3701,6 +3701,7 @@ Die E-Mail-Adresse des neuen Benutzers lautet: {@$user->email}
                <item name="wcf.user.trophy.recentActivity.received"><![CDATA[Hat die Trophäe „<a href="{$userTrophy->getTrophy()->getLink()}">{$userTrophy->getTrophy()->getTitle()}</a>“ erhalten.]]></item>
                <item name="wcf.user.trophy.condition.excludedTrophies"><![CDATA[Ausgeschlossene Trophäen]]></item>
                <item name="wcf.user.trophy.condition.excludedTrophyCategories"><![CDATA[Ausgeschlossene Trophäen Kategorien]]></item>
+               <item name="wcf.user.trophy.trophyAwarded"><![CDATA[{#$items} mal vergeben]]></item>
        </category>
        
        <category name="wcf.acp.trophy">
index cb488665035c704172820086e0bf6de848e4a356..73414470cfc82d0e1e0dc6b2570091da27850291 100644 (file)
@@ -3692,6 +3692,7 @@ Open the link below to access the user profile:
                <item name="wcf.user.trophy.recentActivity.received"><![CDATA[Has received the trophy “<a href="{$userTrophy->getTrophy()->getLink()}">{$userTrophy->getTrophy()->getTitle()}</a>”.]]></item>
                <item name="wcf.user.trophy.condition.excludedTrophies"><![CDATA[Excluded Trophies]]></item>
                <item name="wcf.user.trophy.condition.excludedTrophyCategories"><![CDATA[Excluded Trophy Categories]]></item>
+               <item name="wcf.user.trophy.trophyAwarded"><![CDATA[{if $items == 1}Awarded once{else}{/if}Awarded {#$items} times]]></item>
        </category>
        
        <category name="wcf.acp.trophy">