Version Description
- Fixed some cases of multiple requests for finding out supported languages for automatic translation
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | TranslatePress – Translate Multilingual sites |
Version | 1.9.0 |
Comparing to | |
See all releases |
Code changes from version 1.8.9 to 1.9.0
- class-translate-press.php +1 -1
- includes/class-machine-translator.php +4 -1
- index.php +1 -1
- readme.txt +4 -1
class-translate-press.php
CHANGED
@@ -57,7 +57,7 @@ class TRP_Translate_Press{
|
|
57 |
define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
58 |
define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
|
59 |
define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
|
60 |
-
define( 'TRP_PLUGIN_VERSION', '1.
|
61 |
|
62 |
wp_cache_add_non_persistent_groups(array('trp'));
|
63 |
|
57 |
define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
58 |
define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
|
59 |
define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
|
60 |
+
define( 'TRP_PLUGIN_VERSION', '1.9.0' );
|
61 |
|
62 |
wp_cache_add_non_persistent_groups(array('trp'));
|
63 |
|
includes/class-machine-translator.php
CHANGED
@@ -60,9 +60,12 @@ class TRP_Machine_Translator {
|
|
60 |
!empty( $_GET['trp_recheck_supported_languages']) && $_GET['trp_recheck_supported_languages'] === '1' &&
|
61 |
wp_verify_nonce( $_GET['trp_recheck_supported_languages_nonce'], 'trp_recheck_supported_languages' ) ) ? true : $force_recheck;
|
62 |
$data = get_option('trp_db_stored_data', array() );
|
|
|
|
|
|
|
63 |
|
64 |
// if supported languages are not stored, fetch them and update option
|
65 |
-
if ( empty( $data['trp_mt_supported_languages'][$this->settings['trp_machine_translation_settings']['translation-engine']]['
|
66 |
if ( empty( $data['trp_mt_supported_languages'] ) ) {
|
67 |
$data['trp_mt_supported_languages'] = array();
|
68 |
}
|
60 |
!empty( $_GET['trp_recheck_supported_languages']) && $_GET['trp_recheck_supported_languages'] === '1' &&
|
61 |
wp_verify_nonce( $_GET['trp_recheck_supported_languages_nonce'], 'trp_recheck_supported_languages' ) ) ? true : $force_recheck;
|
62 |
$data = get_option('trp_db_stored_data', array() );
|
63 |
+
if ( isset( $_GET['trp_recheck_supported_languages'] )) {
|
64 |
+
unset($_GET['trp_recheck_supported_languages'] );
|
65 |
+
}
|
66 |
|
67 |
// if supported languages are not stored, fetch them and update option
|
68 |
+
if ( empty( $data['trp_mt_supported_languages'][$this->settings['trp_machine_translation_settings']['translation-engine']]['last-checked'] ) || $force_recheck ){
|
69 |
if ( empty( $data['trp_mt_supported_languages'] ) ) {
|
70 |
$data['trp_mt_supported_languages'] = array();
|
71 |
}
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: TranslatePress - Multilingual
|
4 |
Plugin URI: https://translatepress.com/
|
5 |
Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
|
6 |
-
Version: 1.
|
7 |
Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
|
8 |
Author URI: https://cozmoslabs.com/
|
9 |
Text Domain: translatepress-multilingual
|
3 |
Plugin Name: TranslatePress - Multilingual
|
4 |
Plugin URI: https://translatepress.com/
|
5 |
Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
|
6 |
+
Version: 1.9.0
|
7 |
Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
|
8 |
Author URI: https://cozmoslabs.com/
|
9 |
Text Domain: translatepress-multilingual
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: translate, translation, multilingual, automatic translation, bilingual, fr
|
|
5 |
Requires at least: 3.1.0
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6.20
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -138,6 +138,9 @@ For more information please check out our [documentation](https://translatepress
|
|
138 |
|
139 |
|
140 |
== Changelog ==
|
|
|
|
|
|
|
141 |
= 1.8.9 =
|
142 |
* Fixing search in xStore theme ajax search
|
143 |
* Fix edge cases of translation misalignment that caused some strings not to be translated and generated some notices
|
5 |
Requires at least: 3.1.0
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6.20
|
8 |
+
Stable tag: 1.9.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
138 |
|
139 |
|
140 |
== Changelog ==
|
141 |
+
= 1.9.0 =
|
142 |
+
* Fixed some cases of multiple requests for finding out supported languages for automatic translation
|
143 |
+
|
144 |
= 1.8.9 =
|
145 |
* Fixing search in xStore theme ajax search
|
146 |
* Fix edge cases of translation misalignment that caused some strings not to be translated and generated some notices
|