isSection($section, CURRENT_LOCALE)) { $file = BASE_PATH . '/languages/' . CURRENT_LOCALE . '/' . $section . '.mo'; if (file_exists($file)) { $translate->addTranslation($file, CURRENT_LOCALE); } } $translate->setSection($section); return $translate->translate($string); } return $string; } ?>