Hi,
this is a simply language-selection tool i have written for my site, because all other language mods didnt work for example in the header and needed much more adjustments!
FEATURES:- Easy adjustments
- Add any language u want
- Put it in your template where u want
- No limitations
USING:1. ADD the languages u need in your language folder as usual
2. Put the following code in your template files, where u want it
3. Edit the path to your 4images gallery. (my is "/photos/")
4. Nothing, thats it!!
<?php
// Je nach Dateiendung füge Sprachvariabel mit Fragezeichen oder Undzeichen an die Dateiendung
if ($_SERVER["REQUEST_URI"] == "/photos/")
{
$zeichen = "index.php?";
}
else
{
$zeichen = "&";
}
?>
<a href="<?php echo $_SERVER["REQUEST_URI"]; echo "$zeichen"; ?>l=deutsch">Deutsch</a>
<a href="<?php echo $_SERVER["REQUEST_URI"]; echo "$zeichen"; ?>l=english">English</a>
Feedback appreciated!