Internationalize public pages and add French translations (#345)

This commit is contained in:
WikiDroneFr
2026-07-25 16:38:18 +02:00
committed by GitHub
parent f469cd428a
commit cc34a8dd4c
12 changed files with 648 additions and 246 deletions
+22 -22
View File
@@ -34,7 +34,7 @@ AccessLogger::logRequest();
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo SERVER_NAME; ?> - Terms and Conditions</title>
<title><?php echo SERVER_NAME; ?> - <?php echo PUBLIC_TERMS_TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="img/tutorial/main.css"/>
<link rel="stylesheet" type="text/css" href="img/tutorial/flaggs.css"/>
@@ -88,7 +88,7 @@ AccessLogger::logRequest();
<div id="country_select"></div>
<div id="header">
<h1>Welcome to <?php echo SERVER_NAME; ?></h1>
<h1><?php echo PUBLIC_WELCOME_TO; ?> <?php echo SERVER_NAME; ?></h1>
</div>
<div id="navigation">
@@ -99,11 +99,11 @@ AccessLogger::logRequest();
<table class="menu">
<tr>
<td><a href="tutorial.php"><span>Tutorial</span></a></td>
<td><a href="anleitung.php"><span>Manual</span></a></td>
<td><a href="https://github.com/Shadowss/TravianZ/discussions" target="_blank"><span>Forum</span></a></td>
<td><a href="index.php?signup"><span>Register</span></a></td>
<td><a href="index.php?login"><span>Login</span></a></td>
<td><a href="tutorial.php"><span><?php echo TUTORIAL; ?></span></a></td>
<td><a href="anleitung.php"><span><?php echo PUBLIC_MANUAL; ?></span></a></td>
<td><a href="https://github.com/Shadowss/TravianZ/discussions" target="_blank"><span><?php echo FORUM; ?></span></a></td>
<td><a href="index.php?signup"><span><?php echo PUBLIC_REGISTER; ?></span></a></td>
<td><a href="index.php?login"><span><?php echo LOGIN; ?></span></a></td>
</tr>
</table>
@@ -113,22 +113,22 @@ AccessLogger::logRequest();
<div class="grit">
<h1>Terms and Conditions</h1>
<h1><?php echo PUBLIC_TERMS_TITLE; ?></h1>
<div class="terms-box">
<h3 class="pop popgreen bold">1. General Rules</h3>
<h3 class="pop popgreen bold"><?php echo PUBLIC_TERMS_GENERAL_RULES; ?></h3>
<p>
This is a fan-made open-source project called TravianZ by Shadow.
By using this game server you agree to follow all rules stated here.
<?php echo PUBLIC_TERMS_PROJECT; ?>
<?php echo PUBLIC_TERMS_ACCEPTANCE; ?>
</p>
<br/>
<h3 class="pop popgreen bold">2. Account Responsibility</h3>
<h3 class="pop popgreen bold"><?php echo PUBLIC_TERMS_ACCOUNT_RESPONSIBILITY; ?></h3>
<p>
You are fully responsible for your account.
Sharing accounts is allowed only if game rules permit it.
<?php echo PUBLIC_TERMS_ACCOUNT_FULL_RESPONSIBILITY; ?>
<?php echo PUBLIC_TERMS_ACCOUNT_SHARING; ?>
Any abuse or exploitation of bugs is strictly forbidden.
</p>
@@ -136,16 +136,16 @@ AccessLogger::logRequest();
<h3 class="pop popgreen bold">3. Fair Play</h3>
<p>
Cheating, botting, multi-account abuse or exploiting game mechanics
<?php echo PUBLIC_TERMS_CHEATING; ?>
is not allowed and may result in permanent ban.
</p>
<br/>
<h3 class="pop popgreen bold">4. Server Status</h3>
<h3 class="pop popgreen bold"><?php echo PUBLIC_TERMS_SERVER_STATUS; ?></h3>
<p>
This server is provided "as-is" without guarantees of uptime or stability.
The developer reserves the right to reset or modify the server at any time.
<?php echo PUBLIC_TERMS_AS_IS; ?>
<?php echo PUBLIC_TERMS_RESET; ?>
</p>
<br/>
@@ -153,7 +153,7 @@ AccessLogger::logRequest();
<h3 class="pop popgreen bold">5. Intellectual Property</h3>
<p>
Travian® is a registered trademark of Travian Games GmbH.
This project is not affiliated with Travian Games.
<?php echo PUBLIC_TERMS_NO_AFFILIATION; ?>
All custom code and modifications belong to TravianZ by Shadow.
</p>
@@ -161,7 +161,7 @@ AccessLogger::logRequest();
<h3 class="pop popgreen bold">6. Changes</h3>
<p>
These terms may be updated at any time without prior notice.
<?php echo PUBLIC_TERMS_UPDATES; ?>
</p>
</div>
@@ -182,10 +182,10 @@ AccessLogger::logRequest();
<div class="overlay_content">
<a href="index.php" class="closer">
<img class="dynamic_img" alt="Close" src="img/un/x.gif" />
<img class="dynamic_img" alt="<?php echo PUBLIC_CLOSE; ?>" src="img/un/x.gif" />
</a>
<h2>Terms</h2>
<h2><?php echo PUBLIC_TERMS_SHORT; ?></h2>
<div id="frame_box"></div>