I want to do in French (By default) & seconadry option is English.
I have a two image flag on login.php page. It should ALWAYS visible in the site. I created two files lang_FR.php and lang_EN.php. How one set French as default language and translate it according user choice ? Any help by correction or example would be great.
//login.php
<div id="imageflag">
<a href="?lang=fr">
<input type="hidden" name="lang" value="lang_fr" />
<img src="images/france.png" alt="FR" width="16" height="16">
</a>
<a href="?lang=en">
<input type="hidden" name="lang" value="lang_en" />
<img src="images/english.png" alt="EN" width="16" height="16">
</a>
</div>
<?php echo WELCOME; ?></p>
//lang_EN.php
<?php
define('WELCOME','Welcome to your business Expenses software');
define('LOGIN','Login');
define('ENTER_EMAIL','Enter your Email');
define('ENTER_PASS','Enter your Password');
?>
//lang_FR.php
<?php
define('WELCOME','Bienvenue a votre entreprise des depenses de logiciels');
define('LOGIN','Login');
define('ENTER_EMAIL','Entrez votre email');
define('ENTER_PASS','Entrez votre mot de passe');
?>