summaryrefslogtreecommitdiff
path: root/src/application/views/form_newtopic.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-16 11:31:53 +0200
committerJonas Kohl2024-09-16 11:31:53 +0200
commit38f03c375eafdb6b95190729479c6fa0d721b400 (patch)
tree637616799ed5e20c72d8d7be7a78e72a11826cfa /src/application/views/form_newtopic.php
parentcb9b87997993702131ca24d4d0e1fd45ef64805c (diff)
More i18n
Diffstat (limited to 'src/application/views/form_newtopic.php')
-rw-r--r--src/application/views/form_newtopic.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/application/views/form_newtopic.php b/src/application/views/form_newtopic.php
index 2e58268..a40f3a6 100644
--- a/src/application/views/form_newtopic.php
+++ b/src/application/views/form_newtopic.php
@@ -10,7 +10,7 @@ RequestUtils::clearLastForm();
?>
<div class="page-header margin-top-0">
- <h1>New topic</h1>
+ <h1><?= __("New topic") ?></h1>
</div>
<?php
if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
@@ -19,16 +19,19 @@ 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">Topic title:</label>
+ <label for="i_message"><?= __("Topic title:") ?></label>
<input type="text" class="form-control" id="i_title" name="title" value="<?= htmlentities($lastForm["title"] ?? "") ?>" required autofocus>
</div>
<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"><?= htmlentities($lastForm["message"] ?? "") ?></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">Create topic</button>
+<button type="submit" class="btn btn-success"><?= __("Create topic") ?></button>
</form>