SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  06 Jun 2009 16:17   Last Edited By: TimB
First off - great board - easy to skin and navigate.

Many Thanks!!

Question:

I would like to set this up so users can choose a language - in my case German or English.

Everything I've read so far suggests you can only set up one language?

Rock On Tim
Posted:  06 Jun 2009 18:40
yes, it is one language. You can mod the forum to support multiple languages.
Posted:  06 Jun 2009 21:04   Last Edited By: TimB
Not doing too well with the mod. Know there is a much eaiser way to do this, but I tried creating a new seo-board_options and renamed it seo-board_options_de, a new index titled index_de, added the de language pack, then put a "hard link" in the navigation area for index.de and index.

It works just fine on the first page, but just as soon as I leave the main page it reverts back to english.

Another board I've been playing with uses the following php code in the index - but I'm not sure how to apply it here?

// Language switch
// Leave as is or set $languagefile = "mylanguagefile.php";
if (isset($_GET['lang'])) {
    $_SESSION['lang'] = $_GET['lang'];
}
if (isset($_SESSION['lang'])) {
    $lang = $_SESSION['lang'];
} else {
    $lang = "en";
}
if ($lang == "fr" {
    $languagefile = "fr.php";
} else if ($lang == "ro" {
    $languagefile = "ro.php";
} else if ($lang == "se" {
    $languagefile = "se.php";
} else if ($lang == "nl" {
    $languagefile = "nl.php";
} else if ($lang == "ru" {
    $languagefile = "ru.php";
} else if ($lang == "de" {
    $languagefile = "de.php";
} else if ($lang == "zh-TW" {
    $languagefile = "zh-TW.php";
} else if ($lang == "es" {
    $languagefile = "es.php";
} else if ($lang == "pl" {
    $languagefile = "pl.php";
} else if ($lang == "tr" {
    $languagefile = "tr.php";
}  else if ($lang == "bs" {
    $languagefile = "bs.php";
}  else if ($lang == "id" {
    $languagefile = "id.php";
}  else if ($lang == "it" {
    $languagefile = "it.php";
}  else {
    $languagefile = "en.php";
}

any ideas out there?

Thanks

(ps only one member so far, but I'm trying to get it finished before the fussball season starts back up ) www.klauternsports.com