Lingotek Translation - Version 1.4.16

Version Description

(2021-07-22) = * Fixed small whitespace bug

Download this release

Release Info

Developer sowmiya2021
Plugin Icon 128x128 Lingotek Translation
Version 1.4.16
Comparing to
See all releases

Code changes from version 1.4.14 to 1.4.16

CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ # Changelog
2
+ ## [1.4.16] - 2021-07-22
3
+ - Merging hotfix 1.4.16 branch
admin/manage/view-string-groups.php CHANGED
@@ -11,7 +11,7 @@ if ( 'disabled' == $profile['profile'] ) {
11
  '<div class="error" style="border-left: 4px solid #ffba00;"><p>%s</p></div>',
12
  sprintf(
13
  __( 'The strings translation is disabled in %1$sContent Type Configuration%2$s.', 'lingotek-translation' ),
14
- '<a href="' . admin_url( 'admin.php?page=lingotek-translation_settings&sm=content' ) . '">',
15
  '</a>'
16
  )
17
  );
11
  '<div class="error" style="border-left: 4px solid #ffba00;"><p>%s</p></div>',
12
  sprintf(
13
  __( 'The strings translation is disabled in %1$sContent Type Configuration%2$s.', 'lingotek-translation' ),
14
+ '<a href="' . admin_url( 'admin.php?page=lingotek-translation_manage&sm=content' ) . '">',
15
  '</a>'
16
  )
17
  );
