Plugin Directory

Changeset 3422426


Ignore:
Timestamp:
12/18/2025 03:18:28 AM (2 months ago)
Author:
mxchat
Message:

Version 2.6.1 fixes accessibility (send button aria-label) and translation loading to support /wp-content/languages/plugins/ directory.

Location:
mxchat-basic
Files:
103 added
3 edited

Legend:

Unmodified
Added
Removed
  • mxchat-basic/trunk/includes/class-mxchat-public.php

    r3389316 r3422426  
    366366            echo '          <div id="input-container">';
    367367            echo '              <textarea id="chat-input" dir="auto" placeholder="' . esc_attr($input_copy) . '" style="color: ' . esc_attr($chat_input_font_color) . ';"></textarea>';
    368             echo '              <button id="send-button">';
     368            echo '              <button id="send-button" aria-label="' . esc_attr__('Send message', 'mxchat') . '">';
    369369            if (!empty($custom_send_image)) {
    370370                echo '                  <img src="' . esc_url($custom_send_image) . '" alt="' . esc_attr__('Send', 'mxchat') . '" style="width: ' . intval($send_width) . 'px; height: ' . intval($send_height) . 'px; transform: rotate(' . intval($send_rotation) . 'deg);" />';
  • mxchat-basic/trunk/mxchat-basic.php

    r3418641 r3422426  
    44 * Plugin URI: https://mxchat.ai/
    55 * Description: AI chatbot for WordPress with OpenAI, Claude, xAI, DeepSeek, live agent, PDF uploads, WooCommerce, and training on website data.
    6  * Version: 2.6.0
     6 * Version: 2.6.1
    77 * Author: MxChat
    88 * Author URI: https://mxchat.ai
     
    2525
    2626function mxchat_load_textdomain() {
    27     load_plugin_textdomain('mxchat', false, dirname(plugin_basename(__FILE__)) . '/languages');
     27    $domain = 'mxchat';
     28    $locale = determine_locale();
     29
     30    // First, try to load from /wp-content/languages/plugins/ (preserved during updates)
     31    $mo_file = WP_LANG_DIR . '/plugins/' . $domain . '-' . $locale . '.mo';
     32    if (file_exists($mo_file)) {
     33        load_textdomain($domain, $mo_file);
     34        return;
     35    }
     36
     37    // Fallback to plugin's /languages directory
     38    load_plugin_textdomain($domain, false, dirname(plugin_basename(__FILE__)) . '/languages');
    2839}
    2940add_action('init', 'mxchat_load_textdomain');
  • mxchat-basic/trunk/readme.txt

    r3418641 r3422426  
    66Tested up to: 6.9
    77Requires PHP: 7.2
    8 Stable tag: 2.6.0
     8Stable tag: 2.6.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3939[Explore all product videos on YouTube](https://www.youtube.com/@MxChat/videos) 
    4040
    41 ## 🔥 What's New in Version 2.6.0
    42 
    43 🤖 **New Model Support**
    44 - New: OpenAI GPT-5.2 - the best general-purpose and agentic model, configured for fast responsive answers
    45 
    46 📊 **Transcript Enhancements**
    47 - New: View retrieved documents for any bot response in transcripts - click the "Sources →" link to see which knowledge base documents were used, similarity scores, and approved citation URLs
    48 - New: Markdown rendering in transcripts - bot responses now display formatted text with clickable links, bold, italic, code blocks, and headers
    49 
    50 🔒 **Session Security Improvements**
    51 - Improved: Session handling now auto-recovers when user IP changes (mobile network switches, VPN, etc.) instead of blocking with "Unauthorized access"
     41## 🔥 What's New in Version 2.6.1
     42
     43♿ **Accessibility Improvements**
     44- Fixed: Send button now has an accessible name for screen readers (aria-label)
     45
     46🌐 **Translation Loading Fix**
     47- Fixed: Translations now load from /wp-content/languages/plugins/ first, preserving custom translations during plugin updates
    5248
    5349## Core Features That Set MxChat Apart
     
    191187== Changelog ==
    192188
     189= 2.6.1 - December 17, 2025 =
     190- Fixed: Send button now includes aria-label for screen reader accessibility
     191- Fixed: Translations now load from /wp-content/languages/plugins/ first, preserving custom translations during updates
     192
    193193= 2.6.0 - December 12, 2025 =
    194194- New: OpenAI GPT-5.2 model support - best general-purpose and agentic model with fast responses
     
    642642== Upgrade Notice ==
    643643
    644 = 2.6.0 =
    645 Version 2.6.0 adds OpenAI GPT-5.2 model support, markdown rendering in transcripts for formatted bot responses, and a retrieved documents viewer in the transcripts page above each chatbot response to see which knowledge base content powers each response. Also improves session security to auto-recover when user IPs change.
     644= 2.6.1 =
     645Version 2.6.1 fixes accessibility (send button aria-label) and translation loading to support /wp-content/languages/plugins/ directory.
    646646
    647647== License & Warranty ==
Note: See TracChangeset for help on using the changeset viewer.