26 lines
753 B
PHP
26 lines
753 B
PHP
<?php
|
|
/**
|
|
* Plugin name: GlotPress 翻译建议
|
|
* Description: 为 GlotPress 提供翻译记忆库和 AI 建议功能。
|
|
* Version: 1.0
|
|
* Author: 树新蜂
|
|
* License: GPLv2 or later
|
|
*/
|
|
|
|
namespace WordPressdotorg\GlotPress\TranslationSuggestions;
|
|
|
|
use WordPressdotorg\Autoload;
|
|
|
|
// Store the root plugin file for usage with functions which use the plugin basename.
|
|
const PLUGIN_FILE = __FILE__;
|
|
const PLUGIN_DIR = __DIR__;
|
|
|
|
if ( ! class_exists( '\WordPressdotorg\Autoload\Autoloader', false ) ) {
|
|
include __DIR__ . '/vendor/wordpressdotorg/autoload/class-autoloader.php';
|
|
}
|
|
|
|
// Register an Autoloader for all files.
|
|
Autoload\register_class_path( __NAMESPACE__, __DIR__ . '/inc' );
|
|
|
|
// Instantiate the Plugin.
|
|
Plugin::get_instance();
|