Weglot Translate – Translate your WP website - Version 1.7.1

Version Description

  • Fix redirection bug on cart
Download this release

Release Info

Developer remyb92
Plugin Icon 128x128 Weglot Translate – Translate your WP website
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7 to 1.7.1

Files changed (2) hide show
  1. readme.txt +9 -2
  2. weglot.php +9 -4
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: remyb92
3
  Tags: translate,translation,language,multilingual,bilingual,international,localization,multilanguage,multi language,translations,translator,multilangues,traduction,traducteur,ubersetzung,mehrsprachig,traduccion,traduzione,vertaling,vertaler,meertalig
4
  Requires at least: 4.5
5
- Tested up to: 4.8
6
- Stable tag: 1.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -49,6 +49,10 @@ Weglot Translate plugin is translated in Dutch, English_UK, French, German, Ital
49
 
50
  Weglot Translate, go multilingual now.
51
 
 
 
 
 
52
  == Installation ==
53
 
54
  = Minimum Requirements for Weglot Translate =
@@ -143,6 +147,9 @@ See changelog for upgrade changes.
143
 
144
  == Changelog ==
145
 
 
 
 
146
  = 1.7 =
147
  * Add 6 languages
148
  * Translate microdata
2
  Contributors: remyb92
3
  Tags: translate,translation,language,multilingual,bilingual,international,localization,multilanguage,multi language,translations,translator,multilangues,traduction,traducteur,ubersetzung,mehrsprachig,traduccion,traduzione,vertaling,vertaler,meertalig
4
  Requires at least: 4.5
5
+ Tested up to: 4.9
6
+ Stable tag: 1.7.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
49
 
50
  Weglot Translate, go multilingual now.
51
 
52
+ = Help translate the plugin =
53
+
54
+ You can help translate Weglot Translate plugin on [__translate.wordpress.org__](https://translate.wordpress.org/projects/wp-plugins/weglot).
55
+
56
  == Installation ==
57
 
58
  = Minimum Requirements for Weglot Translate =
147
 
148
  == Changelog ==
149
 
150
+ = 1.7.1 =
151
+ * Fix redirection bug on cart
152
+
153
  = 1.7 =
154
  * Add 6 languages
155
  * Translate microdata
weglot.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Weglot
4
- * @version 1.7
5
  */
6
 
7
  /*
@@ -12,7 +12,7 @@ Author: Weglot Translate team
12
  Author URI: https://weglot.com/
13
  Text Domain: weglot
14
  Domain Path: /languages/
15
- Version: 1.7
16
  */
17
 
18
  /*
@@ -83,7 +83,7 @@ do_action( 'weg_fs_loaded' );
83
 
84
 
85
 
86
- define( 'WEGLOT_VERSION', '1.7' );
87
  define( 'WEGLOT_DIR', dirname( __FILE__ ) );
88
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
89
  define( 'WEGLOT_DIRURL', plugin_dir_url( __FILE__ ) );
@@ -301,7 +301,12 @@ class Weglot {
301
  }
302
 
303
  function filter_woocommerce_get_cart_url( $wc_get_page_permalink ) {
304
- return $this->replaceUrl($wc_get_page_permalink, $this->currentlang );
 
 
 
 
 
305
  }
306
 
307
  public function wg_switcher_creation() {
1
  <?php
2
  /**
3
  * @package Weglot
4
+ * @version 1.7.1
5
  */
6
 
7
  /*
12
  Author URI: https://weglot.com/
13
  Text Domain: weglot
14
  Domain Path: /languages/
15
+ Version: 1.7.1
16
  */
17
 
18
  /*
83
 
84
 
85
 
86
+ define( 'WEGLOT_VERSION', '1.7.1' );
87
  define( 'WEGLOT_DIR', dirname( __FILE__ ) );
88
  define( 'WEGLOT_BNAME', plugin_basename( __FILE__ ) );
89
  define( 'WEGLOT_DIRURL', plugin_dir_url( __FILE__ ) );
301
  }
302
 
303
  function filter_woocommerce_get_cart_url( $wc_get_page_permalink ) {
304
+ if($this->currentlang != $this->original_l) {
305
+ return $this->replaceUrl($wc_get_page_permalink, $this->currentlang);
306
+ }
307
+ else {
308
+ return $wc_get_page_permalink;
309
+ }
310
  }
311
 
312
  public function wg_switcher_creation() {