3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined('_ECRIRE_INC_VERSION')) return;
19 include_spip('inc/presentation');
21 function configuration_langue_dist()
23 $l_site = $GLOBALS['meta']['langue_site'];
24 $langue_site = traduire_nom_langue($l_site);
26 $res = "<option value='$l_site' selected='selected'>$langue_site</option>\n";
28 foreach (explode(",",$GLOBALS['meta']['langues_proposees']) as $l) {
30 $res .= "<option value='$l'>".traduire_nom_langue($l)."</option>\n";
33 $res = ajax_action_post('configurer',
36 "<label for='changer_langue_site'>" .
37 _T('info_langue_principale') .
39 " : <select name='changer_langue_site' id='changer_langue_site'>\n$res</select>\n",
42 $res = debut_cadre_couleur("langues-24.gif", true, "", _T('info_langue_principale') . " : " . $langue_site) .
43 _T('texte_selection_langue_principale') .
45 fin_cadre_couleur(true);
47 return ajax_action_greffe("configurer-langue", '', $res);