Version Description
Download this release
Release Info
Developer | oferwald |
Plugin | Transposh WordPress Translation |
Version | 0.1.3 |
Comparing to | |
See all releases |
Code changes from version 0.1.2 to 0.1.3
- readme.txt +10 -3
- transposh.php +1 -1
- transposh_db.php +7 -7
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://transposh.org/
|
|
4 |
Tags: translation, widget, filter, bilingual, multilingual, transposh, language, RTL, Hebrew, Spanish, French, Russian, English, Arabic, crowdsourcing, context, wiki
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.7.1
|
7 |
-
Stable tag: 0.1.
|
8 |
|
9 |
Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
|
10 |
|
@@ -72,8 +72,13 @@ harnessed to get your message out to more people. Future versions will give more
|
|
72 |
|
73 |
= I have installed the plugin - nothing happens =
|
74 |
|
75 |
-
By default, automatic translation is on and it should be kicking in. If its off, and you don
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
If everything is setup correctly and still nothing happens, please contact us.
|
79 |
|
@@ -87,6 +92,8 @@ If everything is setup correctly and still nothing happens, please contact us.
|
|
87 |
|
88 |
== Release notes ==
|
89 |
|
|
|
|
|
90 |
* 2009/03/31 - 0.1.2
|
91 |
* Made sure our code passes w3c validation
|
92 |
* Added missing flags for two languages
|
4 |
Tags: translation, widget, filter, bilingual, multilingual, transposh, language, RTL, Hebrew, Spanish, French, Russian, English, Arabic, crowdsourcing, context, wiki
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.7.1
|
7 |
+
Stable tag: 0.1.3
|
8 |
|
9 |
Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
|
10 |
|
72 |
|
73 |
= I have installed the plugin - nothing happens =
|
74 |
|
75 |
+
By default, automatic translation is on and it should be kicking in. If its off, and you don’t have enough privileges to translate, nothing will happen.
|
76 |
+
|
77 |
+
Please be reminded of the following “rules”
|
78 |
+
|
79 |
+
1. A language marked as viewable will have its flag shown inside the widget.
|
80 |
+
1. A language marked for editing will allow a translator (anyone marked in the ‘who can translate’ section) to manually edit the page. i.e. the translate check-box will appear in the widget.
|
81 |
+
1. Enabling automatic translation will automatically translate a page (without requiring entering edit mode) for EVERYONE viewing the page regardless of the their role. However it will only take place for languages marked as editable.
|
82 |
|
83 |
If everything is setup correctly and still nothing happens, please contact us.
|
84 |
|
92 |
|
93 |
== Release notes ==
|
94 |
|
95 |
+
* 2009/04/02 - 0.1.3
|
96 |
+
* Fix for mysql 4.1 (thanks [Amit](http://landscaping-blog.com/))
|
97 |
* 2009/03/31 - 0.1.2
|
98 |
* Made sure our code passes w3c validation
|
99 |
* Added missing flags for two languages
|
transposh.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://transposh.org/#
|
5 |
Description: Translation filter for WordPress, After enabling please set languages at the <a href="options-general.php?page=Transposh">the options page</a> Want to help? visit our development site at <a href="http://trac.transposh.org/">trac.transposh.org</a>.
|
6 |
Author: Team Transposh
|
7 |
-
Version: 0.1.
|
8 |
Author URI: http://transposh.org/
|
9 |
License: GPL (http://www.gnu.org/licenses/gpl.txt)
|
10 |
*/
|
4 |
Plugin URI: http://transposh.org/#
|
5 |
Description: Translation filter for WordPress, After enabling please set languages at the <a href="options-general.php?page=Transposh">the options page</a> Want to help? visit our development site at <a href="http://trac.transposh.org/">trac.transposh.org</a>.
|
6 |
Author: Team Transposh
|
7 |
+
Version: 0.1.3
|
8 |
Author URI: http://transposh.org/
|
9 |
License: GPL (http://www.gnu.org/licenses/gpl.txt)
|
10 |
*/
|
transposh_db.php
CHANGED
@@ -36,7 +36,7 @@ define("TRANSLATIONS_TABLE", "translations");
|
|
36 |
define("TRANSLATIONS_LOG", "translations_log");
|
37 |
|
38 |
//Database version
|
39 |
-
define("DB_VERSION", "1.
|
40 |
|
41 |
//Constant used as key in options database
|
42 |
define("TRANSPOSH_DB_VERSION", "transposh_db_version");
|
@@ -139,7 +139,7 @@ function update_translation()
|
|
139 |
$original = $wpdb->escape(html_entity_decode($original, ENT_NOQUOTES, 'UTF-8'));
|
140 |
|
141 |
//add our own custom header - so we will know that we got here
|
142 |
-
header("Transposh: ver-0.1.
|
143 |
|
144 |
list($translated_text, $old_source) = fetch_translation($original, $lang);
|
145 |
if ($translated_text) {
|
@@ -173,7 +173,7 @@ function update_translation()
|
|
173 |
else
|
174 |
{
|
175 |
|
176 |
-
header("HTTP/1.0 404 Failed to update language database");
|
177 |
}
|
178 |
|
179 |
exit;
|
@@ -225,9 +225,9 @@ function setup_db()
|
|
225 |
$table_name = $wpdb->prefix . TRANSLATIONS_TABLE;
|
226 |
|
227 |
|
228 |
-
$sql = "CREATE TABLE $table_name (original VARCHAR(
|
229 |
"lang CHAR(5) NOT NULL,".
|
230 |
-
"translated VARCHAR(
|
231 |
"source TINYINT NOT NULL,".
|
232 |
"PRIMARY KEY (original, lang)) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci";
|
233 |
|
@@ -237,9 +237,9 @@ function setup_db()
|
|
237 |
$table_name = $wpdb->prefix . TRANSLATIONS_LOG;
|
238 |
|
239 |
|
240 |
-
$sql = "CREATE TABLE $table_name (original VARCHAR(
|
241 |
"lang CHAR(5) NOT NULL,".
|
242 |
-
"translated VARCHAR(
|
243 |
"translated_by VARCHAR(15),".
|
244 |
"source TINYINT NOT NULL,".
|
245 |
"timestamp TIMESTAMP,".
|
36 |
define("TRANSLATIONS_LOG", "translations_log");
|
37 |
|
38 |
//Database version
|
39 |
+
define("DB_VERSION", "1.03");
|
40 |
|
41 |
//Constant used as key in options database
|
42 |
define("TRANSPOSH_DB_VERSION", "transposh_db_version");
|
139 |
$original = $wpdb->escape(html_entity_decode($original, ENT_NOQUOTES, 'UTF-8'));
|
140 |
|
141 |
//add our own custom header - so we will know that we got here
|
142 |
+
header("Transposh: ver-0.1.3 db_version-". DB_VERSION);
|
143 |
|
144 |
list($translated_text, $old_source) = fetch_translation($original, $lang);
|
145 |
if ($translated_text) {
|
173 |
else
|
174 |
{
|
175 |
|
176 |
+
header("HTTP/1.0 404 Failed to update language database ".mysql_error());
|
177 |
}
|
178 |
|
179 |
exit;
|
225 |
$table_name = $wpdb->prefix . TRANSLATIONS_TABLE;
|
226 |
|
227 |
|
228 |
+
$sql = "CREATE TABLE $table_name (original VARCHAR(255) NOT NULL,".
|
229 |
"lang CHAR(5) NOT NULL,".
|
230 |
+
"translated VARCHAR(255),".
|
231 |
"source TINYINT NOT NULL,".
|
232 |
"PRIMARY KEY (original, lang)) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci";
|
233 |
|
237 |
$table_name = $wpdb->prefix . TRANSLATIONS_LOG;
|
238 |
|
239 |
|
240 |
+
$sql = "CREATE TABLE $table_name (original VARCHAR(255) NOT NULL,".
|
241 |
"lang CHAR(5) NOT NULL,".
|
242 |
+
"translated VARCHAR(255),".
|
243 |
"translated_by VARCHAR(15),".
|
244 |
"source TINYINT NOT NULL,".
|
245 |
"timestamp TIMESTAMP,".
|