Changeset 3363118
- Timestamp:
- 09/17/2025 10:58:31 AM (7 months ago)
- Location:
- autoglot
- Files:
-
- 58 added
- 4 edited
-
tags/2.7.10 (added)
-
tags/2.7.10/admin (added)
-
tags/2.7.10/admin/autoglot_admin.php (added)
-
tags/2.7.10/admin/autoglot_editor.php (added)
-
tags/2.7.10/admin/css (added)
-
tags/2.7.10/admin/css/autoglot_flags.css (added)
-
tags/2.7.10/admin/css/autoglot_translation_admin.css (added)
-
tags/2.7.10/admin/index.php (added)
-
tags/2.7.10/admin/js (added)
-
tags/2.7.10/admin/js/autoglot_translation_admin.js (added)
-
tags/2.7.10/admin/js/autoglot_translation_admin_tabs.js (added)
-
tags/2.7.10/admin/js/autoglot_translation_editor.js (added)
-
tags/2.7.10/admin/partials (added)
-
tags/2.7.10/admin/partials/display_dashboard.php (added)
-
tags/2.7.10/admin/partials/display_editor.php (added)
-
tags/2.7.10/admin/partials/display_settings.php (added)
-
tags/2.7.10/admin/partials/display_setup.php (added)
-
tags/2.7.10/admin/partials/display_utilities.php (added)
-
tags/2.7.10/autoglot.php (added)
-
tags/2.7.10/front (added)
-
tags/2.7.10/front/css (added)
-
tags/2.7.10/front/css/autoglot.css (added)
-
tags/2.7.10/front/css/autoglot.min.css (added)
-
tags/2.7.10/front/img (added)
-
tags/2.7.10/front/img/flags_sprites.png (added)
-
tags/2.7.10/front/img/smallflags_sprites.png (added)
-
tags/2.7.10/front/index.php (added)
-
tags/2.7.10/front/js (added)
-
tags/2.7.10/front/js/autoglot.js (added)
-
tags/2.7.10/index.php (added)
-
tags/2.7.10/readme.txt (added)
-
tags/2.7.10/translation (added)
-
tags/2.7.10/translation/autoglot-de.mo (added)
-
tags/2.7.10/translation/autoglot-de.po (added)
-
tags/2.7.10/translation/autoglot-es_ES.mo (added)
-
tags/2.7.10/translation/autoglot-es_ES.po (added)
-
tags/2.7.10/translation/autoglot-fr_FR.mo (added)
-
tags/2.7.10/translation/autoglot-fr_FR.po (added)
-
tags/2.7.10/translation/autoglot-it.mo (added)
-
tags/2.7.10/translation/autoglot-it.po (added)
-
tags/2.7.10/translation/autoglot-pt.mo (added)
-
tags/2.7.10/translation/autoglot-pt.po (added)
-
tags/2.7.10/translation/autoglot-ru_RU.mo (added)
-
tags/2.7.10/translation/autoglot-ru_RU.po (added)
-
tags/2.7.10/translation/autoglot.pot (added)
-
tags/2.7.10/translation/index.php (added)
-
tags/2.7.10/translation/ru.mo (added)
-
tags/2.7.10/translation/ru.po (added)
-
tags/2.7.10/utils (added)
-
tags/2.7.10/utils/autoglot_3rdparty.php (added)
-
tags/2.7.10/utils/autoglot_constants.php (added)
-
tags/2.7.10/utils/autoglot_curl.php (added)
-
tags/2.7.10/utils/autoglot_db.php (added)
-
tags/2.7.10/utils/autoglot_dom.php (added)
-
tags/2.7.10/utils/autoglot_options.php (added)
-
tags/2.7.10/utils/autoglot_utils.php (added)
-
tags/2.7.10/utils/autoglot_widget.php (added)
-
tags/2.7.10/utils/index.php (added)
-
trunk/admin/autoglot_admin.php (modified) (4 diffs)
-
trunk/autoglot.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/utils/autoglot_constants.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
autoglot/trunk/admin/autoglot_admin.php
r3362576 r3363118 159 159 public function get_plugin_stats() { 160 160 161 $this->db_stats["w2translate"] = 0;162 163 161 // Handle secure recalculation request for WordPress posts/pages word count 164 162 if ( isset($_GET['autoglot_recalc_wpcount']) && isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'ag_recalc_wpcount') && current_user_can('manage_options') ) { … … 175 173 if($this->autoglot->autoglot_database->db_exists()){ 176 174 $this->db_stats = $this->autoglot->autoglot_database->db_stats(); 175 $this->db_stats["w2translate"] = 0; 177 176 foreach ($this->autoglot->options->active_languages as $lng){ 178 177 if($lng != $this->autoglot->options->default_language){ 179 178 $this->db_stats["w2translate"] += max(0,$this->db_stats['wpcount'] - $this->db_stats['countactivewords'][$lng]); 180 179 } 181 $this->db_stats["w2translate"] = max(0, $this->db_stats["w2translate"]);182 }180 } 181 $this->db_stats["w2translate"] = max(0, $this->db_stats["w2translate"]); 183 182 } 184 183 … … 644 643 if(is_plugin_active( 'woocommerce/woocommerce.php' )) {//recalculate and allow 500 words for WooCommerce pages 645 644 $this->db_stats["w2translate"] = 0; 646 foreach ($this->autoglot->options->active_languages as $lng) 647 if($lng != $this->autoglot->options->default_language) 648 $this->db_stats["w2translate"] += max(0, 500 + $this->db_stats['wpcount'] - $this->db_stats['countactivewords'][$lng]); 649 $this->db_stats["w2translate"] = max(0, $this->db_stats["w2translate"]); 645 foreach ($this->autoglot->options->active_languages as $lng){ 646 if($lng != $this->autoglot->options->default_language){ 647 $this->db_stats["w2translate"] += max(0, 500 + $this->db_stats['wpcount'] - $this->db_stats['countactivewords'][$lng]); 648 } 649 } 650 $this->db_stats["w2translate"] = max(0, $this->db_stats["w2translate"]); 650 651 } 651 652 printf('<tr><td>' .($this->db_stats["w2translate"]>0?'<span class="autoglot-bubble-red">!</span> ':'') . esc_html__('Approximate number of words that should be translated to currently active languages:', 'autoglot') . '</td><td style="background-color:%s"><strong>%s</strong> *</td></tr>', ($this->db_stats["w2translate"]>0?"#FF9999":"#99FF99"), esc_html(number_format_i18n($this->db_stats["w2translate"]))); … … 1224 1225 'page' => 'autoglot_translation_advanced', 1225 1226 'helper' => '', 1226 'supplemental' => __('Enable/disable translation of URLs (links to posts and pages). If enabled, Autoglot will translate all WordPress permalinks, e.g. <code>http://site.com/page/</code> to <code>http://site.com/fr/página/</code>. It can also transliterate URLs to url-friendly format, e.g. <code>http://site.com/page/</code> to <code>http://site.com/fr/pagina/</code>', 'autoglot')."<br />< span class='autoglot-bubble-green'>!</span><br />".__('Please note, Translation and Transliteration of URLs will affect only URLs that have not been translated yet. If you need to update already translated URLs, you need to modify or delete them in Translation Editor.','autoglot'),1227 'supplemental' => __('Enable/disable translation of URLs (links to posts and pages). If enabled, Autoglot will translate all WordPress permalinks, e.g. <code>http://site.com/page/</code> to <code>http://site.com/fr/página/</code>. It can also transliterate URLs to url-friendly format, e.g. <code>http://site.com/page/</code> to <code>http://site.com/fr/pagina/</code>', 'autoglot')."<br /><br /><span class='autoglot-bubble-green'>!</span> ".__('Please note, Translation and Transliteration of URLs will affect only URLs that have not been translated yet. If you need to update already translated URLs, you need to modify or delete them in Translation Editor.','autoglot'), 1227 1228 'type' => 'radio', 1228 1229 'options' => array( -
autoglot/trunk/autoglot.php
r3362576 r3363118 4 4 Plugin URI: https://autoglot.com/download/ 5 5 Description: Fully automatic SEO-friendly plugin for multilingual WordPress translation. Translate your website and boost your traffic in minutes! No coding, no subscription, no recurring payments, no hurdles! 6 Version: 2.7. 96 Version: 2.7.10 7 7 Text Domain: autoglot 8 8 Author: Autoglot WordPress Team … … 129 129 } 130 130 $this->allowed_html = $keeparray; 131 132 $this->plugin_admin = new autoglot_admin($this, AUTOGLOT_PLUGIN_NAME, AUTOGLOT_PLUGIN_VER);133 131 132 if(is_admin() && !wp_doing_ajax()) $this->plugin_admin = new autoglot_admin($this, AUTOGLOT_PLUGIN_NAME, AUTOGLOT_PLUGIN_VER); 133 134 134 register_activation_hook(__FILE__, array($this, 'plugin_activated')); 135 135 register_deactivation_hook(__FILE__, array($this, 'plugin_deactivated')); 136 136 137 137 add_action('plugins_loaded', array($this, 'plugin_loaded')); 138 138 … … 279 279 */ 280 280 function plugin_install_error() { 281 $this->plugin_admin->admin_notice(__('There was an error during installation or activation of Autoglot plugin:', 'autoglot').' ',"error"); 281 //$this->plugin_admin->admin_notice(__('There was an error during installation or activation of Autoglot plugin:', 'autoglot').' ',"error"); 282 update_option('autoglot_admin_notice',array(__('There was an error during installation or activation of Autoglot plugin', 'autoglot'),"error")); 283 282 284 } 283 285 -
autoglot/trunk/readme.txt
r3362576 r3363118 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.0 7 Stable tag: 2.7. 97 Stable tag: 2.7.10 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Reach new audience, boost traffic and SEO with a fully automatic multilingual translation . MTPE translation editor. No subscription required, starting from $0.0005 perword!11 Reach new audience, boost traffic and SEO with a fully automatic multilingual translation + MTPE editor. No subscription, starting from $0.0005/word! 12 12 13 13 == Description == … … 310 310 == Upgrade Notice == 311 311 312 = 2.7. 9=312 = 2.7.10 = 313 313 Improved Word Counter tool 314 314 … … 361 361 == Changelog == 362 362 363 = 2.7.10 (17/09/2025) = 364 * Improved overall speed by preventing excessive DB requests from admin dashboard 365 * Minor fixes in admin dashboard 366 * Improved Word Counter tool to use regexp functions from MySQL 8, if possible (coming soon) 367 363 368 = 2.7.9 (16/09/2025) = 364 369 * Improved Word Counter tool to include words from custom post types -
autoglot/trunk/utils/autoglot_constants.php
r3362576 r3363118 256 256 257 257 //Define for autoglot plugin version 258 define('AUTOGLOT_PLUGIN_VER', '2.7. 9');258 define('AUTOGLOT_PLUGIN_VER', '2.7.10'); 259 259 260 260 //Define for autoglot plugin name
Note: See TracChangeset
for help on using the changeset viewer.