Transposh WordPress Translation - Version 0.5.7

Version Description

Fix for critical bug in 0.5.6

Download this release

Release Info

Developer oferwald
Plugin Icon 128x128 Transposh WordPress Translation
Version 0.5.7
Comparing to
See all releases

Code changes from version 0.5.6 to 0.5.7

Files changed (4) hide show
  1. core/constants.php +1 -1
  2. readme.txt +8 -2
  3. transposh.php +1 -1
  4. wp/transposh_widget.php +3 -3
core/constants.php CHANGED
@@ -111,7 +111,7 @@ $bing_languages = array('en', 'ar', 'bg', 'zh', 'zh-tw', 'cs', 'da', 'nl', 'et',
111
  define('TRANSLATOR', 'translator');
112
 
113
  //Define for transposh plugin version
114
- define('TRANSPOSH_PLUGIN_VER', '0.5.6');
115
 
116
  //Define segment id prefix, will be included in span tag. also used as class identifier
117
  define('SPAN_PREFIX', 'tr_');
111
  define('TRANSLATOR', 'translator');
112
 
113
  //Define for transposh plugin version
114
+ define('TRANSPOSH_PLUGIN_VER', '0.5.7');
115
 
116
  //Define segment id prefix, will be included in span tag. also used as class identifier
117
  define('SPAN_PREFIX', 'tr_');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://transposh.org/donate/
4
  Tags: translation, widget, filter, bilingual, multilingual, transposh, translate, language, crowdsourcing, context, wiki, RTL, Hebrew, Spanish, French, Russian, English, Arabic, Portuguese
5
  Requires at least: 2.7
6
  Tested up to: 3.0
7
- Stable tag: 0.5.6
8
 
9
  Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
10
 
@@ -15,7 +15,7 @@ Transposh translation filter for WordPress offers a unique approach to blog tran
15
 
16
  * Support for any language - including RTL/LTR layouts
17
  * Unique drag/drop interface for choosing viewable/translatable languages
18
- * Multiple selection for widget appearances
19
  * Translation of external plugins without a need for .po/.mo files
20
  * Automatic translation mode for all content (including comments!)
21
  * Automatic translation can be triggered on demand by the readers or on the server side
@@ -159,6 +159,10 @@ images based on the current language
159
  5. Widget style selection box, with three basic appearances, flags below (in Hebrew), language selection on the top right and language list on the bottom right.
160
 
161
  == Upgrade Notice ==
 
 
 
 
162
  = 0.5.5 =
163
  Support for buddypress URLs
164
  = 0.5.3 =
@@ -179,6 +183,8 @@ This version provides integration with google-sitemaps-xml and wp-super-cache
179
  This version allows sorting of languages within the widget
180
 
181
  == Changelog ==
 
 
182
  = 2010/07/11 - 0.5.6 =
183
  * Pluggable widgets - read all about them on http://trac.transposh.org/wiki/WidgetWritingGuide
184
  * Avoid translation of trashed and draft post on translate all
4
  Tags: translation, widget, filter, bilingual, multilingual, transposh, translate, language, crowdsourcing, context, wiki, RTL, Hebrew, Spanish, French, Russian, English, Arabic, Portuguese
5
  Requires at least: 2.7
6
  Tested up to: 3.0
7
+ Stable tag: 0.5.7
8
 
9
  Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
10
 
15
 
16
  * Support for any language - including RTL/LTR layouts
17
  * Unique drag/drop interface for choosing viewable/translatable languages
18
+ * Multiple selection for widget appearances - with pluggable widgets
19
  * Translation of external plugins without a need for .po/.mo files
20
  * Automatic translation mode for all content (including comments!)
21
  * Automatic translation can be triggered on demand by the readers or on the server side
159
  5. Widget style selection box, with three basic appearances, flags below (in Hebrew), language selection on the top right and language list on the bottom right.
160
 
161
  == Upgrade Notice ==
162
+ = 0.5.7 =
163
+ Fix for critical bug in 0.5.6
164
+ = 0.5.6 =
165
+ Support pluggable widgets
166
  = 0.5.5 =
167
  Support for buddypress URLs
168
  = 0.5.3 =
183
  This version allows sorting of languages within the widget
184
 
185
  == Changelog ==
186
+ = 2010/07/11 - 0.5.7 =
187
+ * Fix for critical bug in widget inclusion (thanks [dgrut](http://www.buyacomputer.info/))
188
  = 2010/07/11 - 0.5.6 =
189
  * Pluggable widgets - read all about them on http://trac.transposh.org/wiki/WidgetWritingGuide
190
  * Avoid translation of trashed and draft post on translate all
transposh.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: http://transposh.org/
6
  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>.
7
  Author: Team Transposh
8
- Version: 0.5.6
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
  */
5
  Plugin URI: http://transposh.org/
6
  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>.
7
  Author: Team Transposh
8
+ Version: 0.5.7
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
  */
wp/transposh_widget.php CHANGED
@@ -110,11 +110,11 @@ class transposh_plugin_widget {
110
 
111
  $file = $this->transposh->options->get_widget_file();
112
  $widget_src = $this->transposh->transposh_plugin_dir . TRANSPOSH_DIR_WIDGETS . '/' . $file;
113
- if (file_exists($widget_src)) {
114
- require_once $widget_src;
115
  } else {
116
  $file = 'tpw_default.php';
117
- require_once $this->transposh->transposh_plugin_dir . TRANSPOSH_DIR_WIDGETS . '/' . $file; //TODO fix widget constant all around...
118
  }
119
  $this->base_widget_file_name = substr($file, 0, -4);
120
  }
110
 
111
  $file = $this->transposh->options->get_widget_file();
112
  $widget_src = $this->transposh->transposh_plugin_dir . TRANSPOSH_DIR_WIDGETS . '/' . $file;
113
+ if ($file && file_exists($widget_src)) {
114
+ include_once $widget_src;
115
  } else {
116
  $file = 'tpw_default.php';
117
+ include_once $this->transposh->transposh_plugin_dir . TRANSPOSH_DIR_WIDGETS . '/' . $file;
118
  }
119
  $this->base_widget_file_name = substr($file, 0, -4);
120
  }