do not show amount of earned XPs for solved Quests if amount is zero (Issue #149)

This commit is contained in:
coderkun 2014-04-25 13:24:26 +02:00
commit 9daf115343
3 changed files with 10 additions and 6 deletions

View file

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: The Legend of Z\n"
"POT-Creation-Date: 2014-04-25 02:24+0100\n"
"PO-Revision-Date: 2014-04-25 02:26+0100\n"
"POT-Creation-Date: 2014-04-25 13:22+0100\n"
"PO-Revision-Date: 2014-04-25 13:23+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de_DE\n"
@ -186,6 +186,7 @@ msgstr "Spiele weiter, um diesen geheimen Erfolg freizuschalten"
#: views/html/charactergroups/groupsgroup.tpl:8
#: views/html/charactergroups/index.tpl:9
#: views/html/charactergroups/managegroup.tpl:8
#: views/html/charactergroupsquests/quest.tpl:8
#: views/html/characters/character.tpl:85 views/html/seminarymenu/index.tpl:3
msgid "Character Groups"
msgstr "Gruppen"
@ -216,7 +217,6 @@ msgstr "Charaktere"
#: views/html/charactergroups/group.tpl:45
#: views/html/charactergroups/groupsgroup.tpl:20
#: views/html/charactergroupsquests/quest.tpl:9
#, php-format
msgid "%s-Quests"
msgstr "%squests"
@ -507,10 +507,14 @@ msgstr "Filter zurücksetzen"
msgid "Prolog"
msgstr "Prolog"
#: views/html/quests/quest.tpl:46
msgid "Quest completed."
msgstr "Quest abgeschlossen."
#: views/html/quests/quest.tpl:46
#, php-format
msgid "Quest completed. You have earned %d XPs."
msgstr "Quest abgeschlossen. Du hast %d XP erhalten."
msgid "You have earned %d XPs."
msgstr "Du hast %d XPs erhalten."
#: views/html/quests/quest.tpl:62
msgid "Task already successfully solved"

View file

@ -43,7 +43,7 @@
<?php if($queststatus == 'solved') : ?>
<div class="success">
<p class="fwb"><i class="fa fa-check-circle fa-fw"></i><?=_('solved')?></p>
<p><small><?=sprintf(_('Quest completed. You have earned %d XPs.'), $quest['xps'])?></small></p>
<p><small><?=_('Quest completed.')?> <?php if($quest['xps'] > 0): ?><?=sprintf(_('You have earned %d XPs.'), $quest['xps'])?><?php endif ?></small></p>
</div>
<?php elseif($queststatus == 'unsolved') : ?>
<div class="error">