Version Description
- Extra css for the floater images so they don't brake the line in certain themes
- Fixed compatibility issue with Woocommerce cart widget
- Fix: use the siteurl when the homeurl is empty to detect the language
Download this release
Release Info
| Developer | madalin.ungureanu |
| Plugin | |
| Version | 1.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.0 to 1.2.1
- assets/css/trp-floater-language-switcher.css +3 -0
- assets/js/trp-language-switcher.js +2 -0
- class-translate-press.php +1 -1
- includes/class-url-converter.php +4 -0
- index.php +1 -1
- readme.txt +7 -2
assets/css/trp-floater-language-switcher.css
CHANGED
|
@@ -80,6 +80,9 @@
|
|
| 80 |
margin-right: 5px;
|
| 81 |
margin-top: -1px;
|
| 82 |
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
#trp-floater-ls a {
|
| 80 |
margin-right: 5px;
|
| 81 |
margin-top: -1px;
|
| 82 |
vertical-align: middle;
|
| 83 |
+
height: auto;
|
| 84 |
+
max-width: 100%;
|
| 85 |
+
display: inline;
|
| 86 |
}
|
| 87 |
|
| 88 |
#trp-floater-ls a {
|
assets/js/trp-language-switcher.js
CHANGED
|
@@ -11,6 +11,8 @@ function trp_change_language( select ){
|
|
| 11 |
|
| 12 |
jQuery( document ).ready( function( ) {
|
| 13 |
|
|
|
|
|
|
|
| 14 |
// Run this code only if flags are enabled in shortcode language switcher
|
| 15 |
if( trp_language_switcher_data.shortcode_ls_flags ) {
|
| 16 |
jQuery.widget( 'trp.iconselectmenu', jQuery.ui.selectmenu, {
|
| 11 |
|
| 12 |
jQuery( document ).ready( function( ) {
|
| 13 |
|
| 14 |
+
sessionStorage.removeItem('wc_fragments');
|
| 15 |
+
|
| 16 |
// Run this code only if flags are enabled in shortcode language switcher
|
| 17 |
if( trp_language_switcher_data.shortcode_ls_flags ) {
|
| 18 |
jQuery.widget( 'trp.iconselectmenu', jQuery.ui.selectmenu, {
|
class-translate-press.php
CHANGED
|
@@ -39,7 +39,7 @@ class TRP_Translate_Press{
|
|
| 39 |
define( 'TRP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
| 40 |
define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 41 |
define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
|
| 42 |
-
define( 'TRP_PLUGIN_VERSION', '1.2.
|
| 43 |
|
| 44 |
$this->load_dependencies();
|
| 45 |
$this->initialize_components();
|
| 39 |
define( 'TRP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
| 40 |
define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 41 |
define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
|
| 42 |
+
define( 'TRP_PLUGIN_VERSION', '1.2.1' );
|
| 43 |
|
| 44 |
$this->load_dependencies();
|
| 45 |
$this->initialize_components();
|
includes/class-url-converter.php
CHANGED
|
@@ -298,6 +298,10 @@ class TRP_Url_Converter {
|
|
| 298 |
LIMIT 1" ) )
|
| 299 |
);
|
| 300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
return $this->absolute_home;
|
| 302 |
}
|
| 303 |
|
| 298 |
LIMIT 1" ) )
|
| 299 |
);
|
| 300 |
|
| 301 |
+
if( empty($this->absolute_home) ){
|
| 302 |
+
$this->absolute_home = get_option("siteurl");
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
return $this->absolute_home;
|
| 306 |
}
|
| 307 |
|
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, with full support for WooCommerce and site builders.
|
| 6 |
-
Version: 1.2.
|
| 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, with full support for WooCommerce and site builders.
|
| 6 |
+
Version: 1.2.1
|
| 7 |
Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
|
| 8 |
Author URI: https://cozmoslabs.com/
|
| 9 |
Text Domain: translatepress-multilingual
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: cozmoslabs, razvan.mo, madalin.ungureanu, cristophor
|
|
| 3 |
Donate link: https://www.cozmoslabs.com/
|
| 4 |
Tags: translate, translation, multilingual, automatic translation, bilingual, front-end translation, google translate, language
|
| 5 |
Requires at least: 3.1.0
|
| 6 |
-
Tested up to: 4.9.
|
| 7 |
-
Stable tag: 1.2.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -115,6 +115,11 @@ For more information please check out [TranslatePress documentation](https://tra
|
|
| 115 |
6. Menu Language Switcher
|
| 116 |
|
| 117 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
= 1.2.0 =
|
| 119 |
* Fix wptexturize changing characters in secondary languages
|
| 120 |
* Mini refactoring of the url_is_file() function
|
| 3 |
Donate link: https://www.cozmoslabs.com/
|
| 4 |
Tags: translate, translation, multilingual, automatic translation, bilingual, front-end translation, google translate, language
|
| 5 |
Requires at least: 3.1.0
|
| 6 |
+
Tested up to: 4.9.5
|
| 7 |
+
Stable tag: 1.2.1
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 115 |
6. Menu Language Switcher
|
| 116 |
|
| 117 |
== Changelog ==
|
| 118 |
+
= 1.2.1 =
|
| 119 |
+
* Extra css for the floater images so they don't brake the line in certain themes
|
| 120 |
+
* Fixed compatibility issue with Woocommerce cart widget
|
| 121 |
+
* Fix: use the siteurl when the homeurl is empty to detect the language
|
| 122 |
+
|
| 123 |
= 1.2.0 =
|
| 124 |
* Fix wptexturize changing characters in secondary languages
|
| 125 |
* Mini refactoring of the url_is_file() function
|
