Plugin Directory

Changeset 3263950


Ignore:
Timestamp:
03/29/2025 11:26:16 PM (12 months ago)
Author:
mvpis
Message:

Now with full Ajax translation support

Location:
fluentc-translation
Files:
158 added
3 edited

Legend:

Unmodified
Added
Removed
  • fluentc-translation/trunk/fluentc_wordpress_plugin.php

    r3261836 r3263950  
    77 * Plugin URI: https://www.fluentc.ai
    88 * Description: A plugin that enables website owners to easily install the FluentC Translation on their WordPress site.
    9  * Version: 2.4.6
     9 * Version: 2.5
    1010 * Author: FluentC
    1111 * Author URI: https://www.fluentc.ai
     
    1717define( 'FLUENTC_DIR', __DIR__ );
    1818define( 'FLUENTC_SLUG', 'fluentc_translation' );
    19 define( 'FLUENTC_TRANSLATION_VERSION', "2.4.6" );
     19define( 'FLUENTC_TRANSLATION_VERSION', "2.5" );
    2020define( 'FLUENTC_TRANSLATION_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    2121define( 'FLUENTC_TRANSLATION_PLUGIN_URL', plugin_dir_url(__FILE__) );
  • fluentc-translation/trunk/readme.txt

    r3261836 r3263950  
    55Requires at least: 4.6
    66Tested up to: 6.6.2
    7 Stable tag: 2.4.6
     7Stable tag: 2.5
    88Requires PHP: 7.3
    99License: GPLv2 or later
     
    1212
    1313== Description ==
    14 **Limited Time Offer: One Free Language for All Sites!**
     14**Free Manual Language for All Sites!**
    1515
    1616FluentC transforms your WordPress site into a **multilingual powerhouse** with **AI-powered translations** in over 130 languages. It’s designed to be fast, reliable, and easy to use, without the need for technical expertise. Enjoy **SEO-optimized translations** to increase international traffic and sales, all while maintaining top performance on your WordPress site.
     
    1818**Key Features:**
    1919- **AI-Powered Automatic Translation**: Translate your WordPress site in over 130 languages with AI precision, ensuring high-quality, human-like translations.
    20 - **One Free Language with Unlimited Translations**: For a limited time, you can translate your site into one language at no cost.
    21 - **Flat-Rate Pricing**: $25/month per additional language with unlimited translations. No hidden fees or word limits.
     20- **Free Manual Translation with Unlimited Translations**: For a limited time, you can translate your site using our advanced management and detection tools manual for free.
     21- **Flat-Rate Pricing**: $5/month per language with unlimited translations. No hidden fees or word limits.
    2222- **SEO-Optimized**: Automatically generates SEO-friendly translations, including **meta tags**, **URL slugs**, and **schema.org data**.
    2323- **No Performance Impact**: Translations occur without slowing down your website, ensuring optimal speed even with multiple languages.
     
    3737== Frequently Asked Questions ==
    3838
    39 = What does the 'Free Language' offer include? =
    40 FluentC offers one free language with unlimited translations for all WordPress sites. This makes FluentC the most affordable option for multilingual WordPress websites. You only pay for additional languages.
     39= What does the 'Free Manual Translation' offer include? =
     40FluentC offers free manual with unlimited translations for all WordPress sites. This makes FluentC the most affordable option for multilingual WordPress websites. You only pay for automated translations.
    4141
    4242= Will FluentC slow down my site? =
     
    7070
    7171=== Changelog ==
     72= 2.5 =
     73
     74Updated Ajax control
     75Improved editing capabilities
     76Free Manual translations
     77
    7278= 1.9 =
    7379
  • fluentc-translation/trunk/src/actions/class-wordpress.php

    r3261836 r3263950  
    267267        }
    268268       
    269         if (is_admin() || is_404() || defined('DOING_CRON') || wp_is_xml_request()) {
    270             return;
    271         }
    272        
     269          // Modified condition - handle AJAX requests differently
     270    $is_f_ajax = defined('DOING_AJAX') && DOING_AJAX;
     271   
     272    // Allow AJAX requests with language parameter to proceed
     273    if ((is_admin() && !$is_f_ajax) ||
     274        is_404() ||
     275        defined('DOING_CRON') ||
     276        wp_is_xml_request() ||
     277        ($is_f_ajax && !isset($_REQUEST['fluentc_language']))) {
     278        return;
     279    }
    273280        if (is_null($this->language_code) || $this->language_code === $this->site_language) {
    274281            return;
     
    295302    public function process_final_output($buffer) {
    296303        // Don't process admin pages
    297         if (is_admin() || defined('DOING_CRON') || wp_is_xml_request()) {
     304        if (defined('DOING_CRON') || wp_is_xml_request()) {
    298305            return $buffer;
    299306        }
     
    302309        if (is_feed()) {
    303310            return $buffer;
    304         }
    305 
    306         // Handle JSON responses
    307         if ($this->is_json($buffer)) {
    308             return $this->process_json($buffer);
    309311        }
    310312
Note: See TracChangeset for help on using the changeset viewer.