4 |
david |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/***************************************************************************\
|
|
|
4 |
* SPIP, Systeme de publication pour l'internet *
|
|
|
5 |
* *
|
|
|
6 |
* Copyright (c) 2001-2005 *
|
|
|
7 |
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
|
|
|
8 |
* *
|
|
|
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 |
\***************************************************************************/
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
include ("inc.php3");
|
|
|
15 |
|
|
|
16 |
include_ecrire ("inc_config.php3");
|
|
|
17 |
|
|
|
18 |
debut_page(_T('titre_page_config_contenu'), "administration", "langues");
|
|
|
19 |
|
|
|
20 |
echo "<br><br><br>";
|
|
|
21 |
gros_titre(_T('info_langues'));
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
barre_onglets("config_lang", "langues");
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
debut_gauche();
|
|
|
30 |
|
|
|
31 |
debut_droite();
|
|
|
32 |
|
|
|
33 |
if ($connect_statut != '0minirezo' OR !$connect_toutes_rubriques) {
|
|
|
34 |
echo _T('avis_non_acces_page');
|
|
|
35 |
fin_page();
|
|
|
36 |
exit;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
init_config();
|
|
|
40 |
if ($changer_config == 'oui') {
|
|
|
41 |
appliquer_modifs_config();
|
|
|
42 |
calculer_langues_rubriques();
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
lire_metas();
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
echo "<form action='config-lang.php3' method='post'>";
|
|
|
49 |
echo "<input type='hidden' name='changer_config' value='oui'>";
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
//
|
|
|
53 |
// Configuration i18n
|
|
|
54 |
//
|
|
|
55 |
|
|
|
56 |
debut_cadre_couleur("langues-24.gif", false, "", _T('info_langue_principale'));
|
|
|
57 |
|
|
|
58 |
$langues_prop = split(",",$all_langs);
|
|
|
59 |
$langue_site = lire_meta('langue_site');
|
|
|
60 |
|
|
|
61 |
echo _T('texte_selection_langue_principale');
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
// langue du site
|
|
|
65 |
echo _T('info_langue_principale')." : ";
|
|
|
66 |
echo "\n<select name='changer_langue_site' class='fondl' align='middle'>\n";
|
|
|
67 |
echo "<option value='$langue_site' selected>".traduire_nom_langue($langue_site)."</option>\n";
|
|
|
68 |
reset ($langues_prop);
|
|
|
69 |
while (list(,$l) = each ($langues_prop)) {
|
|
|
70 |
if ($l <> $langue_site)
|
|
|
71 |
echo "<option value='$l'>".traduire_nom_langue($l)."</option>\n";
|
|
|
72 |
}
|
|
|
73 |
echo "</select>\n";
|
|
|
74 |
echo "<INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'>";
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
fin_cadre_couleur();
|
|
|
78 |
|
|
|
79 |
echo "<p>";
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
//
|
|
|
83 |
// Configuration du charset
|
|
|
84 |
//
|
|
|
85 |
|
|
|
86 |
if ($options == 'avancees') {
|
|
|
87 |
debut_cadre_relief("breve-24.gif", false, "", _T('info_jeu_caractere'));
|
|
|
88 |
|
|
|
89 |
$charset = lire_meta("charset");
|
|
|
90 |
|
|
|
91 |
echo _T('texte_jeu_caractere')."<p>";
|
|
|
92 |
echo "<blockquote class='spip'><p>"._T('texte_jeu_caractere_2')."</p></blockquote>";
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
echo bouton_radio('charset', 'iso-8859-1',
|
|
|
96 |
_T('bouton_radio_occidental'), $charset == 'iso-8859-1');
|
|
|
97 |
echo "<br>";
|
|
|
98 |
echo bouton_radio('charset', 'utf-8',
|
|
|
99 |
_T('bouton_radio_universel'), $charset == 'utf-8');
|
|
|
100 |
echo "<br>";
|
|
|
101 |
echo bouton_radio('charset', 'custom',
|
|
|
102 |
_T('bouton_radio_personnalise'), $charset != 'utf-8' && $charset != 'iso-8859-1');
|
|
|
103 |
echo "<br>";
|
|
|
104 |
if ($charset != 'utf-8' && $charset != 'iso-8859-1') {
|
|
|
105 |
echo " "._T('info_entrer_code_alphabet')." ";
|
|
|
106 |
echo "<input type='text' name='charset_custom' class='fondl' value='$charset' size='15'>";
|
|
|
107 |
}
|
|
|
108 |
else
|
|
|
109 |
echo "<input type='hidden' name='charset_custom' value=''>";
|
|
|
110 |
|
|
|
111 |
echo "<div style='text-align: $spip_lang_right;'><INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_valider')."' CLASS='fondo'></div>";
|
|
|
112 |
|
|
|
113 |
fin_cadre_relief();
|
|
|
114 |
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
echo "</form>";
|
|
|
119 |
|
|
|
120 |
fin_page();
|
|
|
121 |
|
|
|
122 |
?>
|