summaryrefslogtreecommitdiff
path: root/src/application/views/form_addpost.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/views/form_addpost.php')
-rw-r--r--src/application/views/form_addpost.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/application/views/form_addpost.php b/src/application/views/form_addpost.php
index 88648b4..72dafe5 100644
--- a/src/application/views/form_addpost.php
+++ b/src/application/views/form_addpost.php
@@ -8,7 +8,7 @@ if ($lastFormUri !== $_SERVER["REQUEST_URI"]) $lastForm = [];
RequestUtils::clearLastForm();
?>
-<h3 id="form">Reply to this topic</h3>
+<h3 id="form"><?= __("Reply to this topic") ?></h3>
<?php
if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
_view("alert_error", ["message" => $_formError]);
@@ -16,12 +16,15 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
?>
<form action="<?= htmlentities($_SERVER["REQUEST_URI"]) ?>#form" method="post" enctype="multipart/form-data">
<div class="form-group">
- <label for="i_message">Message:</label>
+ <label for="i_message"><?= __("Message:") ?></label>
<textarea class="form-control" id="i_message" name="message" required rows="12" cols="60" style="resize:vertical;max-height:499px"></textarea>
</div>
<div class="form-group">
- <label for="i_files">Attachments: <small>(max. <?= htmlentities(MAX_ATTACHMENT_COUNT) ?> files, max. <?= htmlentities(MAX_ATTACHMENT_SIZE >> 20) ?> MiB each)</small></label>
+ <label for="i_files"><?= __("Attachments: <small>(max. %max_attachment_count% files, max. %max_attachment_size% MiB each)</small>", [
+ "max_attachment_count" => strval(MAX_ATTACHMENT_COUNT),
+ "max_attachment_size" => strval(MAX_ATTACHMENT_SIZE >> 20)
+ ]) ?></label>
<input type="file" name="files[]" id="i_files" multiple accept="*/*">
</div>
-<button type="submit" class="btn btn-success">Post reply</button>
+<button type="submit" class="btn btn-success"><?= __("Post reply") ?></button>
</form>