Location: PHPKode > projects > Simple Way to Usenet > swun/libs/core/langs/lang_FR.class.php
<?php
/**
 *  
 * @author  Benjamin Gillissen <hide@address.com>
 * 
 *	**************************************************************

	Copyright (C) 2009  Benjamin Gillissen
	
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details at:
	http://www.gnu.org/copyleft/gpl.html

 *	**************************************************************
 */

class lang_FR {
	
	private static $lang		= 'FR';
	private static $charsets	= 'UTF-8,WINDOWS-1252,ISO-8859-15,ISO-8859-1';
	private static $fallback	= Array('EN');

	public function __construct(){}
	
	public function lang(){	return self::$lang; }
	
	public static function charsets(){ return self::$charsets; }
	
	public static function fallback(){ return self::$fallback; }
	
	public function date_notime($stamp){
		if ( date('d-m-Y', $stamp) == date('d-m-Y', time()) ){
			return "Aujourd'hui";
		}
		return date("d-m-Y", $stamp);
	}
	
	public function date_time($stamp){
		if ( date('d-m-Y', $stamp) == date('d-m-Y', time()) ){
			return 'Aujourd\'hui à '.date('H\hi:s', $stamp);
		} 
		return date("d-m-Y @ H\hi:s", $stamp);
	}
	
	public function number($real, $prec){ return number_format($real, $prec, ',', '.'); }
	
}
Return current item: Simple Way to Usenet