From f56fa1fc50484d99906a0a22e2931f9c1fe708b6 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 24 Nov 2011 16:54:42 +0000 Subject: improved i18n --- h-source/Application/Include/languages.php | 17 +++++++++++++++++ h-source/Application/Include/myFunctions.php | 25 ++++++++++++++++++------- 2 files changed, 35 insertions(+), 7 deletions(-) (limited to 'h-source/Application/Include') diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 8429aa0..cbaf6bb 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -317,6 +317,23 @@ class Lang /*0269*/"Download the xml file of all the modems in the database" => "Scarica il file xml di tutti i modem presenti nel database", /*0270*/"Modems and ADSL cards" => "Modem e schede ADSL", /*0271*/"Table of contents" => "Indice dei contenuti", + /*0272*/"by" => "da", + /*0273*/"Add a message" => "Aggiungi un messaggio", + /*0274*/"Save" => "Salva", + /*0275*/"Revision of the wiki page" => "Revisione della pagina della wiki", + /*0276*/"Preview" => "Anteprima", + /*0277*/"January" => "gennaio", + /*0278*/"February" => "febbraio", + /*0279*/"March" => "marzo", + /*0280*/"April" => "aprile", + /*0281*/"May" => "maggio", + /*0282*/"June" => "giugno", + /*0283*/"July" => "luglio", + /*0284*/"August" => "agosto", + /*0285*/"September" => "settembre", + /*0286*/"October" => "ottobre", + /*0287*/"November" => "novembre", + /*0288*/"December" => "dicembre", ), 'es' => array ( 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) -- cgit v1.2.3