Add Translation to Admin Panel

Add Translation to Admin Panel
This commit is contained in:
Catalin Novgorodschi
2026-07-26 07:58:41 +03:00
parent a23b9875a0
commit f1854c1559
97 changed files with 3938 additions and 1236 deletions
+5 -7
View File
@@ -41,28 +41,26 @@ $id = $_SESSION['id'];
<div class="gold-wrap">
<div class="gold-head">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" fill="#d4af37"/><path d="M12 7v10M9 10h6M9 14h6" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
<h2>Gold Management</h2>
<h2><?php echo ADM_GOLD_MANAGEMENT; ?></h2>
</div>
<div class="gold-card">
<div class="icon-big">
<svg viewBox="0 0 24 24"><path d="M12 2L9 8H3l5 4-2 6 6-4 6 4-2-6 5-4h-6z"/></svg>
</div>
<h3>Give Everyone Free Gold</h3>
<p>This gold will be added to ALL active players on the server.</p>
<h3><?php echo ADM_GIVE_EVERYONE_FREE_GOLD; ?></h3>
<p><?php echo ADM_THIS_GOLD_WILL_BE_ADDED_TO_ALL_ACTIVE_PLAYER; ?></p>
<form action="../GameEngine/Admin/Mods/gold.php" method="POST" class="gold-form">
<?php echo csrf_field(); ?>
<input type="hidden" name="admid" value="<?php echo $id; ?>">
<input type="number" name="gold" value="20" min="1" max="9999" required>
<button type="submit">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M5 12h14M12 5l7 7-7 7" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
Give Gold
</button>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M5 12h14M12 5l7 7-7 7" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg><?php echo ADM_GIVE_GOLD; ?></button>
</form>
</div>
<?php if(isset($_GET['g'])){ ?>
<div class="gold-success"> Gold has been successfully added to all players!</div>
<div class="gold-success"><?php echo ADM_GOLD_HAS_BEEN_SUCCESSFULLY_ADDED_TO_ALL_PLAY; ?></div>
<?php } ?>
</div>