Lingotek Translation - Version 1.3.4

Version Description

(2017-12-1) =

  • Updated URLs for redirection to the Lingotek Marketplace and Payment Portal
Download this release

Release Info

Developer erichie
Plugin Icon 128x128 Lingotek Translation
Version 1.3.4
Comparing to
See all releases

Code changes from version 1.3.3 to 1.3.4

admin/actions.php CHANGED
@@ -314,7 +314,7 @@ abstract class Lingotek_Actions {
314
  return self::display_icon( $document->translations[ $language->locale ], $link, ' target="_blank"' );
315
  }
316
  } else {
317
- $link = wp_nonce_url( add_query_arg( array( 'document_id' => $document->document_id, 'locale' => $language->locale, 'action' => 'lingotek-request', 'noheader' => true ), defined( 'DOING_AJAX' ) && DOING_AJAX ? wp_get_referer() : null ), 'lingotek-request' );
318
  self::link_to_settings_if_not_connected($link);
319
  return self::display_icon( 'request', $link );
320
  }
314
  return self::display_icon( $document->translations[ $language->locale ], $link, ' target="_blank"' );
315
  }
316
  } else {
317
+ $link = wp_nonce_url( add_query_arg( array( 'document_id' => $document->document_id, 'locale' => $language->locale, 'action' => 'lingotek-request', 'noheader' => true ), defined( 'DOING_AJAX' ) && DOING_AJAX ? wp_get_referer() : wp_get_referer() ), 'lingotek-request' );
318
  self::link_to_settings_if_not_connected($link);
319
  return self::display_icon( 'request', $link );
320
  }
