diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-06-06 16:28:40 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-06-06 16:28:40 +0000 |
| commit | 668a3993ae28c12d99b60e281a192d0b8826fa29 (patch) | |
| tree | c7414ae0259bbd6894fcbe2b5f034b2b4c5b5d4b | |
| parent | c86d5b3d03b1fbb0fb9a7d9db74509798ea1e238 (diff) | |
| download | php-xmpp-invitation-668a3993ae28c12d99b60e281a192d0b8826fa29.tar.gz | |
recommend text: Put OS name inline.
| -rw-r--r-- | index.php | 7 | ||||
| -rw-r--r-- | lang/en.json | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/index.php b/index.php index 4a126df..b8a2b5b 100644 --- a/index.php +++ b/index.php @@ -23,7 +23,10 @@ $name = ucfirst(explode("@", substr($uri, 5))[0]); function t($template) { GLOBAL $name; - return str_replace('{{name}}', $name, $template); + GLOBAL $os; + $template = str_replace('{{name}}', $name, $template); + $template = str_replace('{{os}}', $os, $template); + return $template; } ?> <!DOCTYPE html> @@ -52,7 +55,7 @@ <!--div class="qrcode" id="qrcode">TODO</div--> <p class="lead text-center" id="clients"><?= $lang->clients; ?></p> - <p class="lead text-center" id="recommend"><?= $lang->recommend; ?></p> + <p class="lead text-center" id="recommend"><?= t($lang->recommend); ?></p> <p class="lead img-center text-center" id="client_list"> <?php diff --git a/lang/en.json b/lang/en.json index 02e18b2..34ba4f8 100644 --- a/lang/en.json +++ b/lang/en.json @@ -12,7 +12,7 @@ "":"" }, "clients": "You need to install an XMPP client to access the XMPP network.", - "recommend": "Here are the most commonly used clients for your platform:", + "recommend": "Here are the most commonly used clients for {{os}}:", "checkfulllist": "See the <a href='https://xmpp.org/software/clients/'>full list</a> of XMPP clients for other platforms and devices.", "xmppis": "XMPP is a provider independent form of instant messaging. You can pick from many different clients and have a free choice of server operators to participate.", "":"" |
