X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fecrire%2Finc%2Flang.php;h=208338afed81e7a65fdfb30faa828baafa6260c3;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hp=169692e1a205c2b4e0b931d0fdf26dad84cddf54;hpb=a33c2ba9d919664b3bb0f565f8e9a8b9d8530cdb;p=lhc%2Fweb%2Fclavette_www.git diff --git a/www/ecrire/inc/lang.php b/www/ecrire/inc/lang.php index 169692e..208338a 100644 --- a/www/ecrire/inc/lang.php +++ b/www/ecrire/inc/lang.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * Copyright (c) 2001-2016 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -110,7 +110,7 @@ function traduire_nom_langue($lang) { // C'est utilise par #LANG_DIR, #LANG_LEFT, #LANG_RIGHT. // http://doc.spip.org/@lang_dir function lang_dir($lang='', $droitier='ltr', $gaucher='rtl') { - static $lang_rtl = array('ar', 'fa', 'ku', 'ps', 'ur', 'he', 'heb', 'hbo', 'yi'); + static $lang_rtl = array('ar', 'fa', 'ku', 'prs', 'ps', 'ur', 'he', 'heb', 'hbo', 'yi'); return in_array(($lang ? $lang : $GLOBALS['spip_lang']), $lang_rtl) ? $gaucher : $droitier; @@ -419,8 +419,8 @@ function init_langues() { if (!isset($GLOBALS['meta']['langue_site'])) { // Initialisation : le francais si dispo, sinon la premiere langue trouvee $GLOBALS['meta']['langue_site'] = $tout = - (!$all_langs OR (strpos(',fr,',",$all_langs,")!==false)) - ? 'fr' : substr($all_langs,0,strpos($all_langs,',')); + (!$all_langs OR (strpos(','._LANGUE_PAR_DEFAUT.',',",$all_langs,")!==false)) + ? _LANGUE_PAR_DEFAUT : substr($all_langs,0,strpos($all_langs,',')); ecrire_meta('langue_site', $tout); } }