Version Description
Download this release
Release Info
Developer | rm2773 |
Plugin | Google Language Translator |
Version | 5.0.36 |
Comparing to | |
See all releases |
Code changes from version 5.0.35 to 5.0.36
- google-language-translator.php +3 -6
- readme.txt +4 -1
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.
|
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/
|
@@ -149,7 +149,7 @@ class google_language_translator {
|
|
149 |
add_option('googlelanguagetranslator_active', 1);
|
150 |
add_option('googlelanguagetranslator_language','en');
|
151 |
add_option('googlelanguagetranslator_language_option','all');
|
152 |
-
add_option('googlelanguagetranslator_flags',
|
153 |
add_option('language_display_settings',array ('en' => 1));
|
154 |
add_option('googlelanguagetranslator_translatebox','yes');
|
155 |
add_option('googlelanguagetranslator_display','Vertical');
|
@@ -312,7 +312,6 @@ class google_language_translator {
|
|
312 |
public function footer_script() {
|
313 |
global $shortcode_started;
|
314 |
|
315 |
-
$i = 0;
|
316 |
$default_language = get_option('googlelanguagetranslator_language');
|
317 |
$language_choices = $this->googlelanguagetranslator_included_languages();
|
318 |
$new_languages_array_string = get_option('googlelanguagetranslator_flags_order');
|
@@ -322,9 +321,9 @@ class google_language_translator {
|
|
322 |
$english_flag_choice = get_option('googlelanguagetranslator_english_flag_choice');
|
323 |
$spanish_flag_choice = get_option('googlelanguagetranslator_spanish_flag_choice');
|
324 |
$portuguese_flag_choice = get_option('googlelanguagetranslator_portuguese_flag_choice');
|
|
|
325 |
$get_language_option = get_option('googlelanguagetranslator_language_option');
|
326 |
$get_language_choices = get_option('language_display_settings');
|
327 |
-
$get_flag_choices_count = count($get_flag_choices);
|
328 |
$floating_widget = get_option ('googlelanguagetranslator_floating_widget');
|
329 |
$floating_widget_text = get_option ('googlelanguagetranslator_floating_widget_text');
|
330 |
$floating_widget_text_translation_allowed = get_option ('googlelanguagetranslator_floating_widget_text_allow_translation');
|
@@ -447,7 +446,6 @@ class google_language_translator {
|
|
447 |
$new_languages_array = explode(",",$new_languages_array_string);
|
448 |
$new_languages_array_codes = array_values($new_languages_array);
|
449 |
$new_languages_array_count = count($new_languages_array);
|
450 |
-
$get_flag_choices_count = count($get_flag_choices);
|
451 |
$get_language_choices = get_option ('language_display_settings');
|
452 |
$flag_width = get_option('googlelanguagetranslator_flag_size');
|
453 |
$default_language_code = get_option('googlelanguagetranslator_language');
|
@@ -551,7 +549,6 @@ class google_language_translator {
|
|
551 |
$new_languages_array = explode(",",$new_languages_array_string);
|
552 |
$new_languages_array_codes = array_values($new_languages_array);
|
553 |
$new_languages_array_count = count($new_languages_array);
|
554 |
-
$get_flag_choices_count = count($get_flag_choices);
|
555 |
$get_language_choices = get_option ('language_display_settings');
|
556 |
$flag_width = get_option('googlelanguagetranslator_flag_size');
|
557 |
$default_language_code = get_option('googlelanguagetranslator_language');
|
2 |
/*
|
3 |
Plugin Name: Google Language Translator
|
4 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
5 |
+
Version: 5.0.36
|
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/
|
149 |
add_option('googlelanguagetranslator_active', 1);
|
150 |
add_option('googlelanguagetranslator_language','en');
|
151 |
add_option('googlelanguagetranslator_language_option','all');
|
152 |
+
add_option('googlelanguagetranslator_flags', 1);
|
153 |
add_option('language_display_settings',array ('en' => 1));
|
154 |
add_option('googlelanguagetranslator_translatebox','yes');
|
155 |
add_option('googlelanguagetranslator_display','Vertical');
|
312 |
public function footer_script() {
|
313 |
global $shortcode_started;
|
314 |
|
|
|
315 |
$default_language = get_option('googlelanguagetranslator_language');
|
316 |
$language_choices = $this->googlelanguagetranslator_included_languages();
|
317 |
$new_languages_array_string = get_option('googlelanguagetranslator_flags_order');
|
321 |
$english_flag_choice = get_option('googlelanguagetranslator_english_flag_choice');
|
322 |
$spanish_flag_choice = get_option('googlelanguagetranslator_spanish_flag_choice');
|
323 |
$portuguese_flag_choice = get_option('googlelanguagetranslator_portuguese_flag_choice');
|
324 |
+
$flag_width = get_option('googlelanguagetranslator_flag_size');
|
325 |
$get_language_option = get_option('googlelanguagetranslator_language_option');
|
326 |
$get_language_choices = get_option('language_display_settings');
|
|
|
327 |
$floating_widget = get_option ('googlelanguagetranslator_floating_widget');
|
328 |
$floating_widget_text = get_option ('googlelanguagetranslator_floating_widget_text');
|
329 |
$floating_widget_text_translation_allowed = get_option ('googlelanguagetranslator_floating_widget_text_allow_translation');
|
446 |
$new_languages_array = explode(",",$new_languages_array_string);
|
447 |
$new_languages_array_codes = array_values($new_languages_array);
|
448 |
$new_languages_array_count = count($new_languages_array);
|
|
|
449 |
$get_language_choices = get_option ('language_display_settings');
|
450 |
$flag_width = get_option('googlelanguagetranslator_flag_size');
|
451 |
$default_language_code = get_option('googlelanguagetranslator_language');
|
549 |
$new_languages_array = explode(",",$new_languages_array_string);
|
550 |
$new_languages_array_codes = array_values($new_languages_array);
|
551 |
$new_languages_array_count = count($new_languages_array);
|
|
|
552 |
$get_language_choices = get_option ('language_display_settings');
|
553 |
$flag_width = get_option('googlelanguagetranslator_flag_size');
|
554 |
$default_language_code = get_option('googlelanguagetranslator_language');
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ 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.9.2
|
8 |
-
Stable tag: 5.0.
|
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.35
|
50 |
- Updated the plugin to delete an unused option from the database, used in the settings panel.
|
51 |
|
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.9.2
|
8 |
+
Stable tag: 5.0.36
|
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.36
|
50 |
+
- Removed undefined variable PHP errors.
|
51 |
+
|
52 |
5.0.35
|
53 |
- Updated the plugin to delete an unused option from the database, used in the settings panel.
|
54 |
|