TranslatePress – Translate Multilingual sites - Version 2.0.6

Version Description

  • Added support for translating form reset button
  • Fixed custom flags getting resized
  • Fixed bug on Add-ons tab
Download this release

Release Info

Developer razvan.mo
Plugin Icon 128x128 TranslatePress – Translate Multilingual sites
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

class-translate-press.php CHANGED
@@ -58,7 +58,7 @@ class TRP_Translate_Press{
58
  define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
59
  define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
60
  define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
61
- define( 'TRP_PLUGIN_VERSION', '2.0.5' );
62
 
63
  wp_cache_add_non_persistent_groups(array('trp'));
64
 
58
  define( 'TRP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
59
  define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
60
  define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
61
+ define( 'TRP_PLUGIN_VERSION', '2.0.6' );
62
 
63
  wp_cache_add_non_persistent_groups(array('trp'));
64
 
includes/class-translation-render.php CHANGED
@@ -1407,7 +1407,7 @@ class TRP_Translation_Render{
1407
  'attribute' => true
1408
  ),
1409
  'submit' => array(
1410
- 'selector' => 'input[type=\'submit\'],input[type=\'button\']',
1411
  'accessor' => 'value',
1412
  'attribute' => true
1413
  ),
1407
  'attribute' => true
1408
  ),
1409
  'submit' => array(
1410
+ 'selector' => 'input[type=\'submit\'],input[type=\'button\'], input[type=\'reset\']',
1411
  'accessor' => 'value',
1412
  'attribute' => true
1413
  ),
includes/custom-language.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- add_image_size( 'trp-custom-language-flag', 16, 12 );
3
 
4
  // Register country flag size for use in Add Media modal
5
  add_filter( 'image_size_names_choose', 'trp_add_flag_sizes' );
@@ -19,7 +19,8 @@ function trpc_add_custom_language( $languages ) {
19
 
20
  foreach ( $option['custom_language']['cuslangname'] as $key => $value ) {
21
 
22
- $lang = $option["custom_language"]["cuslangiso"][ $key ];
 
23
  if ( array_key_exists( $lang, $languages ) ) {
24
  return $languages;
25
  }
@@ -29,10 +30,10 @@ function trpc_add_custom_language( $languages ) {
29
  $custom_language_native = $option["custom_language"]["cuslangnative"][ $key ];
30
 
31
  $languages[ $lang ] = array(
32
- 'language' => $lang,
33
- 'english_name' => $custom_language_name,
34
- 'native_name' => $custom_language_native,
35
- 'iso' => array( $custom_language_iso )
36
  );
37
 
38
  global $TRP_LANGUAGE;
@@ -113,5 +114,4 @@ function trpc_flag_name_custom ( $original_flags_path, $language_code ){
113
  }
114
  }
115
  return $original_flags_path;
116
- }
117
-
1
  <?php
2
+ add_image_size( 'trp-custom-language-flag', 18, 12 );
3
 
4
  // Register country flag size for use in Add Media modal
5
  add_filter( 'image_size_names_choose', 'trp_add_flag_sizes' );
19
 
20
  foreach ( $option['custom_language']['cuslangname'] as $key => $value ) {
21
 
22
+ $lang = $option["custom_language"]["cuslangiso"][ $key ];
23
+
24
  if ( array_key_exists( $lang, $languages ) ) {
25
  return $languages;
26
  }
30
  $custom_language_native = $option["custom_language"]["cuslangnative"][ $key ];
31
 
32
  $languages[ $lang ] = array(
33
+ 'language' => $lang,
34
+ 'english_name' => $custom_language_name,
35
+ 'native_name' => $custom_language_native,
36
+ 'iso' => array( $custom_language_iso )
37
  );
38
 
39
  global $TRP_LANGUAGE;
114
  }
115
  }
116
  return $original_flags_path;
117
+ }
 
index.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: TranslatePress - Multilingual
4
  Plugin URI: https://translatepress.com/
5
  Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
6
- Version: 2.0.5
7
  Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
8
  Author URI: https://cozmoslabs.com/
9
  Text Domain: translatepress-multilingual
10
  Domain Path: /languages
11
  License: GPL2
12
  WC requires at least: 2.5.0
13
- WC tested up to: 5.4.1
14
 
15
  == Copyright ==
16
  Copyright 2017 Cozmoslabs (www.cozmoslabs.com)
3
  Plugin Name: TranslatePress - Multilingual
4
  Plugin URI: https://translatepress.com/
5
  Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
6
+ Version: 2.0.6
7
  Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
8
  Author URI: https://cozmoslabs.com/
9
  Text Domain: translatepress-multilingual
10
  Domain Path: /languages
11
  License: GPL2
12
  WC requires at least: 2.5.0
13
+ WC tested up to: 5.5.2
14
 
15
  == Copyright ==
16
  Copyright 2017 Cozmoslabs (www.cozmoslabs.com)
languages/translatepress-multilingual.pot CHANGED
@@ -13,15 +13,15 @@ msgstr ""
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
 
16
- #: index-dev.php:38
17
  msgid "Please update the TranslatePress - Multilingual plugin to version 2.0.5 at least for %s to work properly"
18
  msgstr ""
19
 
20
- #: index-dev.php:32
21
  msgid "Please install and activate the TranslatePress - Multilingual plugin"
22
  msgstr ""
23
 
24
- #: index-dev.php:215
25
  msgid "This TranslatePress add-on has been migrated to the main plugin and is no longer used. You can delete it."
26
  msgstr ""
27
 
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
 
16
+ #: index-dev.php:39
17
  msgid "Please update the TranslatePress - Multilingual plugin to version 2.0.5 at least for %s to work properly"
18
  msgstr ""
19
 
20
+ #: index-dev.php:33
21
  msgid "Please install and activate the TranslatePress - Multilingual plugin"
22
  msgstr ""
23
 
24
+ #: index-dev.php:216
25
  msgid "This TranslatePress add-on has been migrated to the main plugin and is no longer used. You can delete it."
26
  msgstr ""
27
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: cozmoslabs, razvan.mo, madalin.ungureanu, sareiodata, cristophor
3
  Donate link: https://www.translatepress.com/
4
  Tags: translate, translation, multilingual, automatic translation, bilingual, front-end translation, google translate, language
5
  Requires at least: 3.1.0
6
- Tested up to: 5.7.2
7
  Requires PHP: 5.6.20
8
- Stable tag: 2.0.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -140,6 +140,11 @@ For more information please check out our [documentation](https://translatepress
140
 
141
 
142
  == Changelog ==
 
 
 
 
 
143
  = 2.0.5 =
144
  * All Premium Add-ons have been repackaged in new archives downloadable from translatepress.com account. All the old plugin Add-ons will no longer receive updates.
145
  * Reconfigured add-ons to be activated from TP Settings Add-ons tab
3
  Donate link: https://www.translatepress.com/
4
  Tags: translate, translation, multilingual, automatic translation, bilingual, front-end translation, google translate, language
5
  Requires at least: 3.1.0
6
+ Tested up to: 5.8
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.0.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
140
 
141
 
142
  == Changelog ==
143
+ = 2.0.6 =
144
+ * Added support for translating form reset button
145
+ * Fixed custom flags getting resized
146
+ * Fixed bug on Add-ons tab
147
+
148
  = 2.0.5 =
149
  * All Premium Add-ons have been repackaged in new archives downloadable from translatepress.com account. All the old plugin Add-ons will no longer receive updates.
150
  * Reconfigured add-ons to be activated from TP Settings Add-ons tab