<?php
/*
  $Id: lang.php,v 1.11 2005/02/12 02:46:02 andrewsimpson Exp $

  WebCollab
  ---------------------------------------
  This file created 2003 by Andrew Simpson.

  This program is free software; you can redistribute it and/or modify it under the
  terms of the GNU General Public License as published by the Free Software Foundation;
  either version 2 of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE. See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this
  program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  Cambridge, MA 02139, USA.

  Function:
  ---------

  Creates a singular interface for language access.

*/

//get our location
require_once("path.php" );

include_once(BASE."config/config.php" );

switch(LOCALE ) {

  case "bg":
    include(BASE."lang/bg_message.php" );
    break;

  case "ca":
    include(BASE."lang/ca_message.php" );
    break;

  case "da":
    include(BASE."lang/da_message.php" );
    break;

  case "de":
    include(BASE."lang/de_message.php" );
    break;

  case "es":
    include(BASE."lang/es_message.php" );
    break;

  case "fr":
    include(BASE."lang/fr_message.php" );
    break;

  case "it":
    include(BASE."lang/it_message.php" );
    break;
  
  case "ko":
    include(BASE."lang/ko_message.php" );
    break;

  case "pt-br":
    include(BASE."lang/pt-br_message.php" );
    break;
  
  case "en":
  default:
    include(BASE."lang/en_message.php" );
    break;
}

?>