admin/settings/view-account.php CHANGED
@@ -128,7 +128,7 @@ if ( ! $community_id ) {
128
  wp_enqueue_script( 'lingotek_professional_workflow_account', LINGOTEK_URL . '/js/workflow/professional-workflow-account.js' );
129
  $vars = array(
130
  'modal_id' => 'payment-portal-screen',
131
- 'bridge_payment' => BRIDGE_URL . '/#/billing/payment'
132
  );
133
  wp_localize_script( 'lingotek_professional_workflow_account', 'account_vars', $vars );
134
  wp_enqueue_style( 'lingotek_professional_workflow_style', LINGOTEK_URL . '/css/workflow/professional-workflow-style.css', array(), LINGOTEK_VERSION );
@@ -156,7 +156,7 @@ if ( ! $community_id ) {
156
  <div class='payment-method-setup last-four-digits-div'><span id='last-four-digits' class='payment-method-setup'><?php echo $cc; ?></span></div>
157
  <div class='payment-method-setup credit-card-image-div'><img id='credit-card-image' class='payment-method-setup' src="<?php echo Lingotek_Credit_Card_To_Path::get_cc_type_asset_url($cc_type) ?>"/></div>
158
  </div>
159
- <div style="height:37px; display:inline-block;padding-left: 10px;"><a id="professional-payment-info-link" href="<?php echo esc_url_raw( BRIDGE_URL ); ?>/#/billing/payment?redirect_url=<?php echo urlencode( home_url( add_query_arg( NULL, NULL ) ) ); ?>" style="display: table-cell;padding-top: 7%;"><?php echo ($payment_method_set) ? 'Edit Payment Method' : 'Set Up Payment Method'; ?></a></div>
160
  </td>
161
  </tr>
162
  </table>
128
  wp_enqueue_script( 'lingotek_professional_workflow_account', LINGOTEK_URL . '/js/workflow/professional-workflow-account.js' );
129
  $vars = array(
130
  'modal_id' => 'payment-portal-screen',
131
+ 'bridge_payment' => BRIDGE_URL . '/#/payment/portal'
132
  );
133
  wp_localize_script( 'lingotek_professional_workflow_account', 'account_vars', $vars );
134
  wp_enqueue_style( 'lingotek_professional_workflow_style', LINGOTEK_URL . '/css/workflow/professional-workflow-style.css', array(), LINGOTEK_VERSION );
156
  <div class='payment-method-setup last-four-digits-div'><span id='last-four-digits' class='payment-method-setup'><?php echo $cc; ?></span></div>
157
  <div class='payment-method-setup credit-card-image-div'><img id='credit-card-image' class='payment-method-setup' src="<?php echo Lingotek_Credit_Card_To_Path::get_cc_type_asset_url($cc_type) ?>"/></div>
158
  </div>
159
+ <div style="height:37px; display:inline-block;padding-left: 10px;"><a id="professional-payment-info-link" href="<?php echo esc_url_raw( BRIDGE_URL ); ?>/#/payment/portal?redirect_url=<?php echo urlencode( home_url( add_query_arg( NULL, NULL ) ) ); ?>" style="display: table-cell;padding-top: 7%;"><?php echo ($payment_method_set) ? 'Edit Payment Method' : 'Set Up Payment Method'; ?></a></div>
160
  </td>
161
  </tr>
162
  </table>
admin/workflows/professional-translation-workflow.php CHANGED
@@ -27,7 +27,7 @@ class Lingotek_Professional_Translation_Workflow extends Lingotek_Workflow {
27
 
28
  $vars = array(
29
  'workflow_id' => $this->workflow_id,
30
- 'bridge_payment' => BRIDGE_URL . '/#/billing/payment',
31
  'translation_icon' => LINGOTEK_URL . '/img/translation-logo.png',
32
  'loading_gif' => LINGOTEK_URL . '/img/loading.gif',
33
  'icon_url' => LINGOTEK_URL . '/img/lingotek-logo-white.png',
@@ -464,7 +464,7 @@ class Lingotek_Professional_Translation_Workflow extends Lingotek_Workflow {
464
  'workflow_id' => $this->workflow_id,
465
  'icon_url' => LINGOTEK_URL . '/img/lingotek-logo-white.png',
466
  'question_mark_icon_url' => LINGOTEK_URL . '/img/questionmark.svg',
467
- 'bridge_payment_redirect' => BRIDGE_URL . '/#/billing/payment',
468
  'enabled_langs' => $enabled_langs,
469
  'curr_item_type' => $type,
470
  'cc_type_map' => Lingotek_Credit_Card_To_Path::get_cc_map(),
27
 
28
  $vars = array(
29
  'workflow_id' => $this->workflow_id,
30
+ 'bridge_payment' => BRIDGE_URL . '/#/payment/portal',
31
  'translation_icon' => LINGOTEK_URL . '/img/translation-logo.png',
32
  'loading_gif' => LINGOTEK_URL . '/img/loading.gif',
33
  'icon_url' => LINGOTEK_URL . '/img/lingotek-logo-white.png',
464
  'workflow_id' => $this->workflow_id,
465
  'icon_url' => LINGOTEK_URL . '/img/lingotek-logo-white.png',
466
  'question_mark_icon_url' => LINGOTEK_URL . '/img/questionmark.svg',
467
+ 'bridge_payment_redirect' => BRIDGE_URL . '/#/payment/portal',
468
  'enabled_langs' => $enabled_langs,
469
  'curr_item_type' => $type,
470
  'cc_type_map' => Lingotek_Credit_Card_To_Path::get_cc_map(),
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.3.3
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
@@ -16,7 +16,7 @@ if ( ! function_exists( 'add_action' ) ) {
16
  exit();
17
  }
18
 
19
- define( 'LINGOTEK_VERSION', '1.3.3' ); // plugin version (should match above meta).
20
  define( 'LINGOTEK_MIN_PLL_VERSION', '1.8' );
21
  define( 'LINGOTEK_BASENAME', plugin_basename( __FILE__ ) ); // plugin name as known by WP.
22
  define( 'LINGOTEK_PLUGIN_SLUG', 'lingotek-translation' );// plugin slug (should match above meta: Text Domain).
@@ -25,7 +25,7 @@ define( 'LINGOTEK_INC', LINGOTEK_DIR . '/include' );
25
  define( 'LINGOTEK_ADMIN_INC', LINGOTEK_DIR . '/admin' );
26
  define( 'LINGOTEK_WORKFLOWS', LINGOTEK_ADMIN_INC . '/workflows' );
27
  define( 'LINGOTEK_URL', plugins_url( '', __FILE__ ) );
28
- define( 'BRIDGE_URL', 'https://inside.lingotek.com' );
29
 
30
  class Lingotek {
31
  /**
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.3.4
6
  Author: Lingotek and Frédéric Demarle
7
  Author uri: http://lingotek.com
8
  Description: Lingotek offers convenient cloud-based localization and translation.
16
  exit();
17
  }
18
 
19
+ define( 'LINGOTEK_VERSION', '1.3.4' ); // plugin version (should match above meta).
20
  define( 'LINGOTEK_MIN_PLL_VERSION', '1.8' );
21
  define( 'LINGOTEK_BASENAME', plugin_basename( __FILE__ ) ); // plugin name as known by WP.
22
  define( 'LINGOTEK_PLUGIN_SLUG', 'lingotek-translation' );// plugin slug (should match above meta: Text Domain).
25
  define( 'LINGOTEK_ADMIN_INC', LINGOTEK_DIR . '/admin' );
26
  define( 'LINGOTEK_WORKFLOWS', LINGOTEK_ADMIN_INC . '/workflows' );
27
  define( 'LINGOTEK_URL', plugins_url( '', __FILE__ ) );
28
+ define( 'BRIDGE_URL', 'https://marketplace.lingotek.com' );
29
 
30
  class Lingotek {
31
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: chouby, smithworx, erichie, robertdhanna
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: 4.8
7
- Stable tag: 1.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -122,6 +122,10 @@ For more, visit the [Lingotek documentation site](https://lingotek.atlassian.net
122
 
123
  == Changelog ==
124
 
 
 
 
 
125
  = 1.3.3 (2017-9-15) =
126
 
127
  * Fixed issue that prevented slugs from being translated
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: 4.9
7
+ Stable tag: 1.3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
122
 
123
  == Changelog ==
124
 
125
+ = 1.3.4 (2017-12-1) =
126
+
127
+ * Updated URLs for redirection to the Lingotek Marketplace and Payment Portal
128
+
129
  = 1.3.3 (2017-9-15) =
130
 
131
  * Fixed issue that prevented slugs from being translated