update
This commit is contained in:
16
core/plugins/Smarty/function.translate.php
Normal file
16
core/plugins/Smarty/function.translate.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?
|
||||
/*
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* File: function.translate.php
|
||||
* Type: function
|
||||
* Name: link
|
||||
* Purpose: zwraca przetlumaczony tekst
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
|
||||
function smarty_function_translate($param, &$smarty)
|
||||
{
|
||||
return nl2br(Dictionary::Translate($param['word']));
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user