. */ /** * This is an example user_config.php file * It shows you how to translate the application in your own language * (here it's french) */ if (!class_exists('fotooManager')) die('Just config'); /** * User configuration * You can set those constants to what you need * Let them commented to get the defaults */ //define('BASE_DIR', dirname(__FILE__)); //define('CACHE_DIR', BASE_DIR . '/cache'); //define('BASE_URL', 'http://myserver.tld/pics/'); //define('SELF_URL', BASE_URL . 'gallery.php'); // Generate a resized copy of images for small view (600x600), disabled by default // WARNING GENERATING IMAGES IS REALLY SLOW AND IT MAY KILL YOU WEBSERVER! // Generate all small images in directory update process (slow) //define('GEN_SMALL', 1); // Generate small image when an image page is viewed (less slow) //define('GEN_SMALL', 2); // Shortcut tags in album and pictures comments // eg. if you type wp:Belgium in your comment tag, it will make a link to wikipedia // You can add anything you want $f->html_tags = array( 'wp:fr' => 'http://fr.wikipedia.org/wiki/{KEYWORD}', 'wp' => 'http://en.wikipedia.org/wiki/{KEYWORD}', ); // Strings translation $french_strings = array( 'Pictures for %A %d %B %Y' => 'Photos prises le %A %d %B %Y', 'Pictures for %B %Y' => 'Photos prises en %B %Y', 'Pictures for %Y' => 'Photos prises en %Y', 'Pictures by date' => 'Photos par date', 'Pictures by tag' => 'Photos par mot-clé', 'Pictures in tag %s' => 'Photos pour le mot-clé %s', 'My Pictures' => 'Mes photos', 'By date' => 'Par date', 'By tags' => 'Par mot-clé', '%B' => '%B', '%A %d' => '%A %d', '(%s more pictures)' => '(%s photos de plus)', 'Tags' => 'Mots-clés', "Other tags related to '%s':" => "Autres mots-clés en rapport avec '%s' :", 'Download image at original size (%s x %s)' => "Télécharger l'image au format original (%s x %s)", 'Comment:' => 'Commentaire :', 'Tags:' => 'Mots-clés :', 'Date:' => 'Date :', '%A %d %B %Y at %H:%M' => '%A %d %B %Y à %H:%M', 'Updating database, please wait, more pictures will appear in a while...' => "Mise à jour de la base de données. " . "Patientez, dans quelques instants d'autres images apparaîtront.", 'Updating' => 'Mise à jour', 'Update done.' => 'Mise à jour terminée.', 'Picture not found' => 'Photo non trouvée', 'Back to homepage' => "Retour à la page d'accueil", 'No picture found.' => "Aucune image n'a été trouvée.", 'No tag found.' => "Aucun mot-clé n'a été trouvé.", 'Previous' => "Photo précédente", 'Next' => "Photo suivante", 'Slideshow' => 'Diaporama', 'Pause' => 'Mettre en pause', 'Restart' => 'Reprendre', ); // Days of the week translations $french_days = array( 'Monday' => 'lundi', 'Tuesday' => 'mardi', 'Wednesday' => 'mercredi', 'Thursday' => 'jeudi', 'Friday' => 'vendredi', 'Saturday' => 'samedi', 'Sunday' => 'dimanche', ); // Months of the year translations $french_months = array( 'January' => 'janvier', 'February' => 'février', 'March' => 'mars', 'April' => 'avril', 'May' => 'mai', 'June' => 'juin', 'July' => 'juillet', 'August' => 'août', 'September' => 'septembre', 'October' => 'octobre', 'November' => 'novembre', 'December' => 'décembre', ); function __($str, $time=false) { global $french_strings, $french_days, $french_months; if (isset($french_strings[$str])) $tr = $french_strings[$str]; else $tr = $str; if ($time) { $tr = strftime($tr, $time); $tr = strtr($tr, $french_days); $tr = strtr($tr, $french_months); } return $tr; } ?>