<?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_EN {
private static $lang = 'EN';
private static $charsets = 'UTF-8,WINDOWS-1252,ISO-8859-15,ISO-8859-1,ASCII';
private static $fallback = Array('FR', 'NL');
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 "Today";
}
return date("d-m-Y", $stamp);
}
public function date_time($stamp){
if ( date('d-m-Y', $stamp) == date('d-m-Y', time()) ){
return 'Today at '.date('H\hi:s', $stamp);
}
return date("d-m-Y @ H\hi:s", $stamp);
}
public function number($real, $prec){ return number_format($real, $prec, '.', ','); }
}