Skip to content
Extraits de code Groupes Projets
Valider 83f86c3a rédigé par Fil's avatar Fil
Parcourir les fichiers

aide occitan

parent ee23cb73
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -104,13 +104,13 @@ function fichier_aide($lang_aide, $aide) { ...@@ -104,13 +104,13 @@ function fichier_aide($lang_aide, $aide) {
} }
else // reduction ISO du code langue oci_prv_ni => oci_prv => oci else // reduction ISO du code langue oci_prv_ni => oci_prv => oci
if (ereg("(.*)_", $lang_aide, $regs)) if (ereg("(.*)_", $lang_aide, $regs))
$html = fichier_aide($regs[1], $aide); list($html,$lang_aide) = fichier_aide($regs[1], $aide);
return $html; return array($html,$lang_aide);
} }
$lang_aide = $GLOBALS['spip_lang']; $lang_aide = $GLOBALS['spip_lang'];
$html = fichier_aide($lang_aide, $aide); list($html,$l) = fichier_aide($lang_aide, $aide);
if (!$html) if (!$html)
$html = _T('aide_non_disponible'); $html = _T('aide_non_disponible');
...@@ -119,7 +119,7 @@ $suite = $html; ...@@ -119,7 +119,7 @@ $suite = $html;
$html = ""; $html = "";
while (ereg("AIDE/([-_a-zA-Z0-9]+\.(gif|jpg))", $suite, $r)) { while (ereg("AIDE/([-_a-zA-Z0-9]+\.(gif|jpg))", $suite, $r)) {
$f = $r[1]; $f = $r[1];
if (file_exists("AIDE/$lang_aide/$f")) $f = "$lang_aide/$f"; if (file_exists("AIDE/$l/$f")) $f = "$l/$f";
else if (file_exists("AIDE/fr/$f")) $f = "fr/$f"; else if (file_exists("AIDE/fr/$f")) $f = "fr/$f";
$p = strpos($suite, $r[0]); $p = strpos($suite, $r[0]);
$html .= substr($suite, 0, $p) . "AIDE/$f"; $html .= substr($suite, 0, $p) . "AIDE/$f";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter