Hello there.
I'm busy making an fully automated website for one of my clients.
Is there maybe a language packs anywhere on the internet, that is already in an array or something?
I'm making this website in mysql and php, but I really do not want to waste server load on mysql.
I have seen an array like this before:
if (isset ($_GET['lang']))
{
$langue = $_GET['lang'];
}
elseif (preg_match("/^fr/", $_SERVER['HTTP_ACCEPT_LANGUAGE']))
{
$langue = 'fr';
}
else
{
$langue = 'en';
}
$langues = array(
'en' => array(
'langue' => 'English',
'autre_langue' => 'version française',
'vers' => 'Version :',
),
'fr' => array(
'langue' => 'Français',
'autre_langue' => 'english version',
'vers' => 'Version de:',
),
'all' => array(
'Hello' => 'Hello',
)
);
I don't exactly know how that works but have an idea.(I never bothered with arrays before.)
Is the a language pack or would an array like that be the best, that I include in pages?
Help Appreciated.
Edit: I also use GD Image's for buttons.