This commit is contained in:
Diego Najar 2017-12-31 17:35:05 +01:00
parent 601359440d
commit 8217d8b873

View File

@ -13,8 +13,12 @@ class Date {
return $date;
}
// Get the array of dates from the language file
$dates = $Language->getDates();
return str_replace(array_keys($dates), array_values($dates), $date);
foreach ($dates as $english=>$anotherLang) {
$date = preg_replace('/\b'.$english.'\b/u', $anotherLang, $date);
}
return $date;
}
// Return current Unix timestamp, GMT+0