Source for file lang.php
Documentation is available at lang.php
* Fichier contenant la liste des langues (abr�g�es)
* LODEL - Logiciel d'Edition ELectronique.
* Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos
* Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
* Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno C�nou
* Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno C�nou
* Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno C�nou, Jean Lamy, Mika�l Cixous, Sophie Malafosse
* Copyright (c) 2007, Marin Dacos, Bruno C�nou, Sophie Malafosse, Pierre-Alain Mignot
* Home page: http://www.lodel.org
* E-Mail: lodel@lodel.org
* 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.
* @author Ghislain Picard
* @author Pierre-Alain Mignot
* @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno C�nou
* @copyright 2006, Marin Dacos, Luc Santeramo, Bruno C�nou, Jean Lamy, Mika�l Cixous, Sophie Malafosse
* @copyright 2007, Marin Dacos, Bruno C�nou, Sophie Malafosse, Pierre-Alain Mignot
* @licence http://www.gnu.org/copyleft/gpl.html
* @since Fichier ajout� dans la version 0.8
//contient la liste des langues disponibles pour installer lodel
$GLOBALS['installlanguages'] = array(
# "BN"=> "Bengali" "Bangla",
# "GD"=> "Gaelic" "Scots Gaelic",
# "RM"=> "Rhaeto-Romance",
# "SH"=> "Serbo-Croatian",
$GLOBALS['languages']= array(
"AR"=> "‫العربية",
# "BN"=> "Bengali" "Bangla",
# "GD"=> "Gaelic" "Scots Gaelic",
# "RM"=> "Rhaeto-Romance",
# "SH"=> "Serbo-Croatian",
* Construction du SELECT des langues
* @param string $selectedlang la langue s�lectionn�e (par d�faut vide)
global $context,$languages;
echo "<option value=\"\">--</option>\n";
foreach ($languages as $l=> $lang) {
$selected = $selectedlang == $l ? " selected=\"selected\"" : "";
echo "<option value=\"$l\"$selected>$lang</option>\n";
* Construction du SELECT des langues (jamais vide)
* @param string $selectedlang la langue s�lectionn�e (par d�faut vide)
global $context,$languages;
foreach ($languages as $l=> $lang) {
$selected = $selectedlang == $l ? " selected=\"selected\"" : "";
echo "<option value=\"$l\"$selected>$lang</option>\n";
* Cette fonction affiche une liste d�roulante permettant de choisir une langue (utilis�e par entrytypes)
global $languages, $context;
echo "<option value=\"\">--</option>\n";
foreach ($languages as $l=> $lang) {
$selected = $context['lang'] == $l ? " selected=\"selected\"" : "";
echo "<option value=\"$l\"$selected>$lang</option>\n";
|