Version Description
Download this release
Release Info
Developer | Narinder singh |
Plugin | Automatic Translate Addon For Loco Translate |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
automatic-translator-addon-for-loco-translate.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name:Automatic Translate Addon For Loco Translate
|
4 |
Description:Auto language translator add-on for Loco Translate official plugin version 2.4.0 to translate plugins and themes translation files into any language via fully automatic machine translations via Yandex Translate Widget.
|
5 |
-
Version:2.1.
|
6 |
License:GPL2
|
7 |
Text Domain:automatic-translator-addon-for-loco-translate
|
8 |
Domain Path:languages
|
@@ -14,7 +14,7 @@ use LocoAutoTranslateAddon\Helpers\Helpers;
|
|
14 |
use LocoAutoTranslateAddon\Helpers\Atlt_downloader;
|
15 |
/**
|
16 |
* @package Loco Automatic Translate Addon
|
17 |
-
* @version 2.1.
|
18 |
*/
|
19 |
if (!defined('ABSPATH')) {
|
20 |
die('WordPress Environment Not Found!');
|
@@ -23,7 +23,7 @@ if (!defined('ABSPATH')) {
|
|
23 |
define('ATLT_FILE', __FILE__);
|
24 |
define('ATLT_URL', plugin_dir_url(ATLT_FILE));
|
25 |
define('ATLT_PATH', plugin_dir_path(ATLT_FILE));
|
26 |
-
define('ATLT_VERSION', '2.1.
|
27 |
|
28 |
class LocoAutoTranslate
|
29 |
{
|
@@ -254,7 +254,7 @@ class LocoAutoTranslate
|
|
254 |
$key=Helpers::getLicenseKey();
|
255 |
if(Helpers::validKey( $key)){
|
256 |
wp_register_script( 'loco-addon-custom', ATLT_PRO_URL.'assets/js/custom.min.js',
|
257 |
-
array('loco-translate-
|
258 |
wp_enqueue_script('loco-addon-custom');
|
259 |
wp_register_style('loco-addon-custom-css', ATLT_PRO_URL.'assets/css/custom.min.css',null,
|
260 |
ATLT_PRO_VERSION,'all');
|
@@ -262,19 +262,19 @@ class LocoAutoTranslate
|
|
262 |
}
|
263 |
|
264 |
}else{
|
265 |
-
wp_register_script( 'loco-addon-custom', ATLT_URL.'assets/js/custom.js', array('loco-translate-
|
266 |
wp_enqueue_script('loco-addon-custom');
|
267 |
wp_register_style('loco-addon-custom-css', ATLT_URL.'assets/css/custom.min.css',null,
|
268 |
ATLT_VERSION,'all');
|
269 |
}
|
270 |
|
271 |
|
272 |
-
wp_register_script( 'loco-addon-custom', ATLT_URL.'assets/js/custom.min.js', array('loco-translate-
|
273 |
wp_enqueue_script('loco-addon-custom');
|
274 |
wp_register_style('loco-addon-custom-css', ATLT_URL.'assets/css/custom.min.css',null,
|
275 |
ATLT_VERSION,'all');
|
276 |
// load yandex widget
|
277 |
-
wp_register_script( 'atlt-yandex-widget', ATLT_URL.'assets/js/widget.js?widgetId=ytWidget&pageLang=en&widgetTheme=light&autoMode=false',array('loco-translate-
|
278 |
wp_enqueue_script('atlt-yandex-widget');
|
279 |
wp_enqueue_style('loco-addon-custom-css');
|
280 |
|
@@ -287,7 +287,7 @@ class LocoAutoTranslate
|
|
287 |
|
288 |
wp_localize_script('loco-addon-custom', 'extradata', $extraData);
|
289 |
// copy object
|
290 |
-
wp_add_inline_script( 'loco-translate-
|
291 |
var returnedTarget = JSON.parse(JSON.stringify(window.loco));
|
292 |
window.locoConf=returnedTarget;' );
|
293 |
}
|
2 |
/*
|
3 |
Plugin Name:Automatic Translate Addon For Loco Translate
|
4 |
Description:Auto language translator add-on for Loco Translate official plugin version 2.4.0 to translate plugins and themes translation files into any language via fully automatic machine translations via Yandex Translate Widget.
|
5 |
+
Version:2.1.2
|
6 |
License:GPL2
|
7 |
Text Domain:automatic-translator-addon-for-loco-translate
|
8 |
Domain Path:languages
|
14 |
use LocoAutoTranslateAddon\Helpers\Atlt_downloader;
|
15 |
/**
|
16 |
* @package Loco Automatic Translate Addon
|
17 |
+
* @version 2.1.2
|
18 |
*/
|
19 |
if (!defined('ABSPATH')) {
|
20 |
die('WordPress Environment Not Found!');
|
23 |
define('ATLT_FILE', __FILE__);
|
24 |
define('ATLT_URL', plugin_dir_url(ATLT_FILE));
|
25 |
define('ATLT_PATH', plugin_dir_path(ATLT_FILE));
|
26 |
+
define('ATLT_VERSION', '2.1.2');
|
27 |
|
28 |
class LocoAutoTranslate
|
29 |
{
|
254 |
$key=Helpers::getLicenseKey();
|
255 |
if(Helpers::validKey( $key)){
|
256 |
wp_register_script( 'loco-addon-custom', ATLT_PRO_URL.'assets/js/custom.min.js',
|
257 |
+
array('loco-translate-admin'),ATLT_PRO_VERSION, true);
|
258 |
wp_enqueue_script('loco-addon-custom');
|
259 |
wp_register_style('loco-addon-custom-css', ATLT_PRO_URL.'assets/css/custom.min.css',null,
|
260 |
ATLT_PRO_VERSION,'all');
|
262 |
}
|
263 |
|
264 |
}else{
|
265 |
+
wp_register_script( 'loco-addon-custom', ATLT_URL.'assets/js/custom.js', array('loco-translate-admin'),ATLT_VERSION, true);
|
266 |
wp_enqueue_script('loco-addon-custom');
|
267 |
wp_register_style('loco-addon-custom-css', ATLT_URL.'assets/css/custom.min.css',null,
|
268 |
ATLT_VERSION,'all');
|
269 |
}
|
270 |
|
271 |
|
272 |
+
wp_register_script( 'loco-addon-custom', ATLT_URL.'assets/js/custom.min.js', array('loco-translate-admin'),ATLT_VERSION, true);
|
273 |
wp_enqueue_script('loco-addon-custom');
|
274 |
wp_register_style('loco-addon-custom-css', ATLT_URL.'assets/css/custom.min.css',null,
|
275 |
ATLT_VERSION,'all');
|
276 |
// load yandex widget
|
277 |
+
wp_register_script( 'atlt-yandex-widget', ATLT_URL.'assets/js/widget.js?widgetId=ytWidget&pageLang=en&widgetTheme=light&autoMode=false',array('loco-translate-admin'),ATLT_VERSION, true);
|
278 |
wp_enqueue_script('atlt-yandex-widget');
|
279 |
wp_enqueue_style('loco-addon-custom-css');
|
280 |
|
287 |
|
288 |
wp_localize_script('loco-addon-custom', 'extradata', $extraData);
|
289 |
// copy object
|
290 |
+
wp_add_inline_script( 'loco-translate-admin', '
|
291 |
var returnedTarget = JSON.parse(JSON.stringify(window.loco));
|
292 |
window.locoConf=returnedTarget;' );
|
293 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: narinder-singh, satindersingh
|
|
3 |
Donate link: https://paypal.me/CoolPlugins/10USD/
|
4 |
Tags: translate, translation, translator, localization, language, translations, loco, loco translate, loco addon, google translate, deepl
|
5 |
Requires at least: 4.5
|
6 |
-
Tested up to: 5.5.
|
7 |
Requires PHP: 5.6
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
@@ -13,7 +13,7 @@ Automatic language translator add-on for Loco Translate official plugin to trans
|
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
> **Important Notice:-** This plugin works as an auto-translate addon for Loco Translate official plugin latest version(2.4.
|
17 |
|
18 |
### 🐦 Automatic Machine Translator Addon For Loco
|
19 |
|
@@ -134,6 +134,10 @@ There is no limit. Yes, you can translate unlimited characters without any API k
|
|
134 |
5. Premium License Pricing
|
135 |
|
136 |
== Changelog ==
|
|
|
|
|
|
|
|
|
137 |
<strong>Version 2.1.1 | 27 OCT 2020</strong>
|
138 |
<pre>
|
139 |
Fixed: Compatibility issues with Loco Translate 2.4.4
|
3 |
Donate link: https://paypal.me/CoolPlugins/10USD/
|
4 |
Tags: translate, translation, translator, localization, language, translations, loco, loco translate, loco addon, google translate, deepl
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 5.5.3
|
7 |
Requires PHP: 5.6
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
> **Important Notice:-** This plugin works as an auto-translate addon for Loco Translate official plugin latest version(2.4.6 or higher).
|
17 |
|
18 |
### 🐦 Automatic Machine Translator Addon For Loco
|
19 |
|
134 |
5. Premium License Pricing
|
135 |
|
136 |
== Changelog ==
|
137 |
+
<strong>Version 2.1.2 | 21 NOV 2020</strong>
|
138 |
+
<pre>
|
139 |
+
Fixed: Compatibility issues with Loco Translate 2.4.6
|
140 |
+
</pre>
|
141 |
<strong>Version 2.1.1 | 27 OCT 2020</strong>
|
142 |
<pre>
|
143 |
Fixed: Compatibility issues with Loco Translate 2.4.4
|