localization smart php
<?php
include'class.localization_smart.php';
$lang = new lang('{T|','}');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{T|site} {T|title_page}</title>
</head>
<body>
<h1>{T|name}</h1>
<h2>{T|job}</h2>
</body>
</html>
<?php
$lang->set('langs/','ar');
?>
$lang = new lang('{T|','}');
You can change
Specify the name of the key array translation file json {T|name}
Place the object at the beginning of the code or the part to be changed And a function set at the end of the code or the part to be changed
#function set
$lang->set('langs/','ar');
- Specify the translation file path
- File Name Translation