here ADDED
File without changes
include/group-post.php CHANGED
@@ -367,14 +367,14 @@ class Lingotek_Group_Post extends Lingotek_Group {
367
  if ( $tr_id = PLL()->model->post->get( $this->source, $locale ) ) {
368
  $tr_post['ID'] = $tr_id;
369
 
370
- // copy or ignore metas
371
- self::copy_or_ignore_metas( $post->ID, $tr_id );
372
-
373
  // translate metas
374
  if ( isset( $translation['metas'] ) ) {
375
  self::copy_translated_metas( $translation['metas'], $tr_id );
376
  }
377
 
 
 
 
378
  wp_update_post( $tr_post );
379
  if ( $status !== 100 ) {
380
  $this->safe_translation_status_update( $locale, 'interim' );
@@ -421,14 +421,14 @@ class Lingotek_Group_Post extends Lingotek_Group {
421
  // assign terms and metas
422
  $GLOBALS['polylang']->sync->post_metas->copy( $this->source, $tr_id, $tr_lang->slug );
423
 
424
- // copy or ignore metas
425
- self::copy_or_ignore_metas( $post->ID, $tr_id );
426
-
427
  // translate metas
428
  if ( isset( $translation['metas'] ) ) {
429
  self::copy_translated_metas( $translation['metas'], $tr_id );
430
  }
431
 
 
 
 
432
  if ( class_exists( 'PLL_Share_Post_Slug', true ) && $content_type_options[ $post->post_type ]['fields']['post_name'] == 1 ) {
433
  wp_update_post(
434
  array(
367
  if ( $tr_id = PLL()->model->post->get( $this->source, $locale ) ) {
368
  $tr_post['ID'] = $tr_id;
369
 
 
 
 
370
  // translate metas
371
  if ( isset( $translation['metas'] ) ) {
372
  self::copy_translated_metas( $translation['metas'], $tr_id );
373
  }
374
 
375
+ // copy or ignore metas
376
+ self::copy_or_ignore_metas( $post->ID, $tr_id );
377
+
378
  wp_update_post( $tr_post );
379
  if ( $status !== 100 ) {
380
  $this->safe_translation_status_update( $locale, 'interim' );
421
  // assign terms and metas
422
  $GLOBALS['polylang']->sync->post_metas->copy( $this->source, $tr_id, $tr_lang->slug );
423
 
 
 
 
424
  // translate metas
425
  if ( isset( $translation['metas'] ) ) {
426
  self::copy_translated_metas( $translation['metas'], $tr_id );
427
  }
428
 
429
+ // copy or ignore metas
430
+ self::copy_or_ignore_metas( $post->ID, $tr_id );
431
+
432
  if ( class_exists( 'PLL_Share_Post_Slug', true ) && $content_type_options[ $post->post_type ]['fields']['post_name'] == 1 ) {
433
  wp_update_post(
434
  array(
include/logger.php CHANGED
@@ -23,7 +23,7 @@ class Lingotek_Logger {
23
  do_action( 'lingotek_log', $level, $message, $extra_data, $error );
24
  do_action( 'lingotek_log_' . $level, $message, $extra_data, $error );
25
  $prefs = Lingotek_Model::get_prefs();
26
- $logging = isset( $prefs['enable_lingotek_logs'] ) && '1' === $prefs['enable_lingotek_logs']['enabled'] ? true : false;
27
  $is_logging = $logging ? 'true' : 'false';
28
  if ( $logging ) {
29
  $serialized_extra_data = self::serialize_extra_data( $extra_data );
23
  do_action( 'lingotek_log', $level, $message, $extra_data, $error );
24
  do_action( 'lingotek_log_' . $level, $message, $extra_data, $error );
25
  $prefs = Lingotek_Model::get_prefs();
26
+ $logging = isset( $prefs['enable_lingotek_logs'] ) && is_array( $prefs['enable_lingotek_logs'] ) && '1' === $prefs['enable_lingotek_logs']['enabled'] ? true : false;
27
  $is_logging = $logging ? 'true' : 'false';
28
  if ( $logging ) {
29
  $serialized_extra_data = self::serialize_extra_data( $extra_data );
lingotek.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  Plugin name: Lingotek Translation
4
  Plugin URI: http://lingotek.com/wordpress#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wplingotektranslationplugin
5
- Version: 1.4.14
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
@@ -17,7 +17,7 @@ if ( ! function_exists( 'add_action' ) ) {
17
  }
18
 
19
  // Plugin version (should match above meta).
20
- define( 'LINGOTEK_VERSION', '1.4.14' );
21
  define( 'LINGOTEK_MIN_PLL_VERSION', '1.8' );
22
  // Plugin name as known by WordPress.
23
  define( 'LINGOTEK_BASENAME', plugin_basename( __FILE__ ) );
2
  /**
3
  Plugin name: Lingotek Translation
4
  Plugin URI: http://lingotek.com/wordpress#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wplingotektranslationplugin
5
+ Version: 1.4.16
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
17
  }
18
 
19
  // Plugin version (should match above meta).
20
+ define( 'LINGOTEK_VERSION', '1.4.16' );
21
  define( 'LINGOTEK_MIN_PLL_VERSION', '1.8' );
22
  // Plugin name as known by WordPress.
23
  define( 'LINGOTEK_BASENAME', plugin_basename( __FILE__ ) );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: chouby, smithworx, erichie, robertdhanna, ipoulsen, elliothanna, l
3
  Donate link: http://lingotek.com/
4
  Tags: automation, bilingual, international, language, Lingotek, localization, multilanguage, multilingual, translate, translation
5
  Requires at least: 3.8
6
- Tested up to: 5.7
7
- Stable tag: 1.4.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -122,6 +122,15 @@ For more, visit the [Lingotek documentation site](https://lingotek.atlassian.net
122
  5. The Lingotek Translation plugin provides the ability to Copy, Translate, and Ignore each specific custom field. Our plugin supports Wordpress custom fields and advanced custom fields.
123
 
124
  == Changelog ==
 
 
 
 
 
 
 
 
 
125
  = 1.4.14 (2021-07-07) =
126
  * Fixed WordPress: consume the download_interim_translation callback
127
 
3
  Donate link: http://lingotek.com/
4
  Tags: automation, bilingual, international, language, Lingotek, localization, multilanguage, multilingual, translate, translation
5
  Requires at least: 3.8
6
+ Tested up to: 5.8
7
+ Stable tag: 1.4.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
122
  5. The Lingotek Translation plugin provides the ability to Copy, Translate, and Ignore each specific custom field. Our plugin supports Wordpress custom fields and advanced custom fields.
123
 
124
  == Changelog ==
125
+ = 1.4.16 (2021-07-22) =
126
+ * Fixed small whitespace bug
127
+
128
+ = 1.4.15 (2021-07-20) =
129
+ * Ensure compatibility with WordPress 5.8
130
+ * WordPress: Warning when authenticating in new clean installation
131
+ * WordPress: When strings are not enabled, there's a link to set up content types and enable them, but it's broken
132
+ * WordPress - Components missing after translation
133
+
134
  = 1.4.14 (2021-07-07) =
135
  * Fixed WordPress: consume the download_interim_translation callback
136