translater/_prepend.php

28 lines
910 B
PHP
Raw Normal View History

2021-08-18 19:42:30 +00:00
<?php
2021-09-02 21:44:01 +00:00
/**
* @brief translater, a plugin for Dotclear 2
2021-11-01 21:32:32 +00:00
*
2021-09-02 21:44:01 +00:00
* @package Dotclear
* @subpackage Plugin
2021-11-01 21:32:32 +00:00
*
2021-09-02 21:44:01 +00:00
* @author Jean-Christian Denis & contributors
2021-11-01 21:32:32 +00:00
*
2021-09-02 21:44:01 +00:00
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2021-08-18 22:48:47 +00:00
if (!defined('DC_RC_PATH')) {
return;
}
2021-08-18 19:42:30 +00:00
2022-11-13 17:40:31 +00:00
$d = __DIR__ . '/inc/';
2021-08-18 19:42:30 +00:00
2022-11-13 17:40:31 +00:00
Clearbricks::lib()->autoload(['dcTranslater' => $d . 'class.dc.translater.php']);
Clearbricks::lib()->autoload(['dcTranslaterDefaultSettings' => $d . 'class.dc.translater.php']);
Clearbricks::lib()->autoload(['dcTranslaterModule' => $d . 'class.dc.translater.module.php']);
Clearbricks::lib()->autoload(['dcTranslaterLang' => $d . 'class.dc.translater.lang.php']);
Clearbricks::lib()->autoload(['translaterRest' => $d . 'class.translater.rest.php']);
2021-08-18 19:42:30 +00:00
2022-11-13 17:40:31 +00:00
if (isset(dcCore::app()->adminurl)) {
dcCore::app()->adminurl->register('translater', 'plugin.php', ['p' => 'translater']);
2021-11-01 21:32:32 +00:00
}