Version Description
- Bug fixed: configuration settings were lost after update
- FAQ updated
- Changelog reordered
Download this release
Release Info
Developer | edo888 |
Plugin | Translate WordPress with GTranslate |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- gtranslate.php +10 -9
- readme.txt +28 -23
gtranslate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: http://edo.webmaster.am/gtranslate
|
5 |
Description: Get translations with a single click between 58 languages (more than 98% of internet users) on your website!
|
6 |
-
Version: 1.0.
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: http://edo.webmaster.am
|
9 |
|
@@ -36,15 +36,13 @@ class GTranslate extends WP_Widget {
|
|
36 |
$data = array(
|
37 |
'gtranslate_title' => 'Translate',
|
38 |
);
|
|
|
39 |
|
40 |
-
|
41 |
-
update_option('GTranslate', $data);
|
42 |
-
else
|
43 |
-
add_option('GTranslate', $data);
|
44 |
}
|
45 |
|
46 |
function deactivate() {
|
47 |
-
delete_option('GTranslate');
|
48 |
}
|
49 |
|
50 |
function control() {
|
@@ -65,7 +63,10 @@ class GTranslate extends WP_Widget {
|
|
65 |
|
66 |
echo $args['before_widget'];
|
67 |
echo $args['before_title'] . '<a href="http://www.asiatranslate.net/website-translation.html" rel="follow" target="_blank">' . $data['gtranslate_title'] . '</a>' . $args['after_title'];
|
68 |
-
|
|
|
|
|
|
|
69 |
echo $args['after_widget'];
|
70 |
}
|
71 |
|
@@ -75,8 +76,7 @@ class GTranslate extends WP_Widget {
|
|
75 |
}
|
76 |
|
77 |
function admin_menu() {
|
78 |
-
add_options_page('
|
79 |
-
|
80 |
}
|
81 |
|
82 |
function options() {
|
@@ -540,5 +540,6 @@ EOT;
|
|
540 |
$data['default_language'] = isset($data['default_language']) ? $data['default_language'] : 'en';
|
541 |
$data['translation_method'] = isset($data['translation_method']) ? $data['translation_method'] : 'on_fly';
|
542 |
$data['flag_size'] = isset($data['flag_size']) ? $data['flag_size'] : '16';
|
|
|
543 |
}
|
544 |
}
|
3 |
Plugin Name: GTranslate
|
4 |
Plugin URI: http://edo.webmaster.am/gtranslate
|
5 |
Description: Get translations with a single click between 58 languages (more than 98% of internet users) on your website!
|
6 |
+
Version: 1.0.10
|
7 |
Author: Edvard Ananyan
|
8 |
Author URI: http://edo.webmaster.am
|
9 |
|
36 |
$data = array(
|
37 |
'gtranslate_title' => 'Translate',
|
38 |
);
|
39 |
+
self::load_defaults(& $data);
|
40 |
|
41 |
+
add_option('GTranslate', $data);
|
|
|
|
|
|
|
42 |
}
|
43 |
|
44 |
function deactivate() {
|
45 |
+
// delete_option('GTranslate');
|
46 |
}
|
47 |
|
48 |
function control() {
|
63 |
|
64 |
echo $args['before_widget'];
|
65 |
echo $args['before_title'] . '<a href="http://www.asiatranslate.net/website-translation.html" rel="follow" target="_blank">' . $data['gtranslate_title'] . '</a>' . $args['after_title'];
|
66 |
+
if(empty($data['widget_code']))
|
67 |
+
echo 'Configure it from WP-Admin -> Settings -> GTranslate to see it in action.';
|
68 |
+
else
|
69 |
+
echo $data['widget_code'];
|
70 |
echo $args['after_widget'];
|
71 |
}
|
72 |
|
76 |
}
|
77 |
|
78 |
function admin_menu() {
|
79 |
+
add_options_page('GTranslate Options', 'GTranslate', 'administrator', 'gtranslate_options', array('GTranslate', 'options'));
|
|
|
80 |
}
|
81 |
|
82 |
function options() {
|
540 |
$data['default_language'] = isset($data['default_language']) ? $data['default_language'] : 'en';
|
541 |
$data['translation_method'] = isset($data['translation_method']) ? $data['translation_method'] : 'on_fly';
|
542 |
$data['flag_size'] = isset($data['flag_size']) ? $data['flag_size'] : '16';
|
543 |
+
$data['widget_code'] = isset($data['widget_code']) ? $data['widget_code'] : '';
|
544 |
}
|
545 |
}
|
readme.txt
CHANGED
@@ -5,9 +5,9 @@ Donate link: http://edo.webmaster.am/gtranslate
|
|
5 |
Tags: widget, plugin, sidebar, google, translate, translation, automatic translator, google translate, ajax translator, jquery translator
|
6 |
Requires at least: 2.3
|
7 |
Tested up to: 3.0
|
8 |
-
Stable tag: 1.0.
|
9 |
|
10 |
-
Get translations with a single click between 58 languages (more than 98% of internet users) on your website!
|
11 |
|
12 |
== Description ==
|
13 |
|
@@ -43,7 +43,7 @@ It's a Google translation, hence Google quality.
|
|
43 |
Here is the list: Afrikaans, Albanian, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Haitian Creole, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Irish, Italian, Japanese, Korean, Latvian, Lithuanian, Macedonian, Malay, Maltese, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Welsh, Yiddish
|
44 |
|
45 |
= Can I exclude some parts from being translated? =
|
46 |
-
Yes, you need to wrap the text you don't want to be translated with
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
@@ -51,34 +51,39 @@ Yes, you need to wrap the text you don't want to be translated with <span class=
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
-
= 1.0.
|
55 |
-
*
|
|
|
|
|
56 |
|
57 |
-
= 1.0.
|
58 |
-
*
|
59 |
|
60 |
-
= 1.0.
|
61 |
-
*
|
|
|
62 |
|
63 |
-
= 1.0.
|
64 |
-
*
|
|
|
65 |
|
66 |
-
= 1.0.
|
67 |
-
*
|
68 |
|
69 |
= 1.0.5 =
|
70 |
* Bug fixed: settings save problem
|
71 |
|
72 |
-
= 1.0.
|
73 |
-
*
|
74 |
|
75 |
-
= 1.0.
|
76 |
-
*
|
77 |
-
* Link added
|
78 |
|
79 |
-
= 1.0.
|
80 |
-
*
|
81 |
-
* FAQ updated
|
82 |
|
83 |
-
= 1.0.
|
84 |
-
*
|
|
|
|
|
|
5 |
Tags: widget, plugin, sidebar, google, translate, translation, automatic translator, google translate, ajax translator, jquery translator
|
6 |
Requires at least: 2.3
|
7 |
Tested up to: 3.0
|
8 |
+
Stable tag: 1.0.10
|
9 |
|
10 |
+
Get translations with a single click between 58 languages (more than 98% of internet users) on your website with the help of Google Translate automatic translation service!
|
11 |
|
12 |
== Description ==
|
13 |
|
43 |
Here is the list: Afrikaans, Albanian, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Haitian Creole, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Irish, Italian, Japanese, Korean, Latvian, Lithuanian, Macedonian, Malay, Maltese, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Welsh, Yiddish
|
44 |
|
45 |
= Can I exclude some parts from being translated? =
|
46 |
+
Yes, you need to wrap the text you don't want to be translated with <span class="notranslate"></span>.
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.0.10 =
|
55 |
+
* Bug fixed: configuration settings were lost after update
|
56 |
+
* FAQ updated
|
57 |
+
* Changelog reordered
|
58 |
|
59 |
+
= 1.0.9 =
|
60 |
+
* Updated the description
|
61 |
|
62 |
+
= 1.0.8 =
|
63 |
+
* Keywords added in the description page
|
64 |
+
* FAQ updated
|
65 |
|
66 |
+
= 1.0.7 =
|
67 |
+
* Widget title changed
|
68 |
+
* Link added
|
69 |
|
70 |
+
= 1.0.6 =
|
71 |
+
* Bug fixed: magic_quotes_gpc problem
|
72 |
|
73 |
= 1.0.5 =
|
74 |
* Bug fixed: settings save problem
|
75 |
|
76 |
+
= 1.0.4 =
|
77 |
+
* Minor changes
|
78 |
|
79 |
+
= 1.0.3 =
|
80 |
+
* Stable version released
|
|
|
81 |
|
82 |
+
= 1.0.2 =
|
83 |
+
* RC2 version
|
|
|
84 |
|
85 |
+
= 1.0.1 =
|
86 |
+
* RC1 version
|
87 |
+
|
88 |
+
= 1.0.0 =
|
89 |
+
* Initial version for WordPress
|