Version Description
Download this release
Release Info
Developer | rm2773 |
Plugin | Google Language Translator |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- google-language-translator.php +78 -83
- readme.txt +5 -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: 3.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.studio88design.com/
|
@@ -1200,90 +1200,87 @@ function initialize_settings() {
|
|
1200 |
|
1201 |
?>
|
1202 |
<div class="flagdisplay" style="width:25%; float:left">
|
1203 |
-
|
1204 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1210 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1211 |
-
|
1212 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1213 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1214 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1215 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1216 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1217 |
-
|
1218 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1219 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1220 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1221 |
-
<div><input type="checkbox" name="flag_display_settings[flag-
|
1222 |
-
<div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?> /> Danish</div>
|
1223 |
-
<div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?> /> Dutch</div>
|
1224 |
-
<div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?> /> English</div>
|
1225 |
</div>
|
1226 |
|
1227 |
<div class="flagdisplay" style="width:25%; float:left">
|
1228 |
-
<div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1"<?php checked( 1,$get_flag_choices['flag-eo']);
|
1229 |
-
<div><input type="checkbox" name="flag_display_settings[flag-et]" value="1"<?php checked( 1,$get_flag_choices['flag-et']);
|
1230 |
-
<div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1"<?php checked( 1,$get_flag_choices['flag-tl']);
|
1231 |
-
<div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1"<?php checked( 1,$get_flag_choices['flag-fi']);
|
1232 |
-
<div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1"<?php checked( 1,$get_flag_choices['flag-fr']);
|
1233 |
-
<div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1"<?php checked( 1,$get_flag_choices['flag-gl']);
|
1234 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1"<?php checked( 1,$get_flag_choices['flag-ka']);
|
1235 |
-
<div><input type="checkbox" name="flag_display_settings[flag-de]" value="1"<?php checked( 1,$get_flag_choices['flag-de']);
|
1236 |
-
<div><input type="checkbox" name="flag_display_settings[flag-el]" value="1"<?php checked( 1,$get_flag_choices['flag-el']);
|
1237 |
-
<div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1"<?php checked( 1,$get_flag_choices['flag-gu']);
|
1238 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1"<?php checked( 1,$get_flag_choices['flag-ht']);
|
1239 |
-
<div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1"<?php checked( 1,$get_flag_choices['flag-iw']);
|
1240 |
-
<div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1"<?php checked( 1,$get_flag_choices['flag-hi']);
|
1241 |
-
<div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1"<?php checked( 1,$get_flag_choices['flag-hmn']);
|
1242 |
-
<div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1"<?php checked( 1,$get_flag_choices['flag-hu']);
|
1243 |
-
<div><input type="checkbox" name="flag_display_settings[flag-is]" value="1"<?php checked( 1,$get_flag_choices['flag-is']);
|
1244 |
-
<div><input type="checkbox" name="flag_display_settings[flag-id]" value="1"<?php checked( 1,$get_flag_choices['flag-id']);
|
1245 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1"<?php checked( 1,$get_flag_choices['flag-ga']);
|
1246 |
-
<div><input type="checkbox" name="flag_display_settings[flag-it]" value="1"<?php checked( 1,$get_flag_choices['flag-it']);
|
1247 |
</div>
|
1248 |
|
1249 |
<div class="flagdisplay" style="width:25%; float:left">
|
1250 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1"<?php checked( 1,$get_flag_choices['flag-ja']);
|
1251 |
-
<div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1"<?php checked( 1,$get_flag_choices['flag-jw']);
|
1252 |
-
<div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1"<?php checked( 1,$get_flag_choices['flag-kn']);
|
1253 |
-
<div><input type="checkbox" name="flag_display_settings[flag-km]" value="1"<?php checked( 1,$get_flag_choices['flag-km']);
|
1254 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1"<?php checked( 1,$get_flag_choices['flag-ko']);
|
1255 |
-
<div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1"<?php checked( 1,$get_flag_choices['flag-lo']);
|
1256 |
-
<div><input type="checkbox" name="flag_display_settings[flag-la]" value="1"<?php checked( 1,$get_flag_choices['flag-la']);
|
1257 |
-
<div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1"<?php checked( 1,$get_flag_choices['flag-lv']);
|
1258 |
-
<div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1"<?php checked( 1,$get_flag_choices['flag-lt']);
|
1259 |
-
<div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1"<?php checked( 1,$get_flag_choices['flag-mk']);
|
1260 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1"<?php checked( 1,$get_flag_choices['flag-ms']);
|
1261 |
-
<div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1"<?php checked( 1,$get_flag_choices['flag-mt']);
|
1262 |
-
<div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1"<?php checked( 1,$get_flag_choices['flag-mr']);
|
1263 |
-
<div><input type="checkbox" name="flag_display_settings[flag-no]" value="1"<?php checked( 1,$get_flag_choices['flag-no']);
|
1264 |
-
<div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1"<?php checked( 1,$get_flag_choices['flag-fa']);
|
1265 |
-
<div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1"<?php checked( 1,$get_flag_choices['flag-pl']);
|
1266 |
-
<div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1"<?php checked( 1,$get_flag_choices['flag-pt']);
|
1267 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1"<?php checked( 1,$get_flag_choices['flag-ro']);
|
1268 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1"<?php checked( 1,$get_flag_choices['flag-ru']);
|
1269 |
</div>
|
1270 |
|
1271 |
<div class="flagdisplay" style="width:25%; float:left">
|
1272 |
-
<div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1"<?php checked( 1,$get_flag_choices['flag-sr']);
|
1273 |
-
<div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1"<?php checked( 1,$get_flag_choices['flag-sk']);
|
1274 |
-
<div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1"<?php checked( 1,$get_flag_choices['flag-sl']);
|
1275 |
-
<div><input type="checkbox" name="flag_display_settings[flag-es]" value="1"<?php checked( 1,$get_flag_choices['flag-es']);
|
1276 |
-
<div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1"<?php checked( 1,$get_flag_choices['flag-sw']);
|
1277 |
-
<div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1"<?php checked( 1,$get_flag_choices['flag-sv']);
|
1278 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1"<?php checked( 1,$get_flag_choices['flag-ta']);
|
1279 |
-
<div><input type="checkbox" name="flag_display_settings[flag-te]" value="1"<?php checked( 1,$get_flag_choices['flag-te']);
|
1280 |
-
<div><input type="checkbox" name="flag_display_settings[flag-th]" value="1"<?php checked( 1,$get_flag_choices['flag-th']);
|
1281 |
-
<div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1"<?php checked( 1,$get_flag_choices['flag-tr']);
|
1282 |
-
<div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1"<?php checked( 1,$get_flag_choices['flag-uk']);
|
1283 |
-
<div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1"<?php checked( 1,$get_flag_choices['flag-ur']);
|
1284 |
-
<div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1"<?php checked( 1,$get_flag_choices['flag-vi']);
|
1285 |
-
<div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1"<?php checked( 1,$get_flag_choices['flag-cy']);
|
1286 |
-
<div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1"<?php checked( 1,$get_flag_choices['flag-yi']);
|
1287 |
</div>
|
1288 |
<div style="clear:both"></div>
|
1289 |
<?php }
|
@@ -1572,11 +1569,11 @@ function googlelanguagetranslator_vertical(){
|
|
1572 |
}
|
1573 |
|
1574 |
if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
|
1575 |
-
$str.='<a id="Chinese
|
1576 |
}
|
1577 |
|
1578 |
if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
|
1579 |
-
$str.='<a id="Chinese
|
1580 |
}
|
1581 |
|
1582 |
if ( isset ( $get_flag_choices['flag-cs'] ) ) {
|
@@ -1861,13 +1858,11 @@ function googlelanguagetranslator_horizontal(){
|
|
1861 |
if ( isset ( $get_flag_choices['flag-af'] ) ) {
|
1862 |
$str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Afrikaans"/></a>';
|
1863 |
}
|
1864 |
-
|
1865 |
-
|
1866 |
if ( isset ( $get_flag_choices['flag-sq'] ) ) {
|
1867 |
$str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="18" width="18" alt="Albanian"/></a>';
|
1868 |
}
|
1869 |
|
1870 |
-
|
1871 |
$str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="18" width="18" alt="Arabic"/></a>';
|
1872 |
}
|
1873 |
|
@@ -1908,11 +1903,11 @@ function googlelanguagetranslator_horizontal(){
|
|
1908 |
}
|
1909 |
|
1910 |
if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
|
1911 |
-
$str.='<a id="Chinese
|
1912 |
}
|
1913 |
|
1914 |
if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
|
1915 |
-
$str.='<a id="Chinese
|
1916 |
}
|
1917 |
|
1918 |
if ( isset ( $get_flag_choices['flag-cs'] ) ) {
|
2 |
/*
|
3 |
Plugin Name: Google Language Translator
|
4 |
Plugin URI: http://www.studio88design.com/plugins/google-language-translator
|
5 |
+
Version: 3.0.2
|
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.studio88design.com/
|
1200 |
|
1201 |
?>
|
1202 |
<div class="flagdisplay" style="width:25%; float:left">
|
1203 |
+
<div><input type="checkbox" name="flag_display_settings[flag-af]" value="1" <?php checked( 1,$get_flag_choices['flag-af']); ?>/> Afrikaans</div>
|
1204 |
+
<div><input type="checkbox" name="flag_display_settings[flag-sq]" value="1" <?php checked( 1,$get_flag_choices['flag-sq']); ?>/> Albanian</div>
|
1205 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ar]" value="1" <?php checked( 1,$get_flag_choices['flag-ar']); ?>/> Arabic</div>
|
1206 |
+
<div><input type="checkbox" name="flag_display_settings[flag-hy]" value="1" <?php checked( 1,$get_flag_choices['flag-hy']); ?>/> Armenian</div>
|
1207 |
+
<div><input type="checkbox" name="flag_display_settings[flag-az]" value="1" <?php checked( 1,$get_flag_choices['flag-az']); ?>/> Azerbaijani</div>
|
1208 |
+
<div><input type="checkbox" name="flag_display_settings[flag-eu]" value="1" <?php checked( 1,$get_flag_choices['flag-eu']); ?>/> Basque</div>
|
1209 |
+
<div><input type="checkbox" name="flag_display_settings[flag-be]" value="1" <?php checked( 1,$get_flag_choices['flag-be']); ?>/> Belarusian</div>
|
1210 |
+
<div><input type="checkbox" name="flag_display_settings[flag-bn]" value="1" <?php checked( 1,$get_flag_choices['flag-bn']); ?>/> Bengali</div>
|
1211 |
+
<div><input type="checkbox" name="flag_display_settings[flag-bs]" value="1" <?php checked( 1,$get_flag_choices['flag-bs']); ?>/> Bosnian</div>
|
1212 |
+
<div><input type="checkbox" name="flag_display_settings[flag-bg]" value="1" <?php checked( 1,$get_flag_choices['flag-bg']); ?>/> Bulgarian</div>
|
1213 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ca]" value="1" <?php checked( 1,$get_flag_choices['flag-ca']); ?>/> Catalan</div>
|
1214 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ceb]" value="1" <?php checked( 1,$get_flag_choices['flag-ceb']); ?>/> Cebuano</div>
|
1215 |
+
<div><input type="checkbox" name="flag_display_settings[flag-zh-CN]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-CN']); ?>/> Chinese</div>
|
1216 |
+
<div><input type="checkbox" name="flag_display_settings[flag-zh-TW]" value="1" <?php checked( 1,$get_flag_choices['flag-zh-TW']); ?>/> Chinese (Han)</div>
|
1217 |
+
<div><input type="checkbox" name="flag_display_settings[flag-hr]" value="1" <?php checked( 1,$get_flag_choices['flag-hr']); ?>/> Croatian</div>
|
1218 |
+
<div><input type="checkbox" name="flag_display_settings[flag-cs]" value="1" <?php checked( 1,$get_flag_choices['flag-cs']); ?>/> Czech</div>
|
1219 |
+
<div><input type="checkbox" name="flag_display_settings[flag-da]" value="1" <?php checked( 1,$get_flag_choices['flag-da']); ?>/> Danish</div>
|
1220 |
+
<div><input type="checkbox" name="flag_display_settings[flag-nl]" value="1" <?php checked( 1,$get_flag_choices['flag-nl']); ?>/> Dutch</div>
|
1221 |
+
<div><input type="checkbox" name="flag_display_settings[flag-en]" value="1" <?php checked(1,$get_flag_choices['flag-en']); ?>/> English</div>
|
|
|
|
|
|
|
1222 |
</div>
|
1223 |
|
1224 |
<div class="flagdisplay" style="width:25%; float:left">
|
1225 |
+
<div><input type="checkbox" name="flag_display_settings[flag-eo]" value="1" <?php checked( 1,$get_flag_choices['flag-eo']); ?>/> Esperanto</div>
|
1226 |
+
<div><input type="checkbox" name="flag_display_settings[flag-et]" value="1" <?php checked( 1,$get_flag_choices['flag-et']); ?>/> Estonian</div>
|
1227 |
+
<div><input type="checkbox" name="flag_display_settings[flag-tl]" value="1" <?php checked( 1,$get_flag_choices['flag-tl']); ?>/> Filipino</div>
|
1228 |
+
<div><input type="checkbox" name="flag_display_settings[flag-fi]" value="1" <?php checked( 1,$get_flag_choices['flag-fi']); ?>/> Finnish</div>
|
1229 |
+
<div><input type="checkbox" name="flag_display_settings[flag-fr]" value="1" <?php checked( 1,$get_flag_choices['flag-fr']); ?>/> French</div>
|
1230 |
+
<div><input type="checkbox" name="flag_display_settings[flag-gl]" value="1" <?php checked( 1,$get_flag_choices['flag-gl']); ?>/> Galician</div>
|
1231 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ka]" value="1" <?php checked( 1,$get_flag_choices['flag-ka']); ?>/> Georgian</div>
|
1232 |
+
<div><input type="checkbox" name="flag_display_settings[flag-de]" value="1" <?php checked( 1,$get_flag_choices['flag-de']); ?>/> German</div>
|
1233 |
+
<div><input type="checkbox" name="flag_display_settings[flag-el]" value="1" <?php checked( 1,$get_flag_choices['flag-el']); ?>/> Greek</div>
|
1234 |
+
<div><input type="checkbox" name="flag_display_settings[flag-gu]" value="1" <?php checked( 1,$get_flag_choices['flag-gu']); ?>/> Gujarati</div>
|
1235 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ht]" value="1" <?php checked( 1,$get_flag_choices['flag-ht']); ?>/> Haitian</div>
|
1236 |
+
<div><input type="checkbox" name="flag_display_settings[flag-iw]" value="1" <?php checked( 1,$get_flag_choices['flag-iw']); ?>/> Hebrew</div>
|
1237 |
+
<div><input type="checkbox" name="flag_display_settings[flag-hi]" value="1" <?php checked( 1,$get_flag_choices['flag-hi']); ?>/> Hindi</div>
|
1238 |
+
<div><input type="checkbox" name="flag_display_settings[flag-hmn]" value="1" <?php checked( 1,$get_flag_choices['flag-hmn']); ?>/> Hmong</div>
|
1239 |
+
<div><input type="checkbox" name="flag_display_settings[flag-hu]" value="1" <?php checked( 1,$get_flag_choices['flag-hu']); ?>/> Hungarian</div>
|
1240 |
+
<div><input type="checkbox" name="flag_display_settings[flag-is]" value="1" <?php checked( 1,$get_flag_choices['flag-is']); ?>/> Icelandic</div>
|
1241 |
+
<div><input type="checkbox" name="flag_display_settings[flag-id]" value="1" <?php checked( 1,$get_flag_choices['flag-id']); ?>/> Indonesian</div>
|
1242 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ga]" value="1" <?php checked( 1,$get_flag_choices['flag-ga']); ?>/> Irish</div>
|
1243 |
+
<div><input type="checkbox" name="flag_display_settings[flag-it]" value="1" <?php checked( 1,$get_flag_choices['flag-it']); ?>/> Italian</div>
|
1244 |
</div>
|
1245 |
|
1246 |
<div class="flagdisplay" style="width:25%; float:left">
|
1247 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ja]" value="1" <?php checked( 1,$get_flag_choices['flag-ja']); ?>/> Japanese</div>
|
1248 |
+
<div><input type="checkbox" name="flag_display_settings[flag-jw]" value="1" <?php checked( 1,$get_flag_choices['flag-jw']); ?>/> Javanese</div>
|
1249 |
+
<div><input type="checkbox" name="flag_display_settings[flag-kn]" value="1" <?php checked( 1,$get_flag_choices['flag-kn']); ?>/> Kannada</div>
|
1250 |
+
<div><input type="checkbox" name="flag_display_settings[flag-km]" value="1" <?php checked( 1,$get_flag_choices['flag-km']); ?>/> Khmer</div>
|
1251 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ko]" value="1" <?php checked( 1,$get_flag_choices['flag-ko']); ?>/> Korean</div>
|
1252 |
+
<div><input type="checkbox" name="flag_display_settings[flag-lo]" value="1" <?php checked( 1,$get_flag_choices['flag-lo']); ?>/> Lao</div>
|
1253 |
+
<div><input type="checkbox" name="flag_display_settings[flag-la]" value="1" <?php checked( 1,$get_flag_choices['flag-la']); ?>/> Latin</div>
|
1254 |
+
<div><input type="checkbox" name="flag_display_settings[flag-lv]" value="1" <?php checked( 1,$get_flag_choices['flag-lv']); ?>/> Latvian</div>
|
1255 |
+
<div><input type="checkbox" name="flag_display_settings[flag-lt]" value="1" <?php checked( 1,$get_flag_choices['flag-lt']); ?>/> Lithuanian</div>
|
1256 |
+
<div><input type="checkbox" name="flag_display_settings[flag-mk]" value="1" <?php checked( 1,$get_flag_choices['flag-mk']); ?>/> Macedonian</div>
|
1257 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ms]" value="1" <?php checked( 1,$get_flag_choices['flag-ms']); ?>/> Malay</div>
|
1258 |
+
<div><input type="checkbox" name="flag_display_settings[flag-mt]" value="1" <?php checked( 1,$get_flag_choices['flag-mt']); ?>/> Maltese</div>
|
1259 |
+
<div><input type="checkbox" name="flag_display_settings[flag-mr]" value="1" <?php checked( 1,$get_flag_choices['flag-mr']); ?>/> Marathi</div>
|
1260 |
+
<div><input type="checkbox" name="flag_display_settings[flag-no]" value="1" <?php checked( 1,$get_flag_choices['flag-no']); ?>/> Norwegian</div>
|
1261 |
+
<div><input type="checkbox" name="flag_display_settings[flag-fa]" value="1" <?php checked( 1,$get_flag_choices['flag-fa']); ?>/> Persian</div>
|
1262 |
+
<div><input type="checkbox" name="flag_display_settings[flag-pl]" value="1" <?php checked( 1,$get_flag_choices['flag-pl']); ?>/> Polish</div>
|
1263 |
+
<div><input type="checkbox" name="flag_display_settings[flag-pt]" value="1" <?php checked( 1,$get_flag_choices['flag-pt']); ?>/> Portuguese</div>
|
1264 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ro]" value="1" <?php checked( 1,$get_flag_choices['flag-ro']); ?>/> Romanian</div>
|
1265 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ru]" value="1" <?php checked( 1,$get_flag_choices['flag-ru']); ?>/> Russian</div>
|
1266 |
</div>
|
1267 |
|
1268 |
<div class="flagdisplay" style="width:25%; float:left">
|
1269 |
+
<div><input type="checkbox" name="flag_display_settings[flag-sr]" value="1" <?php checked( 1,$get_flag_choices['flag-sr']); ?>/> Serbian</div>
|
1270 |
+
<div><input type="checkbox" name="flag_display_settings[flag-sk]" value="1" <?php checked( 1,$get_flag_choices['flag-sk']); ?>/> Slovak</div>
|
1271 |
+
<div><input type="checkbox" name="flag_display_settings[flag-sl]" value="1" <?php checked( 1,$get_flag_choices['flag-sl']); ?>/> Slovenian</div>
|
1272 |
+
<div><input type="checkbox" name="flag_display_settings[flag-es]" value="1" <?php checked( 1,$get_flag_choices['flag-es']); ?>/> Spanish</div>
|
1273 |
+
<div><input type="checkbox" name="flag_display_settings[flag-sw]" value="1" <?php checked( 1,$get_flag_choices['flag-sw']); ?>/> Swahili</div>
|
1274 |
+
<div><input type="checkbox" name="flag_display_settings[flag-sv]" value="1" <?php checked( 1,$get_flag_choices['flag-sv']); ?>/> Swedish</div>
|
1275 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ta]" value="1" <?php checked( 1,$get_flag_choices['flag-ta']); ?>/> Tamil</div>
|
1276 |
+
<div><input type="checkbox" name="flag_display_settings[flag-te]" value="1" <?php checked( 1,$get_flag_choices['flag-te']); ?>/> Telugu</div>
|
1277 |
+
<div><input type="checkbox" name="flag_display_settings[flag-th]" value="1" <?php checked( 1,$get_flag_choices['flag-th']); ?>/> Thai</div>
|
1278 |
+
<div><input type="checkbox" name="flag_display_settings[flag-tr]" value="1" <?php checked( 1,$get_flag_choices['flag-tr']); ?>/> Turkish</div>
|
1279 |
+
<div><input type="checkbox" name="flag_display_settings[flag-uk]" value="1" <?php checked( 1,$get_flag_choices['flag-uk']); ?>/> Ukranian</div>
|
1280 |
+
<div><input type="checkbox" name="flag_display_settings[flag-ur]" value="1" <?php checked( 1,$get_flag_choices['flag-ur']); ?>/> Urdu</div>
|
1281 |
+
<div><input type="checkbox" name="flag_display_settings[flag-vi]" value="1" <?php checked( 1,$get_flag_choices['flag-vi']); ?>/> Vietnamese</div>
|
1282 |
+
<div><input type="checkbox" name="flag_display_settings[flag-cy]" value="1" <?php checked( 1,$get_flag_choices['flag-cy']); ?>/> Welsh</div>
|
1283 |
+
<div><input type="checkbox" name="flag_display_settings[flag-yi]" value="1" <?php checked( 1,$get_flag_choices['flag-yi']); ?>/> Yiddish</div>
|
1284 |
</div>
|
1285 |
<div style="clear:both"></div>
|
1286 |
<?php }
|
1569 |
}
|
1570 |
|
1571 |
if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
|
1572 |
+
$str.='<a id="Chinese-Simplified" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Simplified)"/></a>';
|
1573 |
}
|
1574 |
|
1575 |
if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
|
1576 |
+
$str.='<a id="Chinese-Traditional" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Traditional)"/></a>';
|
1577 |
}
|
1578 |
|
1579 |
if ( isset ( $get_flag_choices['flag-cs'] ) ) {
|
1858 |
if ( isset ( $get_flag_choices['flag-af'] ) ) {
|
1859 |
$str.='<a id="Afrikaans" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|af\'); return false;" title="Afrikaans" class="notranslate flag af"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/southafrica.png" height="18" width="18" alt="Afrikaans"/></a>';
|
1860 |
}
|
|
|
|
|
1861 |
if ( isset ( $get_flag_choices['flag-sq'] ) ) {
|
1862 |
$str.='<a id="Albanian" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|sq\'); return false;" title="Albanian" class="notranslate flag sq"><img class="notranslate flag flag flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/albania.png" height="18" width="18" alt="Albanian"/></a>';
|
1863 |
}
|
1864 |
|
1865 |
+
if ( isset ( $get_flag_choices['flag-ar'] ) ) {
|
1866 |
$str.='<a id="Arabic" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|ar\'); return false;" title="Arabic" class="notranslate flag ar"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/saudiaarabia.png" height="18" width="18" alt="Arabic"/></a>';
|
1867 |
}
|
1868 |
|
1903 |
}
|
1904 |
|
1905 |
if ( isset ( $get_flag_choices['flag-zh-CN'] ) ) {
|
1906 |
+
$str.='<a id="Chinese-Simplified)" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-CN\'); return false;" title="Chinese (Simplified)" class="notranslate flag zh-CN"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Simplified)"/></a>';
|
1907 |
}
|
1908 |
|
1909 |
if ( isset ( $get_flag_choices['flag-zh-TW'] ) ) {
|
1910 |
+
$str.='<a id="Chinese-Traditional)" href="#" onclick="doGoogleLanguageTranslator(\''.get_option('googlelanguagetranslator_language').'|zh-TW\'); return false;" title="Chinese (Traditional)" class="notranslate flag zh-TW"><img class="flagimg" src="'.plugins_url().'/google-language-translator/images/flags24/china.png" height="18" width="18" alt="Chinese (Traditional)"/></a>';
|
1911 |
}
|
1912 |
|
1913 |
if ( isset ( $get_flag_choices['flag-cs'] ) ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Plugin link: http://www.studio88design.com/plugins/google-language-translator
|
|
5 |
Tags: language translator, google translator, language translate, google, google language translator, translation, translate, multi language
|
6 |
Requires at least: 2.9
|
7 |
Tested up to: 3.8.1
|
8 |
-
stable tag: 3.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 |
|
@@ -138,6 +138,10 @@ Settings include: inline or vertical layout, show/hide specific languages, hide/
|
|
138 |
- Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
|
139 |
- Removed old CSS styles that were added in the previous 3.0 update - the styles were added when Google servers were being updated, and were producing major translation dislay issues until their update was complete. Now the styles I added are no longer needed.
|
140 |
|
|
|
|
|
|
|
|
|
141 |
== Screenshots ==
|
142 |
|
143 |
1. Settings include: inline or vertical layout, hide/show Google toolbar, display specific languages, and show/hide Google branding. Add the shortcode to pages, posts, and widgets.
|
5 |
Tags: language translator, google translator, language translate, google, google language translator, translation, translate, multi language
|
6 |
Requires at least: 2.9
|
7 |
Tested up to: 3.8.1
|
8 |
+
stable tag: 3.0.2
|
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 |
|
138 |
- Adjusted some minor spacing issues in the settings page HTML (caused some annoying red HTML errors when using "View Source" in right-click menu).
|
139 |
- Removed old CSS styles that were added in the previous 3.0 update - the styles were added when Google servers were being updated, and were producing major translation dislay issues until their update was complete. Now the styles I added are no longer needed.
|
140 |
|
141 |
+
3.0.2
|
142 |
+
|
143 |
+
- Adjusted additional minor invalid HTML issues on the settings page, and also in the front-end plugin display.
|
144 |
+
|
145 |
== Screenshots ==
|
146 |
|
147 |
1. Settings include: inline or vertical layout, hide/show Google toolbar, display specific languages, and show/hide Google branding. Add the shortcode to pages, posts, and widgets.
|