Version Description
Download this release
Release Info
Developer | rm2773 |
Plugin | Google Language Translator |
Version | 5.0.15 |
Comparing to | |
See all releases |
Code changes from version 5.0.14 to 5.0.15
- css/style.css +25 -0
- google-language-translator.php +9 -8
- images/flags.png +0 -0
- images/flags16.png +0 -0
- images/flags18.png +0 -0
- images/flags20.png +0 -0
- images/flags22.png +0 -0
- readme.txt +4 -1
css/style.css
CHANGED
@@ -236,6 +236,11 @@ code {
|
|
236 |
background:url('../images/flags22.png') -30px -3px no-repeat;
|
237 |
}
|
238 |
|
|
|
|
|
|
|
|
|
|
|
239 |
#flags.size22 a[title="Arabic"],
|
240 |
.tool-container .tool-items a[title="Arabic"] {
|
241 |
background:url('../images/flags22.png') -59px -3px no-repeat;
|
@@ -709,6 +714,11 @@ code {
|
|
709 |
background:url('../images/flags18.png') -31px -4px no-repeat;
|
710 |
}
|
711 |
|
|
|
|
|
|
|
|
|
|
|
712 |
#flags.size18 a[title="Arabic"],
|
713 |
.tool-container .tool-items a[title="Arabic"] {
|
714 |
background:url('../images/flags18.png') -60px -4px no-repeat;
|
@@ -1182,6 +1192,11 @@ code {
|
|
1182 |
background:url('../images/flags20.png') -31px -4px no-repeat;
|
1183 |
}
|
1184 |
|
|
|
|
|
|
|
|
|
|
|
1185 |
#flags.size20 a[title="Arabic"],
|
1186 |
.tool-container .tool-items a[title="Arabic"] {
|
1187 |
background:url('../images/flags20.png') -60px -4px no-repeat;
|
@@ -1655,6 +1670,11 @@ code {
|
|
1655 |
background:url('../images/flags16.png') -33px -5px no-repeat;
|
1656 |
}
|
1657 |
|
|
|
|
|
|
|
|
|
|
|
1658 |
#flags.size16 a[title="Arabic"],
|
1659 |
.tool-container .tool-items a[title="Arabic"] {
|
1660 |
background:url('../images/flags16.png') -62px -5px no-repeat;
|
@@ -2128,6 +2148,11 @@ code {
|
|
2128 |
background:url('../images/flags.png') -29px -3px no-repeat;
|
2129 |
}
|
2130 |
|
|
|
|
|
|
|
|
|
|
|
2131 |
#flags.size24 a[title="Arabic"],
|
2132 |
.tool-container .tool-items a[title="Arabic"] {
|
2133 |
background:url('../images/flags.png') -58px -3px no-repeat;
|
236 |
background:url('../images/flags22.png') -30px -3px no-repeat;
|
237 |
}
|
238 |
|
239 |
+
#flags.size22 a[title="Amharic"],
|
240 |
+
.tool-container .tool-items a[title="Amharic"] {
|
241 |
+
background:url('../images/flags22.png') -1px -467px no-repeat;
|
242 |
+
}
|
243 |
+
|
244 |
#flags.size22 a[title="Arabic"],
|
245 |
.tool-container .tool-items a[title="Arabic"] {
|
246 |
background:url('../images/flags22.png') -59px -3px no-repeat;
|
714 |
background:url('../images/flags18.png') -31px -4px no-repeat;
|
715 |
}
|
716 |
|
717 |
+
#flags.size18 a[title="Amharic"],
|
718 |
+
.tool-container .tool-items a[title="Amharic"] {
|
719 |
+
background:url('../images/flags18.png') -2px -468px no-repeat;
|
720 |
+
}
|
721 |
+
|
722 |
#flags.size18 a[title="Arabic"],
|
723 |
.tool-container .tool-items a[title="Arabic"] {
|
724 |
background:url('../images/flags18.png') -60px -4px no-repeat;
|
1192 |
background:url('../images/flags20.png') -31px -4px no-repeat;
|
1193 |
}
|
1194 |
|
1195 |
+
#flags.size20 a[title="Amharic"],
|
1196 |
+
.tool-container .tool-items a[title="Amharic"] {
|
1197 |
+
background:url('../images/flags20.png') -2px -468px no-repeat;
|
1198 |
+
}
|
1199 |
+
|
1200 |
#flags.size20 a[title="Arabic"],
|
1201 |
.tool-container .tool-items a[title="Arabic"] {
|
1202 |
background:url('../images/flags20.png') -60px -4px no-repeat;
|
1670 |
background:url('../images/flags16.png') -33px -5px no-repeat;
|
1671 |
}
|
1672 |
|
1673 |
+
#flags.size16 a[title="Amharic"],
|
1674 |
+
.tool-container .tool-items a[title="Amharic"] {
|
1675 |
+
background:url('../images/flags16.png') -4px -469px no-repeat;
|
1676 |
+
}
|
1677 |
+
|
1678 |
#flags.size16 a[title="Arabic"],
|
1679 |
.tool-container .tool-items a[title="Arabic"] {
|
1680 |
background:url('../images/flags16.png') -62px -5px no-repeat;
|
2148 |
background:url('../images/flags.png') -29px -3px no-repeat;
|
2149 |
}
|
2150 |
|
2151 |
+
#flags.size24 a[title="Amharic"],
|
2152 |
+
.tool-container .tool-items a[title="Amharic"] {
|
2153 |
+
background:url('../images/flags.png') 0 -467px no-repeat;
|
2154 |
+
}
|
2155 |
+
|
2156 |
#flags.size24 a[title="Arabic"],
|
2157 |
.tool-container .tool-items a[title="Arabic"] {
|
2158 |
background:url('../images/flags.png') -58px -3px no-repeat;
|
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/
|
@@ -19,6 +19,7 @@ class google_language_translator {
|
|
19 |
public $languages_array = array (
|
20 |
'af' => 'Afrikaans',
|
21 |
'sq' => 'Albanian',
|
|
|
22 |
'ar' => 'Arabic',
|
23 |
'hy' => 'Armenian',
|
24 |
'az' => 'Azerbaijani',
|
@@ -200,10 +201,10 @@ class google_language_translator {
|
|
200 |
wp_enqueue_script( 'my-flag-script', plugins_url('js/flags.js',__FILE__), array('jquery'));
|
201 |
|
202 |
if (get_option ('googlelanguagetranslator_floating_widget') == 'yes') {
|
203 |
-
wp_enqueue_script( '
|
204 |
-
wp_enqueue_script( '
|
205 |
-
wp_register_style( 'toolbar
|
206 |
-
wp_enqueue_style( 'toolbar
|
207 |
}
|
208 |
|
209 |
wp_enqueue_script( 'jquery-ui-core');
|
@@ -1162,7 +1163,7 @@ class google_language_translator {
|
|
1162 |
|
1163 |
<tr class="notranslate">
|
1164 |
<td>Single language usage in<br/>nav menu/pages/posts</td>
|
1165 |
-
<td><code>[glt language="Spanish" label="
|
1166 |
</tr>
|
1167 |
|
1168 |
<tr class="notranslate">
|
@@ -1178,7 +1179,7 @@ class google_language_translator {
|
|
1178 |
<li>Enter a navigation label of your choice. This label does not appear on your website - it is meant only to help you identify the menu item.</li>
|
1179 |
<li>Place the following shortcode into the "description" field, and modify it to display the language and navigation label of your choice:</li>
|
1180 |
</ol>
|
1181 |
-
<p><code>[glt language="Spanish" label="
|
1182 |
</div>
|
1183 |
</td>
|
1184 |
</tr>
|
@@ -1307,4 +1308,4 @@ class google_language_translator {
|
|
1307 |
<?php
|
1308 |
}
|
1309 |
}
|
1310 |
-
$google_language_translator = new google_language_translator();
|
2 |
/*
|
3 |
Plugin Name: Google Language Translator
|
4 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
5 |
+
Version: 5.0.15
|
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/
|
19 |
public $languages_array = array (
|
20 |
'af' => 'Afrikaans',
|
21 |
'sq' => 'Albanian',
|
22 |
+
'am' => 'Amharic',
|
23 |
'ar' => 'Arabic',
|
24 |
'hy' => 'Armenian',
|
25 |
'az' => 'Azerbaijani',
|
201 |
wp_enqueue_script( 'my-flag-script', plugins_url('js/flags.js',__FILE__), array('jquery'));
|
202 |
|
203 |
if (get_option ('googlelanguagetranslator_floating_widget') == 'yes') {
|
204 |
+
wp_enqueue_script( 'glt-toolbar', plugins_url('js/toolbar.js',__FILE__), array('jquery'));
|
205 |
+
wp_enqueue_script( 'glt-load-toolbar', plugins_url('js/load-toolbar.js',__FILE__), array('jquery'));
|
206 |
+
wp_register_style( 'glt-toolbar-styles', plugins_url('css/toolbar.css', __FILE__) );
|
207 |
+
wp_enqueue_style( 'glt-toolbar-styles' );
|
208 |
}
|
209 |
|
210 |
wp_enqueue_script( 'jquery-ui-core');
|
1163 |
|
1164 |
<tr class="notranslate">
|
1165 |
<td>Single language usage in<br/>nav menu/pages/posts</td>
|
1166 |
+
<td><code>[glt language="Spanish" label="Espa�ol"]</code></td>
|
1167 |
</tr>
|
1168 |
|
1169 |
<tr class="notranslate">
|
1179 |
<li>Enter a navigation label of your choice. This label does not appear on your website - it is meant only to help you identify the menu item.</li>
|
1180 |
<li>Place the following shortcode into the "description" field, and modify it to display the language and navigation label of your choice:</li>
|
1181 |
</ol>
|
1182 |
+
<p><code>[glt language="Spanish" label="Espa�ol"]</code></p>
|
1183 |
</div>
|
1184 |
</td>
|
1185 |
</tr>
|
1308 |
<?php
|
1309 |
}
|
1310 |
}
|
1311 |
+
$google_language_translator = new google_language_translator();
|
images/flags.png
CHANGED
Binary file
|
images/flags16.png
CHANGED
Binary file
|
images/flags18.png
CHANGED
Binary file
|
images/flags20.png
CHANGED
Binary file
|
images/flags22.png
CHANGED
Binary file
|
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.6
|
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.14
|
50 |
- Fixed a file naming error in google-language-translator.php. This caused flags not to display - we apologize for the inconvenience.
|
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.6
|
8 |
+
Stable tag: 5.0.15
|
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.15
|
50 |
+
- Added Amharic as a new language with its associated flag.
|
51 |
+
|
52 |
5.0.14
|
53 |
- Fixed a file naming error in google-language-translator.php. This caused flags not to display - we apologize for the inconvenience.
|
54 |
|