29-03-2022

This commit is contained in:
2022-03-29 12:51:24 +02:00
parent 414346b7f1
commit 6ebef5c974
16 changed files with 467 additions and 1360 deletions

View File

@@ -40,19 +40,24 @@ $host = $pv_URIprotocol . $_SERVER['HTTP_HOST'];
$wp = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
$root = dirname($_SERVER['SCRIPT_FILENAME']);
//if ($_SERVER['SERVER_NAME'] == 'airbook.local')
$root = $_SERVER['DOCUMENT_ROOT'];
//$root = dirname($_SERVER['SCRIPT_FILENAME']); // /Users/bruno/Sites/sls
include($root.'/lib2/localize.php');
$dir_locales = $root . '/locales';
$dir_locales = $root . '/Locale';
$liste_locale = list_dir($dir_locales);
if ((!isset($_POST['lang'])) and (!isset($_GET['lang']))) $langue = locale_language_from_browser($myLanguages);
else $langue = $_REQUEST['lang'];
$domain = 'sentier';
putenv('LC_ALL=' . $langue);
$loc = setlocale(LC_ALL, $langue);
bindtextdomain($domain, $root . '/locales/');
bindtextdomain($domain, $root . '/Locale/');
bind_textdomain_codeset($domain, 'UTF-8');
textdomain($domain);
$nation = array('fr_FR' => gettext('French'), 'en_US' => gettext('English') , 'de_DE' => gettext('German'), 'es_ES' => gettext('Spanish') );
?>
@@ -139,7 +144,7 @@ foreach($fileList as $filename){
<div class="texte"><a href="/piwigo/" title="<?php echo gettext('Piwigo'); ?>"> <?php echo gettext('Visit the <span class="green">Piwigo gallery...</span>'); ?></a></div>
<div class="texte"><a href="/photoblog/ce-mois.php" title="<?php echo gettext('This month'); ?>"> <?php echo gettext('<span class="green">Latest</span> images...'); ?></a></div>
<div class="texte"><a href="photo-du-mois.php" title="<?php echo gettext('This month'); ?>"> <?php echo gettext('Picture of the <span class="green">month</span> ...'); ?></a></div>
</div>
</div>