A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
12 lines
347 B
12 lines
347 B
<?php
|
|
|
|
include __DIR__."/Smarty.class.php";
|
|
|
|
function translate($params = '', $content = '', $smarty = '', &$repeat = '', $template = '') {
|
|
if (class_exists('\Phacil\Framework\Translate')) {
|
|
$trans = new \Phacil\Framework\Translate();
|
|
return ($trans->translation($content));
|
|
} else {
|
|
return $content;
|
|
}// do something translatey here...
|
|
} |