Version Description
Download this release
Release Info
Developer | johnclause |
Plugin | qTranslate X |
Version | 3.4.6.6 |
Comparing to | |
See all releases |
Code changes from version 3.4.6.5 to 3.4.6.6
- admin/qtx_admin.php +7 -5
- admin/qtx_admin_utils.php +3 -0
- qtranslate.php +2 -2
- qtranslate_core.php +1 -0
- readme.txt +8 -1
admin/qtx_admin.php
CHANGED
@@ -119,18 +119,20 @@ function qtranxf_collect_translations_posted() {
|
|
119 |
//multilingual slug/term values will be processed later
|
120 |
if(!$edit_lang) $edit_lang = qtranxf_getLanguageEdit();
|
121 |
global $q_config;
|
122 |
-
$default_language = $q_config['default_language'];
|
123 |
$default_lang = qtranxf_getLanguage();
|
124 |
qtranxf_regroup_translations_for('qtranslate-terms', $edit_lang, $default_lang);
|
125 |
qtranxf_regroup_translations_for('qtranslate-slugs', $edit_lang, $default_lang);
|
126 |
}
|
|
|
|
|
127 |
|
|
|
128 |
//quick fix, there must be a better way
|
129 |
-
if
|
130 |
-
$r = qtranxf_decode_json_name_value(
|
131 |
//qtranxf_dbg_log('qtranxf_collect_translations_posted: $r: ', $r);
|
132 |
if(!empty($r['qtranslate-fields'])){
|
133 |
-
|
134 |
qtranxf_collect_translations($r['qtranslate-fields'],$r,$edit_lang);
|
135 |
unset($r['qtranslate-fields']);
|
136 |
//qtranxf_dbg_log('qtranxf_collect_translations_posted: collected $r: ', $r);
|
@@ -142,7 +144,7 @@ function qtranxf_collect_translations_posted() {
|
|
142 |
}
|
143 |
}
|
144 |
}
|
145 |
-
add_action('
|
146 |
|
147 |
function qtranxf_admin_load()
|
148 |
{
|
119 |
//multilingual slug/term values will be processed later
|
120 |
if(!$edit_lang) $edit_lang = qtranxf_getLanguageEdit();
|
121 |
global $q_config;
|
|
|
122 |
$default_lang = qtranxf_getLanguage();
|
123 |
qtranxf_regroup_translations_for('qtranslate-terms', $edit_lang, $default_lang);
|
124 |
qtranxf_regroup_translations_for('qtranslate-slugs', $edit_lang, $default_lang);
|
125 |
}
|
126 |
+
}
|
127 |
+
add_action('plugins_loaded', 'qtranxf_collect_translations_posted', 5);
|
128 |
|
129 |
+
function qtranxf_decode_translations_posted(){
|
130 |
//quick fix, there must be a better way
|
131 |
+
if(isset($_POST['nav-menu-data'])){
|
132 |
+
$r = qtranxf_decode_json_name_value($_POST['nav-menu-data']);
|
133 |
//qtranxf_dbg_log('qtranxf_collect_translations_posted: $r: ', $r);
|
134 |
if(!empty($r['qtranslate-fields'])){
|
135 |
+
$edit_lang = qtranxf_getLanguageEdit();
|
136 |
qtranxf_collect_translations($r['qtranslate-fields'],$r,$edit_lang);
|
137 |
unset($r['qtranslate-fields']);
|
138 |
//qtranxf_dbg_log('qtranxf_collect_translations_posted: collected $r: ', $r);
|
144 |
}
|
145 |
}
|
146 |
}
|
147 |
+
add_action('sanitize_comment_cookies', 'qtranxf_decode_translations_posted', 5);//after POST & GET are set, and before all WP objects are created, alternatively can use action 'setup_theme' instead.
|
148 |
|
149 |
function qtranxf_admin_load()
|
150 |
{
|
admin/qtx_admin_utils.php
CHANGED
@@ -636,6 +636,9 @@ function qtranxf_admin_category_description($text) {
|
|
636 |
add_filter('category_description', 'qtranxf_admin_category_description',0);
|
637 |
|
638 |
function qtranxf_admin_the_title($title) {
|
|
|
|
|
|
|
639 |
global $pagenow;
|
640 |
switch($pagenow){
|
641 |
//case 'term.php':
|
636 |
add_filter('category_description', 'qtranxf_admin_category_description',0);
|
637 |
|
638 |
function qtranxf_admin_the_title($title) {
|
639 |
+
//todo this filter should not be used in admin area at all?
|
640 |
+
if(defined('DOING_AJAX') && DOING_AJAX)//nav-menus.php#752
|
641 |
+
return $title;
|
642 |
global $pagenow;
|
643 |
switch($pagenow){
|
644 |
//case 'term.php':
|
qtranslate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: qTranslate-X
|
4 |
Plugin URI: http://wordpress.org/plugins/qtranslate-x/
|
5 |
Description: Adds user-friendly and database-friendly multilingual content support.
|
6 |
-
Version: 3.4.6.
|
7 |
Author: qTranslate Team
|
8 |
Author URI: http://qtranslatexteam.wordpress.com/about
|
9 |
Tags: multilingual, multi, language, admin, tinymce, Polyglot, bilingual, widget, switcher, professional, human, translation, service, qTranslate, zTranslate, mqTranslate, qTranslate Plus, WPML
|
@@ -121,7 +121,7 @@ if ( ! function_exists( 'add_filter' ) ) {
|
|
121 |
* Designed as interface for other plugin integration. The documentation is available at
|
122 |
* https://qtranslatexteam.wordpress.com/integration/
|
123 |
*/
|
124 |
-
define('QTX_VERSION','3.4.6.
|
125 |
|
126 |
if ( ! defined( 'QTRANSLATE_FILE' ) ) {
|
127 |
define( 'QTRANSLATE_FILE', __FILE__ );
|
3 |
Plugin Name: qTranslate-X
|
4 |
Plugin URI: http://wordpress.org/plugins/qtranslate-x/
|
5 |
Description: Adds user-friendly and database-friendly multilingual content support.
|
6 |
+
Version: 3.4.6.6
|
7 |
Author: qTranslate Team
|
8 |
Author URI: http://qtranslatexteam.wordpress.com/about
|
9 |
Tags: multilingual, multi, language, admin, tinymce, Polyglot, bilingual, widget, switcher, professional, human, translation, service, qTranslate, zTranslate, mqTranslate, qTranslate Plus, WPML
|
121 |
* Designed as interface for other plugin integration. The documentation is available at
|
122 |
* https://qtranslatexteam.wordpress.com/integration/
|
123 |
*/
|
124 |
+
define('QTX_VERSION','3.4.6.6');
|
125 |
|
126 |
if ( ! defined( 'QTRANSLATE_FILE' ) ) {
|
127 |
define( 'QTRANSLATE_FILE', __FILE__ );
|
qtranslate_core.php
CHANGED
@@ -1397,6 +1397,7 @@ function qtranxf_use($lang, $text, $show_available=false, $show_empty=false) {
|
|
1397 |
|
1398 |
if( is_object($text) || $text instanceof __PHP_Incomplete_Class ) {//since 3.2-b1 instead of @get_class($text) == '__PHP_Incomplete_Class'
|
1399 |
foreach(get_object_vars($text) as $key => $t) {
|
|
|
1400 |
$text->$key = qtranxf_use($lang,$text->$key,$show_available,$show_empty);
|
1401 |
}
|
1402 |
return $text;
|
1397 |
|
1398 |
if( is_object($text) || $text instanceof __PHP_Incomplete_Class ) {//since 3.2-b1 instead of @get_class($text) == '__PHP_Incomplete_Class'
|
1399 |
foreach(get_object_vars($text) as $key => $t) {
|
1400 |
+
if(!isset($text->$key)) continue;
|
1401 |
$text->$key = qtranxf_use($lang,$text->$key,$show_available,$show_empty);
|
1402 |
}
|
1403 |
return $text;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: johnclause, chineseleper, Vavooon, grafcom
|
|
4 |
Tags: multilingual, language, admin, tinymce, bilingual, widget, switcher, i18n, l10n, multilanguage, translation
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 3.4.6.
|
8 |
License: GPLv3 or later
|
9 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QEXEK3HX8AR6U
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -97,6 +97,9 @@ Developers: please drop new topics here, the text will be moved to [qTranslate-X
|
|
97 |
|
98 |
## Upgrade Notice ##
|
99 |
|
|
|
|
|
|
|
100 |
### 3.4.6.5 ###
|
101 |
Compatibility issues with WP 4.5
|
102 |
|
@@ -118,6 +121,10 @@ This version recovers translation of parent of a category on category edit page.
|
|
118 |
|
119 |
## Changelog ##
|
120 |
|
|
|
|
|
|
|
|
|
121 |
### 3.4.6.5 ###
|
122 |
* Improvement: Option 'Show language names in "Camel Case"' has been added on Settings/Languages page `/wp-admin/options-general.php?page=qtranslate-x#general` in order to handle absence of function `mb_convert_case`, as PHP module `mbstring` may not be installed by default: [WP Topic](https://wordpress.org/support/topic/qtranslate_utilsphp-on-line-504).
|
123 |
* Enhancement: added preset for Welsh (Cymraeg, 'cy') language.
|
4 |
Tags: multilingual, language, admin, tinymce, bilingual, widget, switcher, i18n, l10n, multilanguage, translation
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 3.4.6.6
|
8 |
License: GPLv3 or later
|
9 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QEXEK3HX8AR6U
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
97 |
|
98 |
## Upgrade Notice ##
|
99 |
|
100 |
+
### 3.4.6.6 ###
|
101 |
+
More of compatibility issues with WP 4.5
|
102 |
+
|
103 |
### 3.4.6.5 ###
|
104 |
Compatibility issues with WP 4.5
|
105 |
|
121 |
|
122 |
## Changelog ##
|
123 |
|
124 |
+
### 3.4.6.6 ###
|
125 |
+
* Fix: WP45, '/wp-admin/nav-menus.php': title of newly added menu item kept one language only.
|
126 |
+
* Fix: WP45, '/wp-admin/nav-menus.php': double quotation mark in menu label.
|
127 |
+
|
128 |
### 3.4.6.5 ###
|
129 |
* Improvement: Option 'Show language names in "Camel Case"' has been added on Settings/Languages page `/wp-admin/options-general.php?page=qtranslate-x#general` in order to handle absence of function `mb_convert_case`, as PHP module `mbstring` may not be installed by default: [WP Topic](https://wordpress.org/support/topic/qtranslate_utilsphp-on-line-504).
|
130 |
* Enhancement: added preset for Welsh (Cymraeg, 'cy') language.
|