first commit

This commit is contained in:
Konstantin
2026-05-30 09:27:58 +03:00
commit de0344d218
2371 changed files with 661486 additions and 0 deletions
@@ -0,0 +1,16 @@
<?php
class ControllerEventTranslation extends Controller {
public function index(&$route, &$key) {
$this->load->model('design/translation');
$results = $this->model_design_translation->getTranslations($route);
foreach ($results as $result) {
if (!$key) {
$this->language->set($result['key'], html_entity_decode( $result['value'], ENT_QUOTES, 'UTF-8'));
} else {
$this->language->get($key)->set($result['key'], html_entity_decode( $result['value'], ENT_QUOTES, 'UTF-8'));
}
}
}
}