first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
/**
* Smarty plugin.
*/
/**
* Smarty {translate} function plugin.
*/
function smarty_modifier_translate($string, $category = null, $silent = false, $isAdministration = null)
{
if (is_null($category) && !empty(Smarty::$global_tpl_vars['TRANSLATIONS_DOMAIN'])) {
$category = end(Smarty::$global_tpl_vars['TRANSLATIONS_DOMAIN']);
}
// echo "Kategorie: $category -- ";
return translate($string, $category, $silent, $isAdministration);
}