summaryrefslogtreecommitdiff
path: root/includes/system/species.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
committerMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
commit30303a3ad0d0f31d93c25f42bfd10d70e8277b72 (patch)
tree622964e7895c759232aff28230394aa5cc747be9 /includes/system/species.inc
parentf850a8a53efd719fef6c8784c5af7b89dd9a6a2f (diff)
downloadpluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.gz
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.bz2
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.zip
Update
Diffstat (limited to 'includes/system/species.inc')
-rw-r--r--includes/system/species.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/system/species.inc b/includes/system/species.inc
index fb1ba69..45a0178 100644
--- a/includes/system/species.inc
+++ b/includes/system/species.inc
@@ -1,4 +1,4 @@
-<?php global $system; global $systemCommonName; global $systemID; $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pages.json"), true); $title = $pages["s:species"]["name"] . " · " . $systemCommonName; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $travelling;
+<?php global $system; global $systemCommonName; global $lang; global $pages; global $systemID; $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pages.json"), true); $title = $pages["s:species"]["name"][$lang["_name"]] . " · " . $systemCommonName; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; global $travelling;
$members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/members.json"), true);
$members = scoreOrder($members, $systemID);
@@ -36,7 +36,7 @@ function species(array $members, string $id, string $name) { global $systemID; g
<br>
<div class="container" id="page-content">
- <h2><?= $systemCommonName ?> members by species</h2>
+ <h2><?= str_replace("%1", $systemCommonName, $lang["species_compare"]["title"]) ?></h2>
<?php
$earth = [];
@@ -59,12 +59,12 @@ function species(array $members, string $id, string $name) { global $systemID; g
?>
- <?php species($earth, "earth", "Earth ponies"); ?>
- <?php species($pegasus, "pegasus", "Pegasi"); ?>
- <?php species($unicorn, "unicorn", "Unicorns"); ?>
- <?php species($alicorn, "alicorn", "Alicorns"); ?>
- <?php species($batpony, "batpony", "Bat ponies"); ?>
- <?php species($crystal, "crystal", "Crystal ponies"); ?>
+ <?php species($earth, "earth", $lang["species"]["earth"][3]); ?>
+ <?php species($pegasus, "pegasus", $lang["species"]["pegasus"][3]); ?>
+ <?php species($unicorn, "unicorn", $lang["species"]["unicorn"][3]); ?>
+ <?php species($alicorn, "alicorn", $lang["species"]["alicorn"][3]); ?>
+ <?php species($batpony, "batpony", $lang["species"]["batpony"][3]); ?>
+ <?php species($crystal, "crystal", $lang["species"]["crystal"][3]); ?>
</div>
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.inc'; ?> \ No newline at end of file