Skip to content

Commit 98da486

Browse files
committed
l10n
1 parent 7702d5b commit 98da486

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,21 +163,21 @@ function gtag() {
163163
<div class="ex-card">
164164
<div class="icon-container"><md-icon>&#xef58;</md-icon></div>
165165
<div class="ex-card-column">
166-
<h2>Found a mistake or want to suggest a new limit?</h2>
166+
<h2><?= __("suggest_offer", UCOMP) ?></h2>
167167

168168
</div>
169169
<div class="button-holder">
170-
<a class="trailing-button" href="/editor.html?act=suggest" target="_blank">Send a suggestion
170+
<a class="trailing-button" href="/editor.html?act=suggest" target="_blank"><?= __("suggest_button_label", UCOMP) ?>
171171
</a>
172172
</div>
173173
</div>
174174
<div class="ex-card">
175175
<div class="icon-container"><md-icon>&#xe8e2;</md-icon></div>
176176
<div class="ex-card-column">
177-
<h2>Help translating this page in your language!</h2>
177+
<h2><?= __("translate_offer", UCOMP) ?></h2>
178178

179179
</div>
180-
<div class="button-holder"><a class="trailing-button" href="https://crowdin.com/project/telegram-limits" target="_blank">I want to translate</a></div>
180+
<div class="button-holder"><a class="trailing-button" href="https://crowdin.com/project/telegram-limits" target="_blank"><?= __("translate_button_label", UCOMP) ?></a></div>
181181
</div>
182182
</article>
183183
</div>
@@ -187,7 +187,7 @@ function gtag() {
187187
<div class="content">
188188
<label class="searchbox" for="search">
189189
<md-icon aria-hidden="true">&#xe8b6;</md-icon>
190-
<input type="search" id="search" placeholder="<?= __("search", UCOMP) ?>. Last Update: <?= date("Y-m-d", filemtime($data_file_path)); ?>" autocomplete="off" value="<?= htmlentities($_GET["q"] ?? "") ?>">
190+
<input type="search" id="search" placeholder="<?= __("search_last_update", UCOMP, ['search' => __("search", UCOMP), 'last_update' => __("last_update", UCOMP, ['date' => date("Y-m-d", filemtime($data_file_path))])]) ?>" autocomplete="off" value="<?= htmlentities($_GET["q"] ?? "") ?>">
191191
</label>
192192

193193
<script>

localization/en/lang.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@
1111
"homepage": "Homepage",
1212
"language": "Language",
1313
"search": "Search",
14-
"for_premium_users": "for Telegram Premium users"
14+
"last_update": "Last Update: {%date%}",
15+
"search_last_update": "{%search}. {%last_update%}",
16+
"for_premium_users": "for Telegram Premium users",
17+
"suggest_offer": "Found a mistake or want to suggest a new limit?",
18+
"suggest_button_label": "Send a suggestion",
19+
"translate_offer": "Help translating this page in your language!",
20+
"translate_button_label": "I want to translate"
1521
}

0 commit comments

Comments
 (0)