aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/myFunctions.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-11-24 16:54:42 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-11-24 16:54:42 +0000
commitf56fa1fc50484d99906a0a22e2931f9c1fe708b6 (patch)
treec70ac55756560ca11e4fbcd52b551954e942beea /h-source/Application/Include/myFunctions.php
parentdeb6bcab1be6ec1c9fff6f34c80111a9f57c48d9 (diff)
improved i18n
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r--h-source/Application/Include/myFunctions.php25
1 files changed, 18 insertions, 7 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index 8c757e7..bb7aa5f 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -73,15 +73,26 @@ function titleForRedirect($title)
function smartDate($uglyDate = null, $lang = 'en')
{
- switch ($lang)
+ if (strcmp($lang,'en'))
{
- case 'en':
- $smDate = date('H:i, d F Y',strtotime($uglyDate));
- break;
- default:
- $smDate = date('H:i, d F Y',strtotime($uglyDate));
+ return date('H:i, j F Y',strtotime($uglyDate));
}
- return $smDate;
+ else
+ {
+ return date('H:i, j ',strtotime($uglyDate)).gtext(date('F',strtotime($uglyDate))).date(' Y',strtotime($uglyDate));
+ }
+// switch ($lang)
+// {
+// case 'en':
+// $smDate = date('H:i, d F Y',strtotime($uglyDate));
+// break;
+// case 'it':
+// $smDate = date('H:i, d F Y',strtotime($uglyDate));
+// break;
+// default:
+// $smDate = date('H:i, d F Y',strtotime($uglyDate)).date(' F ',strtotime($uglyDate)).date('Y',strtotime($uglyDate));
+// }
+// return $smDate;
}
function pubDateFormat($uglyDate = null)