Actualización

This commit is contained in:
Xes
2025-04-10 12:36:07 +02:00
parent 1da7c3f3b9
commit 4aff98e77b
3147 changed files with 320647 additions and 0 deletions

22
plugin/date/index.act.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
/**
* Action script for example date plugin.
*
* @package chamilo.plugin.date
*/
/**
* Initialization.
*/
$convert_lang_to_code = [
"english" => "en_US",
"french" => "fr_BE",
"dutch" => "nl_NL",
"german" => "de_DE",
"japanese" => "ja_JP",
"danish" => "da_DK",
];
if (!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])) {
$code = $convert_lang_to_code[$_SESSION['user_language_choice']];
$locale = setlocale(LC_TIME, $code);
}
$date = strftime('%c');