Google Language Translator - Version 5.0.31

Version Description

Download this release

Release Info

Developer rm2773
Plugin Icon wp plugin Google Language Translator
Version 5.0.31
Comparing to
See all releases

Code changes from version 5.0.30 to 5.0.31

banner-1544x500.png DELETED
Binary file
banner-772x250.png DELETED
Binary file
google-language-translator.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
- Version: 5.0.30
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Rob Myrick
8
  Author URI: http://www.wp-studio.net/
@@ -303,13 +303,24 @@ class google_language_translator {
303
 
304
  $default_language = get_option('googlelanguagetranslator_language');
305
  $english_flag_choice = get_option('googlelanguagetranslator_english_flag_choice');
 
 
306
  $language_code = array_search($language,$this->languages_array);
307
  $language_name = $language;
308
  $language_name_flag = $language_name;
309
 
310
  if ( $language_name == 'English' && $english_flag_choice == 'canadian_flag') {
311
- $language_name_flag = 'canada';
312
- }
 
 
 
 
 
 
 
 
 
313
 
314
  return "<a class='nturl notranslate ".$language_code." ".$language_name_flag." single-language flag' title='".$language."'>".($image=='yes' ? "<span class='flag size".$image_size."'></span>" : '') .($text=='yes' ? $label : '')."</a>";
315
  }
@@ -1352,7 +1363,7 @@ $('.choose_flags').find('input:checkbox').prop('checked', false); }); });
1352
 
1353
  <div class="metabox-holder box-right notranslate" style="float: right; width: 33%;">
1354
  <div class="postbox">
1355
- <h3>GLT Premium 5.0.34 is Here! $30</h3>
1356
  <div class="inside">
1357
  <a class="wp-studio-logo" href="http://www.wp-studio.net/" target="_blank"><img style="background:#444; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px; width:177px;" src="<?php echo plugins_url( 'images/logo.png' , __FILE__ ); ?>"></a><br />
1358
  <ul id="features" style="margin-left:15px">
2
  /*
3
  Plugin Name: Google Language Translator
4
  Plugin URI: http://www.studio88design.com/plugins/google-language-translator
5
+ Version: 5.0.31
6
  Description: The MOST SIMPLE Google Translator plugin. This plugin adds Google Translator to your website by using a single shortcode, [google-translator]. Settings include: layout style, hide/show specific languages, hide/show Google toolbar, and hide/show Google branding. Add the shortcode to pages, posts, and widgets.
7
  Author: Rob Myrick
8
  Author URI: http://www.wp-studio.net/
303
 
304
  $default_language = get_option('googlelanguagetranslator_language');
305
  $english_flag_choice = get_option('googlelanguagetranslator_english_flag_choice');
306
+ $spanish_flag_choice = get_option('googlelanguagetranslator_spanish_flag_choice');
307
+ $portuguese_flag_choice = get_option('googlelanguagetranslator_portuguese_flag_choice');
308
  $language_code = array_search($language,$this->languages_array);
309
  $language_name = $language;
310
  $language_name_flag = $language_name;
311
 
312
  if ( $language_name == 'English' && $english_flag_choice == 'canadian_flag') {
313
+ $language_name_flag = 'canada';
314
+ }
315
+ if ( $language_name == "English" && $english_flag_choice == 'us_flag') {
316
+ $language_name_flag = 'united-states';
317
+ }
318
+ if ( $language_name == 'Spanish' && $spanish_flag_choice == 'mexican_flag') {
319
+ $language_name_flag = 'mexico';
320
+ }
321
+ if ( $language_name == 'Portuguese' && $portuguese_flag_choice == 'brazilian_flag') {
322
+ $language_name_flag = 'brazil';
323
+ }
324
 
325
  return "<a class='nturl notranslate ".$language_code." ".$language_name_flag." single-language flag' title='".$language."'>".($image=='yes' ? "<span class='flag size".$image_size."'></span>" : '') .($text=='yes' ? $label : '')."</a>";
326
  }
1363
 
1364
  <div class="metabox-holder box-right notranslate" style="float: right; width: 33%;">
1365
  <div class="postbox">
1366
+ <h3>GLT Premium 5.0.35 is Here! $30</h3>
1367
  <div class="inside">
1368
  <a class="wp-studio-logo" href="http://www.wp-studio.net/" target="_blank"><img style="background:#444; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px; width:177px;" src="<?php echo plugins_url( 'images/logo.png' , __FILE__ ); ?>"></a><br />
1369
  <ul id="features" style="margin-left:15px">
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
4
  Plugin link: http://wp-studio.net/how-it-works
5
  Tags: language translator, google translator, language translate, translate wordpress, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
- Tested up to: 4.6
8
- Stable tag: 5.0.30
9
 
10
  Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
@@ -46,6 +46,9 @@ A: Yes! Add the "notranslate" class to the HTML element containing your text. Fo
46
 
47
  == Changelog ==
48
 
 
 
 
49
  5.0.30
50
  - Organized the settings page into sections.
51
  - Upgraded Wordpress.org plugin banner.
4
  Plugin link: http://wp-studio.net/how-it-works
5
  Tags: language translator, google translator, language translate, translate wordpress, google language translator, translation, translate, multi language
6
  Requires at least: 2.9
7
+ Tested up to: 4.8
8
+ Stable tag: 5.0.31
9
 
10
  Welcome to Google Language Translator! This plugin allows you to insert the Google Language Translator tool anywhere on your website using shortcode.
11
 
46
 
47
  == Changelog ==
48
 
49
+ 5.0.31
50
+ - Fixed an issue with menu shortcode not displaying the correct flag choice (i.e. for English/Spanish/Portuguese flags).
51
+
52
  5.0.30
53
  - Organized the settings page into sections.
54
  - Upgraded Wordpress.org plugin banner.
screenshot-1.png CHANGED
Binary file