TranslatePress – Translate Multilingual sites - Version 2.3.4

Version Description

  • Improved compatibility with WooCommerce Payments
  • Fixed php notice about notification_id
Download this release

Release Info

Developer razvan.mo
Plugin Icon 128x128 TranslatePress – Translate Multilingual sites
Version 2.3.4
Comparing to
See all releases

Code changes from version 2.3.3 to 2.3.4

class-translate-press.php CHANGED
@@ -60,7 +60,7 @@ class TRP_Translate_Press{
60
  define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
61
  define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
62
  define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
63
- define( 'TRP_PLUGIN_VERSION', '2.3.3' );
64
 
65
  wp_cache_add_non_persistent_groups(array('trp'));
66
 
60
  define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
61
  define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
62
  define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
63
+ define( 'TRP_PLUGIN_VERSION', '2.3.4' );
64
 
65
  wp_cache_add_non_persistent_groups(array('trp'));
66
 
includes/class-error-manager.php CHANGED
@@ -69,7 +69,7 @@ class TRP_Error_Manager{
69
  );
70
  }
71
  }
72
- if ( $error_details['notification_id'] ){
73
  $option['notifications'][$error_details['notification_id']] = array(
74
  'notification_id' => $error_details['notification_id'],
75
  'message' => $error_details['message'] .' ' . $error_message
69
  );
70
  }
71
  }
72
+ if ( isset( $error_details['notification_id'] ) && isset( $error_details['message'] ) ) {
73
  $option['notifications'][$error_details['notification_id']] = array(
74
  'notification_id' => $error_details['notification_id'],
75
  'message' => $error_details['message'] .' ' . $error_message
includes/class-translation-manager.php CHANGED
@@ -1010,7 +1010,7 @@ class TRP_Translation_Manager
1010
  * but for some reason it returns our gettext string without the stripped gettext.
1011
  */
1012
 
1013
- if ( $text != 'Name: %1$s, Username: %2$s' && $text != 'Name: %1$s, Guest' ) {
1014
  $translation = apply_filters( 'trp_process_gettext_tags', '#!trpst#trp-gettext data-trpgettextoriginal=' . $db_id . '#!trpen#' . $translation . '#!trpst#/trp-gettext#!trpen#', $translation, $skip_gettext_querying, $text, $domain );
1015
 
1016
  }
1010
  * but for some reason it returns our gettext string without the stripped gettext.
1011
  */
1012
 
1013
+ if ( ($text != 'Name: %1$s, Username: %2$s' && $text != 'Name: %1$s, Guest' && $domain == 'woocommerce-payments') || $domain != 'woocommerce-payments') {
1014
  $translation = apply_filters( 'trp_process_gettext_tags', '#!trpst#trp-gettext data-trpgettextoriginal=' . $db_id . '#!trpen#' . $translation . '#!trpst#/trp-gettext#!trpen#', $translation, $skip_gettext_querying, $text, $domain );
1015
 
1016
  }
index.php CHANGED
@@ -3,14 +3,14 @@
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: 2.3.3
7
  Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
8
  Author URI: https://cozmoslabs.com/
9
  Text Domain: translatepress-multilingual
10
  Domain Path: /languages
11
  License: GPL2
12
  WC requires at least: 2.5.0
13
- WC tested up to: 6.7
14
 
15
  == Copyright ==
16
  Copyright 2017 Cozmoslabs (www.cozmoslabs.com)
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: 2.3.4
7
  Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
8
  Author URI: https://cozmoslabs.com/
9
  Text Domain: translatepress-multilingual
10
  Domain Path: /languages
11
  License: GPL2
12
  WC requires at least: 2.5.0
13
+ WC tested up to: 6.8
14
 
15
  == Copyright ==
16
  Copyright 2017 Cozmoslabs (www.cozmoslabs.com)
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: 6.0.1
7
  Requires PHP: 5.6.20
8
- Stable tag: 2.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -140,6 +140,10 @@ For more information please check out our [documentation](https://translatepress
140
 
141
 
142
  == Changelog ==
 
 
 
 
143
  = 2.3.3 =
144
  * Fixed security vulnerability
145
 
5
  Requires at least: 3.1.0
6
  Tested up to: 6.0.1
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.3.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
140
 
141
 
142
  == Changelog ==
143
+ = 2.3.4 =
144
+ * Improved compatibility with WooCommerce Payments
145
+ * Fixed php notice about notification_id
146
+
147
  = 2.3.3 =
148
  * Fixed security vulnerability
149