Jump to content

Ideas Anyone?


DeathStar

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/58475-ideas-anyone/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.