Version Description
- Improvement: encoding of
yoast_wpseo_metadesc
andyoast_wpseo_focuskw
is changed to '{' to deal with imperfections of Yoast java script.
Download this release
Release Info
Developer | johnclause |
Plugin | Integration: Yoast SEO & qTranslate-X |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- qwpseo-admin.php +52 -3
- readme.txt +16 -9
- wordpress-seo-qtranslate-x.php +8 -6
qwpseo-admin.php
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
<?php
|
2 |
if(!defined('ABSPATH'))exit;
|
3 |
|
4 |
-
add_filter('qtranslate_load_admin_page_config','qwpseo_add_admin_page_config')
|
|
|
5 |
function qwpseo_add_admin_page_config($page_configs)
|
6 |
{
|
|
|
7 |
$page_config = array();
|
8 |
$page_config['pages'] = array( 'post.php' => '' );
|
9 |
//$page_config['anchors'] = array( 'titlediv' );
|
@@ -18,12 +20,59 @@ function qwpseo_add_admin_page_config($page_configs)
|
|
18 |
|
19 |
$fields[] = array( 'id' => 'yoast_wpseo_title' );
|
20 |
$fields[] = array( 'id' => 'yoast_wpseo_focuskw' );
|
21 |
-
$fields[] = array( 'id' => 'yoast_wpseo_metadesc' );
|
22 |
$fields[] = array( 'id' => 'wpseosnippet_title', 'encode' => 'display' );
|
23 |
|
24 |
$page_config['forms'][] = $f;
|
25 |
$page_configs[] = $page_config;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
return $page_configs;
|
28 |
}
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
if(!defined('ABSPATH'))exit;
|
3 |
|
4 |
+
add_filter('qtranslate_load_admin_page_config','qwpseo_add_admin_page_config');//obsolete
|
5 |
+
//add_filter('i18n_admin_config','qwpseo_add_admin_page_config');// should be used instead
|
6 |
function qwpseo_add_admin_page_config($page_configs)
|
7 |
{
|
8 |
+
{
|
9 |
$page_config = array();
|
10 |
$page_config['pages'] = array( 'post.php' => '' );
|
11 |
//$page_config['anchors'] = array( 'titlediv' );
|
20 |
|
21 |
$fields[] = array( 'id' => 'yoast_wpseo_title' );
|
22 |
$fields[] = array( 'id' => 'yoast_wpseo_focuskw' );
|
23 |
+
$fields[] = array( 'id' => 'yoast_wpseo_metadesc', 'encode' => '{' );
|
24 |
$fields[] = array( 'id' => 'wpseosnippet_title', 'encode' => 'display' );
|
25 |
|
26 |
$page_config['forms'][] = $f;
|
27 |
$page_configs[] = $page_config;
|
28 |
+
}
|
29 |
+
|
30 |
+
{
|
31 |
+
$page_config = array();
|
32 |
+
$page_config['pages'] = array( 'edit-tags.php' => 'action=edit' );
|
33 |
+
//$page_config['anchors'] = array( 'titlediv' );
|
34 |
+
|
35 |
+
$page_config['forms'] = array();
|
36 |
+
|
37 |
+
$f = array();
|
38 |
+
$f['form'] = array( 'id' => 'edittag' );//identify the form which input fields described below belong to
|
39 |
+
|
40 |
+
$f['fields'] = array();
|
41 |
+
$fields = &$f['fields']; // shorthand
|
42 |
+
|
43 |
+
$fields[] = array( 'id' => 'wpseo_title' );
|
44 |
+
$fields[] = array( 'id' => 'wpseo_desc' );
|
45 |
+
$fields[] = array( 'id' => 'wpseo_canonical' );
|
46 |
+
|
47 |
+
$page_config['forms'][] = $f;
|
48 |
+
$page_configs[] = $page_config;
|
49 |
+
}
|
50 |
|
51 |
return $page_configs;
|
52 |
}
|
53 |
+
|
54 |
+
function qwpseo_admin_filters()
|
55 |
+
{
|
56 |
+
global $pagenow;
|
57 |
+
if($pagenow != 'edit.php') return;
|
58 |
+
//if( strpos($_SERVER['QUERY_STRING'],'post_type=post')===FALSE && strpos($_SERVER['QUERY_STRING'],'post_type=page')===FALSE) return;
|
59 |
+
add_filter( 'wpseo_title', 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage');
|
60 |
+
add_filter( 'wpseo_meta', 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage');
|
61 |
+
add_filter( 'wpseo_metadesc', 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage');
|
62 |
+
//focus keywords are still not translated
|
63 |
+
}
|
64 |
+
qwpseo_admin_filters();
|
65 |
+
|
66 |
+
/*
|
67 |
+
function qwpseo_manage_custom_column($column)
|
68 |
+
{
|
69 |
+
switch($column){
|
70 |
+
case 'SEO Title':
|
71 |
+
case 'Meta Desc.':
|
72 |
+
case 'Focus KW':
|
73 |
+
default: break;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
add_filter('manage_posts_custom_column', 'qwpseo_manage_custom_column');
|
77 |
+
add_filter('manage_pages_custom_column', 'qwpseo_manage_custom_column');
|
78 |
+
*/
|
readme.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
-
===
|
2 |
Developed by: qTranslate Team
|
3 |
Contributors: johnclause
|
4 |
-
Tags: multilingual, language, bilingual, i18n, l10n, multilanguage, translation,
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.0.
|
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
|
11 |
|
12 |
-
Enables multilingual framework for plugin "
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
Enables [qTranslate-X](https://wordpress.org/plugins/qtranslate-x/) multilingual framework for plugin [
|
17 |
|
18 |
-
At least version 3.
|
19 |
|
20 |
This plugin is currently a work in progress, please review the [Known Issues](https://wordpress.org/plugins/wp-seo-qtranslate-x/other_notes/) and report the features, which did not work for you.
|
21 |
|
@@ -31,7 +31,7 @@ Plugin does not have any configuration options, and no screenshots needed.
|
|
31 |
|
32 |
= How do I open a page with configuration options? =
|
33 |
|
34 |
-
Plugin does not have any configuration options, simply activate it and it will enable the translation of relevant fields for
|
35 |
|
36 |
== Upgrade Notice ==
|
37 |
|
@@ -39,9 +39,16 @@ No need for Upgrade Notice.
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
= 1.0 =
|
43 |
* Initial release
|
44 |
|
45 |
== Known Issues ==
|
46 |
|
47 |
-
*
|
|
1 |
+
=== Yoast SEO & qTranslate-X ===
|
2 |
Developed by: qTranslate Team
|
3 |
Contributors: johnclause
|
4 |
+
Tags: multilingual, language, bilingual, i18n, l10n, multilanguage, translation, Yoast SEO
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 1.0.2
|
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
|
11 |
|
12 |
+
Enables multilingual framework for plugin "Yoast SEO".
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
Enables [qTranslate-X](https://wordpress.org/plugins/qtranslate-x/) multilingual framework for plugin [Yoast SEO](https://wordpress.org/plugins/wordpress-seo/).
|
17 |
|
18 |
+
At least version 3.4 of [qTranslate-X](https://wordpress.org/plugins/qtranslate-x/) is required.
|
19 |
|
20 |
This plugin is currently a work in progress, please review the [Known Issues](https://wordpress.org/plugins/wp-seo-qtranslate-x/other_notes/) and report the features, which did not work for you.
|
21 |
|
31 |
|
32 |
= How do I open a page with configuration options? =
|
33 |
|
34 |
+
Plugin does not have any configuration options, simply activate it and it will enable the translation of relevant fields for Yoast SEO back- and front-end.
|
35 |
|
36 |
== Upgrade Notice ==
|
37 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 1.0.2 =
|
43 |
+
* Improvement: encoding of `yoast_wpseo_metadesc` and `yoast_wpseo_focuskw` is changed to '{' to deal with imperfections of Yoast java script.
|
44 |
+
|
45 |
+
= 1.0.1 =
|
46 |
+
* Improvement: added multilingual fields on `edit-tags.php` page.
|
47 |
+
|
48 |
= 1.0 =
|
49 |
* Initial release
|
50 |
|
51 |
== Known Issues ==
|
52 |
|
53 |
+
* Yoast SEO Page Analysis does not work correctly.
|
54 |
+
* [Resolved in plugin version 1.0.2 under qTranslate-X 3.4.4] Field 'Meta description' is not coming back correctly after saving. In some configurations it works though. The nature of conflict is not yet known. You would need to keep this field empty, if you are affected.
|
wordpress-seo-qtranslate-x.php
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name:
|
4 |
-
* Plugin URI: https://wordpress.org/plugins/
|
5 |
-
* Description: Enables multilingual framework for plugin "
|
6 |
-
* Version: 1.0
|
7 |
* Author: qTranslate Team
|
8 |
* Author URI: http://qtranslatexteam.wordpress.com/about
|
9 |
* License: GPL2
|
10 |
-
* Tags: multilingual, multi, language, translation, qTranslate-X,
|
11 |
* Author e-mail: qTranslateTeam@gmail.com
|
|
|
|
|
12 |
*/
|
13 |
if(!defined('ABSPATH'))exit;
|
14 |
|
15 |
-
define('QWPSEO_VERSION','1.0');
|
16 |
|
17 |
function qwpseo_init_language($url_info)
|
18 |
{
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Yoast SEO & qTranslate-X
|
4 |
+
* Plugin URI: https://wordpress.org/plugins/wp-seo-qtranslate-x/
|
5 |
+
* Description: Enables multilingual framework for plugin "Yoast SEO".
|
6 |
+
* Version: 1.0.2
|
7 |
* Author: qTranslate Team
|
8 |
* Author URI: http://qtranslatexteam.wordpress.com/about
|
9 |
* License: GPL2
|
10 |
+
* Tags: multilingual, multi, language, translation, qTranslate-X, Yoast SEO
|
11 |
* Author e-mail: qTranslateTeam@gmail.com
|
12 |
+
* GitHub Plugin URI: https://github.com/qTranslate-Team/wp-seo-qtranslate-x/
|
13 |
+
* GitHub Branch: master
|
14 |
*/
|
15 |
if(!defined('ABSPATH'))exit;
|
16 |
|
17 |
+
define('QWPSEO_VERSION','1.0.2');
|
18 |
|
19 |
function qwpseo_init_language($url_info)
|
20 |
{
|