diff options
Diffstat (limited to 'src/application')
| -rw-r--r-- | src/application/messages/de.msg | 21 | ||||
| -rw-r--r-- | src/application/views/form_delete_post_confirm.php | 12 | ||||
| -rw-r--r-- | src/application/views/form_delete_topic_confirm.php | 10 | 
3 files changed, 31 insertions, 12 deletions
| diff --git a/src/application/messages/de.msg b/src/application/messages/de.msg index a7f401d..c77a569 100644 --- a/src/application/messages/de.msg +++ b/src/application/messages/de.msg @@ -287,3 +287,24 @@ metadata({  : "Created this topic"  = "Hat dieses Thema erstellt" + +: "Do you want to delete this topic?" += "Möchten Sie dieses Thema löschen?" + +: "Are you sure you want to delete the topic <em>%topic%</em> including <strong>all posts and attachments</strong>?" += "Sind Sie sich sicher, dass Sie das Thema <em>%topic%</em> und <strong>alle zugehörigen Beiträge und Anhänge</strong> löschen wollen?" + +: "Keep topic" += "Thema beibehalten" + +: "Delete topic & posts" += "Thema und Beiträge löschen" + +: "Do you want to delete this post?" += "Möchten Sie diesen Beitrag löschen?" + +: "Are you sure you want to delete the following post:" += "Sind Sie sich sicher, dass Sie folgenden Beitrag löschen möchten:" + +: "Keep post" += "Beitrag beibehalten" diff --git a/src/application/views/form_delete_post_confirm.php b/src/application/views/form_delete_post_confirm.php index 2dc417d..e127235 100644 --- a/src/application/views/form_delete_post_confirm.php +++ b/src/application/views/form_delete_post_confirm.php @@ -1,13 +1,9 @@  <div class="panel panel-danger">      <div class="panel-heading"> -        <?php if ($postAuthor->id === $GLOBALS["currentUser"]->id): ?> -            <h3 class="panel-title">Do you want to delete your post?</h3> -        <?php else: ?> -            <h3 class="panel-title">Do you want to delete <?= htmlentities($postAuthor->displayName) ?>'s post?</h3> -        <?php endif; ?> +        <h3 class="panel-title"><?= __("Do you want to delete this post?") ?></h3>      </div>      <div class="panel-body"> -        Are you sure you want to delete the following post:<br> +        <?= __("Are you sure you want to delete the following post:") ?><br>          <?php _view("view_post", [                  ...$___PARAMS,                  "hide_actions" => true @@ -18,12 +14,12 @@              <form action=".#post-<?= htmlentities(urlencode($post->id)) ?>" method="get" class="seamless-inline">                  <input type="hidden" name="_action" value="viewtopic">                  <input type="hidden" name="topic" value="<?= htmlentities($post->topicId) ?>"> -                <button class="btn btn-default">Keep my post</button> +                <button class="btn btn-default"><?= __("Keep post") ?></button>              </form>              <form action="?_action=deletepost" method="post" class="seamless-inline">                  <input type="hidden" name="post" value="<?= htmlentities($post->id) ?>">                  <input type="hidden" name="confirm" value="<?= htmlentities(base64_encode(hash("sha256", "confirm" . $post->id, true))); ?>"> -                <button class="btn btn-danger">Delete my post</button> +                <button class="btn btn-danger"><?= __("Delete post") ?></button>              </form>          </div>      </div> diff --git a/src/application/views/form_delete_topic_confirm.php b/src/application/views/form_delete_topic_confirm.php index d38ffaa..4f9deec 100644 --- a/src/application/views/form_delete_topic_confirm.php +++ b/src/application/views/form_delete_topic_confirm.php @@ -1,21 +1,23 @@  <div class="panel panel-danger">      <div class="panel-heading"> -        <h3 class="panel-title">Do you want to delete this topic?</h3> +        <h3 class="panel-title"><?= __("Do you want to delete this topic?") ?></h3>      </div>      <div class="panel-body"> -        Are you sure you want to delete the topic <strong><em><?= htmlentities($topic->title) ?></em></strong> <strong>including all posts and attachments</strong>?<br> +        <?= __("Are you sure you want to delete the topic <em>%topic%</em> including <strong>all posts and attachments</strong>?", [ +            "topic" => htmlentities($topic->title), +        ]) ?>      </div>      <div class="panel-footer">          <div class="text-right">              <form action="." method="get" class="seamless-inline">                  <input type="hidden" name="_action" value="viewtopic">                  <input type="hidden" name="topic" value="<?= htmlentities($topic->id) ?>"> -                <button class="btn btn-default">Keep topic</button> +                <button class="btn btn-default"><?= __("Keep topic") ?></button>              </form>              <form action="?_action=deletetopic" method="post" class="seamless-inline">                  <input type="hidden" name="topic" value="<?= htmlentities($topic->id) ?>">                  <input type="hidden" name="confirm" value="<?= htmlentities(base64_encode(hash("sha256", "confirm" . $topic->id, true))); ?>"> -                <button class="btn btn-danger">Delete topic & posts</button> +                <button class="btn btn-danger"><?= __("Delete topic & posts") ?></button>              </form>          </div>      </div> |