blob: 11ca8098b438cff3b05db1292518e7f068af1b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
namespace Bitweaver\Plugins;
use Bitweaver\KernelTools;
use Smarty\BlockHandler\BlockHandlerInterface;
use Smarty\Template;
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
* -------------------------------------------------------------
* File: block.translate.php
* Type: block
* Name: translate
* Purpose: translate a block of text
* -------------------------------------------------------------
*/
//global $lang;
//include_once('lang/language.php');
class BlockTr implements BlockHandlerInterface {
public function handle( $params, $content, Template $template, &$repeat): string {
echo KernelTools::tra( $content );
return '';
}
public function isCacheable(): bool {
return true;
}
}
|