DeathStar Posted July 4, 2007 Share Posted July 4, 2007 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. Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 4, 2007 Share Posted July 4, 2007 Heh, I'd look into phpBB's lang source code. They have it in arrays, but you'll have to download additional language packs. Quote Link to comment Share on other sites More sharing options...
DeathStar Posted July 4, 2007 Author Share Posted July 4, 2007 Read my post again please. Where can I actually get the language packs? Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 4, 2007 Share Posted July 4, 2007 http://www.phpbb.com/ ... or simply search it on Google... Quote Link to comment Share on other sites More sharing options...
DeathStar Posted July 4, 2007 Author Share Posted July 4, 2007 I cannot use it. Read the GNU license agreement. Free software has to be released with the GNU license again. I'm not publishing this website under a GNU license. Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 4, 2007 Share Posted July 4, 2007 Then search Google. Quote Link to comment Share on other sites More sharing options...
DeathStar Posted July 4, 2007 Author Share Posted July 4, 2007 Results 1 - 10 of about 2,250,000 for Language Packs. 99% for other software, I need one that is free but not under the GNU license. Can anyone else help? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.