This commit is contained in:
Javier Casares 2026-05-28 07:22:36 +00:00
commit 1ccc13da01
14 changed files with 845 additions and 197 deletions

View file

@ -4,7 +4,7 @@
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-ai-translator
* Gitea Plugin URI: ROBOTSTXT/robotstxt-ai-translator
* Description: Translate post titles and content from the editor using the native WordPress AI client (available in WP 7.0+). Multisite-ready with global or per-site configuration.
* Version: 1.1.0
* Version: 1.2.0
* Author: ROBOTSTXT
* Author URI: https://www.robotstxt.es/
* License: GPL-3.0-or-later
@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* Plugin version.
*/
define( 'AI_TRANSLATOR_VERSION', '1.1.0' );
define( 'AI_TRANSLATOR_VERSION', '1.2.0' );
/**
* Main plugin file path.
@ -94,7 +94,7 @@ add_action( 'init', 'ai_translator_load_textdomain' );
*/
function ai_translator_bootstrap() {
$settings = new AI_Translator_Settings();
$translator = new AI_Translator_Translator();
$translator = new AI_Translator_Translator( $settings );
$admin = new AI_Translator_Admin( $settings );
$editor_ui = new AI_Translator_Editor_UI( $settings, $translator );
@ -131,7 +131,7 @@ function ai_translator_dependency_notice() {
return;
}
$translator = new AI_Translator_Translator();
$translator = new AI_Translator_Translator( new AI_Translator_Settings() );
if ( $translator->is_supported() ) {
return;