Transposh WordPress Translation - Version 0.9.2

Version Description

Update for some bugs in parsing

Download this release

Release Info

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

Code changes from version 0.9.1 to 0.9.2

core/constants.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  //Language indicator in URL. i.e. lang=en
@@ -135,7 +135,8 @@ class transposh_consts {
135
  // Bing supported languages
136
  // (got this using Microsoft.Translator.GetLanguages() - fixed to match our codes)
137
  // @updated 2012-Feb-14 (mww)
138
- public static $bing_languages = array('en', 'ar', 'bg', 'ca', 'zh', 'zh-tw', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'es', 'sv', 'th', 'tr', 'uk', 'vi', 'mw');
 
139
  // Apertium supported languages
140
  // a bit tricky, but we'll see - starting with just esperanto
141
  public static $apertium_languages = array('eo');
@@ -163,7 +164,7 @@ class transposh_consts {
163
  define('TRANSLATOR', 'translator');
164
 
165
  //Define for transposh plugin version
166
- define('TRANSPOSH_PLUGIN_VER', '0.9.1');
167
 
168
  //Current jQuery UI
169
  define('JQUERYUI_VER', '1.9.2');
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  //Language indicator in URL. i.e. lang=en
135
  // Bing supported languages
136
  // (got this using Microsoft.Translator.GetLanguages() - fixed to match our codes)
137
  // @updated 2012-Feb-14 (mww)
138
+ // @updated 2013-Feb-21 (ms, ur)
139
+ public static $bing_languages = array('en', 'ar', 'bg', 'ca', 'zh', 'zh-tw', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'es', 'sv', 'th', 'tr', 'uk', 'vi', 'mw', 'ms', 'ur');
140
  // Apertium supported languages
141
  // a bit tricky, but we'll see - starting with just esperanto
142
  public static $apertium_languages = array('eo');
164
  define('TRANSLATOR', 'translator');
165
 
166
  //Define for transposh plugin version
167
+ define('TRANSPOSH_PLUGIN_VER', '0.9.2');
168
 
169
  //Current jQuery UI
170
  define('JQUERYUI_VER', '1.9.2');
core/logging.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*
core/parser.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  require_once("shd/simple_html_dom.php");
@@ -294,7 +294,7 @@ class parser {
294
  }
295
  $entities = '&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;' .
296
  '&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;' .
297
- '&oslash;&ugrave;&yuml;&oelig;&scaron;';
298
  return (stripos($entities, $entity) !== FALSE);
299
  }
300
 
@@ -335,8 +335,7 @@ class parser {
335
  function tag_phrase($string, $start, $end) {
336
  $phrase = trim(substr($string, $start, $end - $start));
337
  // $logstr = str_replace(array(chr(1),chr(2),chr(3),chr(4)), array('[1]','[2]','[3]','[4]'), $string);
338
- // logger ("p:$phrase, s:$logstr, st:$start, en:$end, gt:{$this->in_get_text}, gti:{$this->in_get_text_inner}");
339
- // logger ('');
340
  if ($this->in_get_text > $this->in_get_text_inner) {
341
  tp_logger('not tagging ' . $phrase . ' assumed gettext translated', 4);
342
  return;
@@ -428,8 +427,7 @@ class parser {
428
  elseif ($this->num_breaks && $num_len = $this->is_number($string, $pos)) {
429
  // logger ("numnum... $num_len");
430
  // this is the case of B2 or B2,
431
- if (($start == $pos) || ($this->is_white_space($string[$pos - 1])
432
- || ($this->is_sentence_breaker(@$string[$pos + $num_len - 1], @$string[$pos + $num_len], @$string[$pos + $num_len + 1]))) &&
433
  ($this->is_white_space(@$string[$pos + $num_len]) || $this->is_sentence_breaker(@$string[$pos + $num_len], @$string[$pos + $num_len + 1], @$string[$pos + $num_len + 2]))) {
434
  // we will now compensate on the number followed by breaker case, if we need to
435
  // logger ("compensate part1?");
@@ -661,17 +659,22 @@ class parser {
661
  }
662
 
663
  // create our dom
 
664
  $this->html = str_get_html($string);
665
  // mark translateable elements
666
- $this->html->find('html', 0)->lang = ''; // Document defined lang may be preset to correct lang, but should be ignored TODO: Better?
 
667
  $this->translate_tagging($this->html->root);
668
 
669
  // first fix the html tag itself - we might need to to the same for all such attributes with flipping
670
- if ($this->dir_rtl) $this->html->find('html', 0)->dir = 'rtl';
671
- else $this->html->find('html', 0)->dir = 'ltr';
 
 
672
 
673
  if ($this->lang) {
674
- $this->html->find('html', 0)->lang = $this->lang;
 
675
  // add support for <meta name="language" content="<lang>">
676
  if ($this->html->find('meta[name=language]')) {
677
  $this->html->find('meta[name=language]')->content = $this->lang;
@@ -798,12 +801,13 @@ class parser {
798
  }
799
  // store replacements
800
  if ($translated_text) {
801
- $replace[$translated_text] = $ep;
802
  }
803
  }
804
  // do replacements in reverse
805
- foreach (array_reverse($replace, true) as $replace => $epg) {
806
- $e->outertext = substr_replace($e->outertext, $replace, $epg->start, $epg->len);
 
807
  }
808
 
809
  // this adds saved spans to the first not in select element which is in the body
@@ -830,13 +834,13 @@ class parser {
830
  list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));
831
  // more stats
832
  $this->stats->total_phrases++;
833
- if ($ep->inbody) $this->stats->hidden_phrases++; else
834
- $this->stats->meta_phrases++;
835
  if ($translated_text) {
836
  $this->stats->translated_phrases++;
837
  if ($ep->inbody)
838
- $this->stats->hidden_translated_phrases++; else
839
- $this->stats->meta_translated_phrases++;
840
  if ($source == 0)
841
  $this->stats->human_translated_phrases++;
842
  }
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  require_once("shd/simple_html_dom.php");
294
  }
295
  $entities = '&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;' .
296
  '&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;' .
297
+ '&oslash;&ugrave;&yuml;&oelig;&scaron;&nbsp;';
298
  return (stripos($entities, $entity) !== FALSE);
299
  }
300
 
335
  function tag_phrase($string, $start, $end) {
336
  $phrase = trim(substr($string, $start, $end - $start));
337
  // $logstr = str_replace(array(chr(1),chr(2),chr(3),chr(4)), array('[1]','[2]','[3]','[4]'), $string);
338
+ // tp_logger ("p:$phrase, s:$logstr, st:$start, en:$end, gt:{$this->in_get_text}, gti:{$this->in_get_text_inner}");
 
339
  if ($this->in_get_text > $this->in_get_text_inner) {
340
  tp_logger('not tagging ' . $phrase . ' assumed gettext translated', 4);
341
  return;
427
  elseif ($this->num_breaks && $num_len = $this->is_number($string, $pos)) {
428
  // logger ("numnum... $num_len");
429
  // this is the case of B2 or B2,
430
+ if (($start == $pos) || ($this->is_white_space($string[$pos - 1]) || ($this->is_sentence_breaker(@$string[$pos + $num_len - 1], @$string[$pos + $num_len], @$string[$pos + $num_len + 1]))) &&
 
431
  ($this->is_white_space(@$string[$pos + $num_len]) || $this->is_sentence_breaker(@$string[$pos + $num_len], @$string[$pos + $num_len + 1], @$string[$pos + $num_len + 2]))) {
432
  // we will now compensate on the number followed by breaker case, if we need to
433
  // logger ("compensate part1?");
659
  }
660
 
661
  // create our dom
662
+ $string = str_replace(chr(0xC2) . chr(0xA0), ' ', $string); // annoying NBSPs?
663
  $this->html = str_get_html($string);
664
  // mark translateable elements
665
+ if ($this->html->find('html', 0))
666
+ $this->html->find('html', 0)->lang = ''; // Document defined lang may be preset to correct lang, but should be ignored TODO: Better?
667
  $this->translate_tagging($this->html->root);
668
 
669
  // first fix the html tag itself - we might need to to the same for all such attributes with flipping
670
+ if ($this->html->find('html', 0)) {
671
+ if ($this->dir_rtl) $this->html->find('html', 0)->dir = 'rtl';
672
+ else $this->html->find('html', 0)->dir = 'ltr';
673
+ }
674
 
675
  if ($this->lang) {
676
+ if ($this->html->find('html', 0))
677
+ $this->html->find('html', 0)->lang = $this->lang;
678
  // add support for <meta name="language" content="<lang>">
679
  if ($this->html->find('meta[name=language]')) {
680
  $this->html->find('meta[name=language]')->content = $this->lang;
801
  }
802
  // store replacements
803
  if ($translated_text) {
804
+ $replace[] = array($translated_text, $ep);
805
  }
806
  }
807
  // do replacements in reverse
808
+ foreach (array_reverse($replace) as $epag) {
809
+ list($replacetext, $epg) = $epag;
810
+ $e->outertext = substr_replace($e->outertext, $replacetext, $epg->start, $epg->len);
811
  }
812
 
813
  // this adds saved spans to the first not in select element which is in the body
834
  list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));
835
  // more stats
836
  $this->stats->total_phrases++;
837
+ if ($ep->inbody) $this->stats->hidden_phrases++;
838
+ else $this->stats->meta_phrases++;
839
  if ($translated_text) {
840
  $this->stats->translated_phrases++;
841
  if ($ep->inbody)
842
+ $this->stats->hidden_translated_phrases++;
843
+ else $this->stats->meta_translated_phrases++;
844
  if ($source == 0)
845
  $this->stats->human_translated_phrases++;
846
  }
core/utils.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /**
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /**
js/admin/backendtranslate.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(e){function t(b,a){n+=1;e("#progress_bar").progressbar("value",n/o*100);e("#p").text("("+a+") "+b);n===o&&e("#tr_loading").data("done",true)}function j(b,a,c,f){a=e("<div>"+e.trim(a)+"</div>").text();t(a,c);clearTimeout(p);l+=1;k.push(b);g.push(a);h.push(c);i.push(f);p=setTimeout(function(){var a={action:"tp_translation",items:l},d;for(d=0;d<l;d+=1)k[d]!==k[d-1]&&(a["tk"+d]=k[d]),h[d]!==h[d-1]&&(a["ln"+d]=h[d]),g[d]!==g[d-1]&&(a["tr"+d]=g[d]),i[d]!==i[d-1]&&(a["sr"+d]=i[d]);e.ajax({type:"POST",
12
  url:t_jp.ajaxurl,data:a,success:function(){},error:function(){}});l=0;g=[];k=[];h=[];i=[]},200)}function u(b,a,c){var f=c;f==="zh"?f="zh-chs":f==="zh-tw"&&(f="zh-cht");t_jp.dmt(a,function(a){e(a).each(function(a){j(b[a],this.TranslatedText,c,2)})},f)}function v(b,a,c){t_jp.dat(a,function(a){a.responseStatus>=200&&a.responseStatus<300&&(a.responseData.translatedText!==void 0?j(b[0],a.responseData.translatedText):e(a.responseData).each(function(a){this.responseStatus===200&&j(b[a],this.responseData.translatedText,
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(e){function t(b,a){n+=1;e("#progress_bar").progressbar("value",n/o*100);e("#p").text("("+a+") "+b);n===o&&e("#tr_loading").data("done",true)}function j(b,a,c,f){a=e("<div>"+e.trim(a)+"</div>").text();t(a,c);clearTimeout(p);l+=1;k.push(b);g.push(a);h.push(c);i.push(f);p=setTimeout(function(){var a={action:"tp_translation",items:l},d;for(d=0;d<l;d+=1)k[d]!==k[d-1]&&(a["tk"+d]=k[d]),h[d]!==h[d-1]&&(a["ln"+d]=h[d]),g[d]!==g[d-1]&&(a["tr"+d]=g[d]),i[d]!==i[d-1]&&(a["sr"+d]=i[d]);e.ajax({type:"POST",
12
  url:t_jp.ajaxurl,data:a,success:function(){},error:function(){}});l=0;g=[];k=[];h=[];i=[]},200)}function u(b,a,c){var f=c;f==="zh"?f="zh-chs":f==="zh-tw"&&(f="zh-cht");t_jp.dmt(a,function(a){e(a).each(function(a){j(b[a],this.TranslatedText,c,2)})},f)}function v(b,a,c){t_jp.dat(a,function(a){a.responseStatus>=200&&a.responseStatus<300&&(a.responseData.translatedText!==void 0?j(b[0],a.responseData.translatedText):e(a.responseData).each(function(a){this.responseStatus===200&&j(b[a],this.responseData.translatedText,
js/admin/commentslang.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(a){var c={en:"English - English",af:"Afrikaans - Afrikaans",sq:"Albanian - Shqip",ar:"Arabic - \u0627\u0644\u0639\u0631\u0628\u064a\u0629",hy:"Armenian - \u0540\u0561\u0575\u0565\u0580\u0565\u0576",az:"Azerbaijani - az\u0259rbaycan dili",eu:"Basque - Euskara",be:"Belarusian - \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bn:"Bengali - \u09ac\u09be\u0982\u09b2\u09be",bg:"Bulgarian - \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",ca:"Catalan - Catal\u00e0",zh:"Chinese (Simplified) - \u4e2d\u6587(\u7b80\u4f53)",
12
  "zh-tw":"Chinese (Traditional) - \u4e2d\u6587(\u6f22\u5b57)",hr:"Croatian - Hrvatski",cs:"Czech - \u010ce\u0161tina",da:"Danish - Dansk",nl:"Dutch - Nederlands",eo:"Esperanto - Esperanto",et:"Estonian - Eesti keel",fi:"Finnish - Suomi",fr:"French - Fran\u00e7ais",gl:"Galician - Galego",ka:"Georgian - \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",de:"German - Deutsch",el:"Greek - \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",gu:"Gujarati - \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",ht:"Haitian - Krey\u00f2l ayisyen",
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(a){var c={en:"English - English",af:"Afrikaans - Afrikaans",sq:"Albanian - Shqip",ar:"Arabic - \u0627\u0644\u0639\u0631\u0628\u064a\u0629",hy:"Armenian - \u0540\u0561\u0575\u0565\u0580\u0565\u0576",az:"Azerbaijani - az\u0259rbaycan dili",eu:"Basque - Euskara",be:"Belarusian - \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bn:"Bengali - \u09ac\u09be\u0982\u09b2\u09be",bg:"Bulgarian - \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",ca:"Catalan - Catal\u00e0",zh:"Chinese (Simplified) - \u4e2d\u6587(\u7b80\u4f53)",
12
  "zh-tw":"Chinese (Traditional) - \u4e2d\u6587(\u6f22\u5b57)",hr:"Croatian - Hrvatski",cs:"Czech - \u010ce\u0161tina",da:"Danish - Dansk",nl:"Dutch - Nederlands",eo:"Esperanto - Esperanto",et:"Estonian - Eesti keel",fi:"Finnish - Suomi",fr:"French - Fran\u00e7ais",gl:"Galician - Galego",ka:"Georgian - \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",de:"German - Deutsch",el:"Greek - \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",gu:"Gujarati - \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",ht:"Haitian - Krey\u00f2l ayisyen",
js/admin/contexthelp.js CHANGED
@@ -1,11 +1,11 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(a){a(".tp_help").live("click",function(b){b.preventDefault();window.scrollTo(0,0);a("#tab-link-"+jQuery(this).attr("rel")+" a").trigger("click");a("#contextual-help-link").hasClass("screen-meta-active")||a("#contextual-help-link").trigger("click")})})(jQuery);
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(a){a(".tp_help").live("click",function(b){b.preventDefault();window.scrollTo(0,0);a("#tab-link-"+jQuery(this).attr("rel")+" a").trigger("click");a("#contextual-help-link").hasClass("screen-meta-active")||a("#contextual-help-link").trigger("click")})})(jQuery);
js/admin/languages.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(a){a(function(){a("#sortable").sortable({placeholder:"highlight",update:function(c,b){b.item.unbind("click");b.item.one("click",function(b){b.stopImmediatePropagation();a(this).click(clickfunction)})}});a("#sortable").disableSelection();a("#changename").click(function(){a(".langname").toggleClass("hidden");return false});a("#selectall").click(function(){a("#sortable .languages").addClass("lng_active");a("#sortable .lng_active").each(function(){a("input",this).val(a(this).attr("id")+",v")});
12
  return false});clickfunction=function(){a(this).attr("id")!=a("#default_list li").attr("id")&&(a(this).toggleClass("lng_active"),a("input",this).val(a(this).attr("id")+(a(this).hasClass("lng_active")?",v":",")))};a(".languages").dblclick(clickfunction).click(clickfunction);a("#default_lang").droppable({accept:".languages",activeClass:"highlight_default",drop:function(c,b){a("#default_list").empty();a(b.draggable.clone().removeAttr("style").removeClass("lng_active")).appendTo("#default_list").show("slow");
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(a){a(function(){a("#sortable").sortable({placeholder:"highlight",update:function(c,b){b.item.unbind("click");b.item.one("click",function(b){b.stopImmediatePropagation();a(this).click(clickfunction)})}});a("#sortable").disableSelection();a("#changename").click(function(){a(".langname").toggleClass("hidden");return false});a("#selectall").click(function(){a("#sortable .languages").addClass("lng_active");a("#sortable .lng_active").each(function(){a("input",this).val(a(this).attr("id")+",v")});
12
  return false});clickfunction=function(){a(this).attr("id")!=a("#default_list li").attr("id")&&(a(this).toggleClass("lng_active"),a("input",this).val(a(this).attr("id")+(a(this).hasClass("lng_active")?",v":",")))};a(".languages").dblclick(clickfunction).click(clickfunction);a("#default_lang").droppable({accept:".languages",activeClass:"highlight_default",drop:function(c,b){a("#default_list").empty();a(b.draggable.clone().removeAttr("style").removeClass("lng_active")).appendTo("#default_list").show("slow");
js/admin/utils.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(a){a(function(){a.ajaxSetup({cache:false});a("#transposh-reset-options").click(function(){if(!confirm("Are you sure you want to do this?"))return false;if(!confirm("Are you REALLY sure you want to do this, your configuration will be reset?"))return false;a.post(ajaxurl,{action:"tp_reset"})});backupclick=function(){a("#transposh-backup").unbind("click").click(function(){return false}).text("Backup In Progress");a.post(ajaxurl,{action:"tp_backup"},function(b){var c="red";b[0]=="2"&&(c="green");
12
  a("#backup_result").html(b).css("color",c);a("#transposh-backup").unbind("click").click(backupclick).text("Do Backup Now")});return false};a("#transposh-backup").click(backupclick);cleanautoclick=function(b,c){if(!confirm("Are you sure you want to do this?"))return false;if(b==0&&!confirm("Are you REALLY sure you want to do this?"))return false;var d=c.text();c.unbind("click").click(function(){return false}).text("Cleanup in progress");a.post(ajaxurl,{action:"tp_cleanup",days:b},function(){c.unbind("click").click(function(){cleanautoclick(b,
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(a){a(function(){a.ajaxSetup({cache:false});a("#transposh-reset-options").click(function(){if(!confirm("Are you sure you want to do this?"))return false;if(!confirm("Are you REALLY sure you want to do this, your configuration will be reset?"))return false;a.post(ajaxurl,{action:"tp_reset"})});backupclick=function(){a("#transposh-backup").unbind("click").click(function(){return false}).text("Backup In Progress");a.post(ajaxurl,{action:"tp_backup"},function(b){var c="red";b[0]=="2"&&(c="green");
12
  a("#backup_result").html(b).css("color",c);a("#transposh-backup").unbind("click").click(backupclick).text("Do Backup Now")});return false};a("#transposh-backup").click(backupclick);cleanautoclick=function(b,c){if(!confirm("Are you sure you want to do this?"))return false;if(b==0&&!confirm("Are you REALLY sure you want to do this?"))return false;var d=c.text();c.unbind("click").click(function(){return false}).text("Cleanup in progress");a.post(ajaxurl,{action:"tp_cleanup",days:b},function(){c.unbind("click").click(function(){cleanautoclick(b,
js/admin/warningclose.js CHANGED
@@ -1,11 +1,11 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(a){a(function(){a(".warning-close").click(function(){a(this).parents("div:first").hide();a.post(ajaxurl,{action:"tp_close_warning",id:a(this).attr("id")})})})})(jQuery);
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(a){a(function(){a(".warning-close").click(function(){a(this).parents("div:first").hide();a.post(ajaxurl,{action:"tp_close_warning",id:a(this).attr("id")})})})})(jQuery);
js/l/de.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Schlie\u00dfen ohne Speichern?","You have made a change to the translation. Are you sure you want to discard it?":"Sie haben die \u00dcbersetzung bearbeitet. Sind Sie sicher, dass Sie abbrechen wollen?",History:"Verlauf","Loading...":"Laden...",Translated:"\u00dcbersetzt",By:"von",At:"\u00fcber",google:"Google",bing:"Bing",apertium:"Apertium","manual translation":"manuelle \u00dcbersetzung","bing suggest":"Bing Suggest","google suggest":"Google Suggest","apertium suggest":"Apertium Suggest",
12
  "Edit Translation":"\u00dcbersetzung bearbeiten","Original text":"Originaltext","read alternate translations":"alternative \u00dcbersetzung lesen","previous translation":"Vorherige","find on page":"Auf Seite suchen","next translation":"N\u00e4chste","Translate to":"\u00dcbersetzen nach","view translation log":"\u00dcbersetzungsprotokoll anzeigen","virtual keyboard":"virtuelle Tastatur","approve translation":"\u00dcbersetzung genehmigen","delete":"L\u00f6schen",Discard:"Verwerfen",Cancel:"Abbrechen"};
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Schlie\u00dfen ohne Speichern?","You have made a change to the translation. Are you sure you want to discard it?":"Sie haben die \u00dcbersetzung bearbeitet. Sind Sie sicher, dass Sie abbrechen wollen?",History:"Verlauf","Loading...":"Laden...",Translated:"\u00dcbersetzt",By:"von",At:"\u00fcber",google:"Google",bing:"Bing",apertium:"Apertium","manual translation":"manuelle \u00dcbersetzung","bing suggest":"Bing Suggest","google suggest":"Google Suggest","apertium suggest":"Apertium Suggest",
12
  "Edit Translation":"\u00dcbersetzung bearbeiten","Original text":"Originaltext","read alternate translations":"alternative \u00dcbersetzung lesen","previous translation":"Vorherige","find on page":"Auf Seite suchen","next translation":"N\u00e4chste","Translate to":"\u00dcbersetzen nach","view translation log":"\u00dcbersetzungsprotokoll anzeigen","virtual keyboard":"virtuelle Tastatur","approve translation":"\u00dcbersetzung genehmigen","delete":"L\u00f6schen",Discard:"Verwerfen",Cancel:"Abbrechen"};
js/l/es.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Cerrar sin guardar?","You have made a change to the translation. Are you sure you want to discard it?":"Has cambiado la traducion. Estas seguro que lo quieres eliminar?",History:"Historia","Loading...":"Cargando...",Translated:"Traducido",By:"Por",At:"En",google:"google",bing:"bing",apertium:"apertium","manual translation":"traducci\u00f3n manual","bing suggest":"sugerencia de bing","google suggest":"sugerencia de google","apertium suggest":"sugerencia de apertium",
12
  "Edit Translation":"Editar traducci\u00f3n","Original text":"Texto original","read alternate translations":"lee traducci\u00f3nes alternativas","previous translation":"traducci\u00f3n anterior","find on page":"encuentra en la pagina","next translation":"siguiente traducci\u00f3n","Translate to":"Traducir a","view translation log":"muestra diario de traducion","virtual keyboard":"teclado virtual","approve translation":"aprueba traducion","delete":"eliminar",Discard:"Descartar",Cancel:"Cancelar"};
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Cerrar sin guardar?","You have made a change to the translation. Are you sure you want to discard it?":"Has cambiado la traducion. Estas seguro que lo quieres eliminar?",History:"Historia","Loading...":"Cargando...",Translated:"Traducido",By:"Por",At:"En",google:"google",bing:"bing",apertium:"apertium","manual translation":"traducci\u00f3n manual","bing suggest":"sugerencia de bing","google suggest":"sugerencia de google","apertium suggest":"sugerencia de apertium",
12
  "Edit Translation":"Editar traducci\u00f3n","Original text":"Texto original","read alternate translations":"lee traducci\u00f3nes alternativas","previous translation":"traducci\u00f3n anterior","find on page":"encuentra en la pagina","next translation":"siguiente traducci\u00f3n","Translate to":"Traducir a","view translation log":"muestra diario de traducion","virtual keyboard":"teclado virtual","approve translation":"aprueba traducion","delete":"eliminar",Discard:"Descartar",Cancel:"Cancelar"};
js/l/fa.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u0628\u062f\u0648\u0646 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc \u0628\u0628\u0646\u062f\u06cc\u0645\u061f","You have made a change to the translation. Are you sure you want to discard it?":"\u0634\u0645\u0627 \u062f\u0631 \u062a\u0631\u062c\u0645\u0647 \u06cc\u06a9 \u062f\u06af\u0631\u06af\u0648\u0646\u06cc \u0633\u0627\u062e\u062a\u0647 \u0627\u06cc\u062f \u0622\u06cc\u0627 \u0622\u06af\u0627\u0647\u0627\u0646\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0648\u0631 \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f\u061f ",
12
  History:"\u067e\u06cc\u0634\u06cc\u0646\u0647","Loading...":"\u0628\u0627\u0631\u06af\u06cc\u0631\u06cc...",Translated:"\u062a\u0631\u062c\u0645\u0647 \u0634\u062f\u0647",By:"\u0628\u0627",At:"\u062f\u0631",google:"\u06af\u0648\u06af\u0644",bing:"\u0628\u06cc\u0646\u06af",apertium:"\u0627\u0650\u06cc \u067e\u0650\u0631\u0634\u0650\u0645","manual translation":"\u062a\u0631\u062c\u0645\u0647 \u06cc \u062f\u0633\u062a\u06cc","bing suggest":"\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0628\u06cc\u0646\u06af",
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u0628\u062f\u0648\u0646 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc \u0628\u0628\u0646\u062f\u06cc\u0645\u061f","You have made a change to the translation. Are you sure you want to discard it?":"\u0634\u0645\u0627 \u062f\u0631 \u062a\u0631\u062c\u0645\u0647 \u06cc\u06a9 \u062f\u06af\u0631\u06af\u0648\u0646\u06cc \u0633\u0627\u062e\u062a\u0647 \u0627\u06cc\u062f \u0622\u06cc\u0627 \u0622\u06af\u0627\u0647\u0627\u0646\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0648\u0631 \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f\u061f ",
12
  History:"\u067e\u06cc\u0634\u06cc\u0646\u0647","Loading...":"\u0628\u0627\u0631\u06af\u06cc\u0631\u06cc...",Translated:"\u062a\u0631\u062c\u0645\u0647 \u0634\u062f\u0647",By:"\u0628\u0627",At:"\u062f\u0631",google:"\u06af\u0648\u06af\u0644",bing:"\u0628\u06cc\u0646\u06af",apertium:"\u0627\u0650\u06cc \u067e\u0650\u0631\u0634\u0650\u0645","manual translation":"\u062a\u0631\u062c\u0645\u0647 \u06cc \u062f\u0633\u062a\u06cc","bing suggest":"\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0628\u06cc\u0646\u06af",
js/l/he.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u05dc\u05e1\u05d2\u05d5\u05e8 \u05d1\u05dc\u05d9 \u05dc\u05e9\u05de\u05d5\u05e8?","You have made a change to the translation. Are you sure you want to discard it?":"\u05d1\u05d9\u05e6\u05e2\u05ea \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d1\u05ea\u05e8\u05d2\u05d5\u05dd, \u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05d1\u05d8\u05d5\u05d7 \u05e9\u05d0\u05ea\u05d4 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d5\u05d5\u05ea\u05e8 \u05e2\u05dc\u05d9\u05d5?",History:"\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4",
12
  "Loading...":"\u05d8\u05d5\u05e2\u05df...",Translated:"\u05ea\u05d5\u05e8\u05d2\u05dd",By:"\u05e2\u05dc \u05d9\u05d3\u05d9",At:"\u05d1",google:"\u05d2\u05d5\u05d2\u05dc",bing:"\u05d1\u05d9\u05e0\u05d2",apertium:"\u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd","manual translation":"\u05ea\u05e8\u05d2\u05d5\u05dd \u05d9\u05d3\u05e0\u05d9","bing suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d1\u05d9\u05e0\u05d2","google suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d2\u05d5\u05d2\u05dc","apertium suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd",
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u05dc\u05e1\u05d2\u05d5\u05e8 \u05d1\u05dc\u05d9 \u05dc\u05e9\u05de\u05d5\u05e8?","You have made a change to the translation. Are you sure you want to discard it?":"\u05d1\u05d9\u05e6\u05e2\u05ea \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d1\u05ea\u05e8\u05d2\u05d5\u05dd, \u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05d1\u05d8\u05d5\u05d7 \u05e9\u05d0\u05ea\u05d4 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d5\u05d5\u05ea\u05e8 \u05e2\u05dc\u05d9\u05d5?",History:"\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4",
12
  "Loading...":"\u05d8\u05d5\u05e2\u05df...",Translated:"\u05ea\u05d5\u05e8\u05d2\u05dd",By:"\u05e2\u05dc \u05d9\u05d3\u05d9",At:"\u05d1",google:"\u05d2\u05d5\u05d2\u05dc",bing:"\u05d1\u05d9\u05e0\u05d2",apertium:"\u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd","manual translation":"\u05ea\u05e8\u05d2\u05d5\u05dd \u05d9\u05d3\u05e0\u05d9","bing suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d1\u05d9\u05e0\u05d2","google suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d2\u05d5\u05d2\u05dc","apertium suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd",
js/l/it.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Chiudere senza salvare?","You have made a change to the translation. Are you sure you want to discard it?":"&Egrave; stata fatta una modifica alla traduzione. Si &egrave; sicuri di volerla scartare?",History:"Storia","Loading...":"Caricamento...",Translated:"Tradotto",By:"Da",At:"A",google:"google",bing:"bing",apertium:"apertium","manual translation":"traduzione manuale","bing suggest":"bing suggerisce","google suggest":"google suggerisce","apertium suggest":"apertium suggerisce",
12
  "Edit Translation":"Modifica Traduzione","Original text":"Testo Originale","read alternate translations":"leggi le traduzioni alternative","previous translation":"traduzione precedente","find on page":"trova nella pagina","next translation":"prossima traduzione","Translate to":"Tradotto in","view translation log":"guarda il log delle traduzioni","virtual keyboard":"tastiera virtuale","approve translation":"approva traduzione","delete":"cancella",Discard:"Scarta",Cancel:"Cancella"};
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Chiudere senza salvare?","You have made a change to the translation. Are you sure you want to discard it?":"&Egrave; stata fatta una modifica alla traduzione. Si &egrave; sicuri di volerla scartare?",History:"Storia","Loading...":"Caricamento...",Translated:"Tradotto",By:"Da",At:"A",google:"google",bing:"bing",apertium:"apertium","manual translation":"traduzione manuale","bing suggest":"bing suggerisce","google suggest":"google suggerisce","apertium suggest":"apertium suggerisce",
12
  "Edit Translation":"Modifica Traduzione","Original text":"Testo Originale","read alternate translations":"leggi le traduzioni alternative","previous translation":"traduzione precedente","find on page":"trova nella pagina","next translation":"prossima traduzione","Translate to":"Tradotto in","view translation log":"guarda il log delle traduzioni","virtual keyboard":"tastiera virtuale","approve translation":"approva traduzione","delete":"cancella",Discard:"Scarta",Cancel:"Cancella"};
js/l/nl.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Sluiten zonder op te slaan?","You have made a change to the translation. Are you sure you want to discard it?":"Je hebt de vertaling aangepast. Weet je zeker dat je dat wilt annuleren?",History:"Geschiedenis","Loading...":"Aan het laden...",Translated:"Vertaald",By:"Door",At:"Op",google:"google",bing:"bing",apertium:"apertium","manual translation":"eigen vertaling","bing suggest":"bing suggestie","google suggest":"google suggestie","apertium suggest":"apertium suggestie",
12
  "Edit Translation":"Vertaling aanpassen","Original text":"Oorspronkelijke tekst","read alternate translations":"bekijk alternatieve vertaling","previous translation":"vorige","find on page":"laat op de pagina zien","next translation":"volgende","Translate to":"Vertaal naar","view translation log":"Bekijk vertaallog","virtual keyboard":"virtueel toetsenbord","approve translation":"vertaling goedkeuren","delete":"verwijder",Discard:"weggooien",Cancel:"Annuleren"};
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Sluiten zonder op te slaan?","You have made a change to the translation. Are you sure you want to discard it?":"Je hebt de vertaling aangepast. Weet je zeker dat je dat wilt annuleren?",History:"Geschiedenis","Loading...":"Aan het laden...",Translated:"Vertaald",By:"Door",At:"Op",google:"google",bing:"bing",apertium:"apertium","manual translation":"eigen vertaling","bing suggest":"bing suggestie","google suggest":"google suggestie","apertium suggest":"apertium suggestie",
12
  "Edit Translation":"Vertaling aanpassen","Original text":"Oorspronkelijke tekst","read alternate translations":"bekijk alternatieve vertaling","previous translation":"vorige","find on page":"laat op de pagina zien","next translation":"volgende","Translate to":"Vertaal naar","view translation log":"Bekijk vertaallog","virtual keyboard":"virtueel toetsenbord","approve translation":"vertaling goedkeuren","delete":"verwijder",Discard:"weggooien",Cancel:"Annuleren"};
js/l/ru.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0431\u0435\u0437 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f?","You have made a change to the translation. Are you sure you want to discard it?":"\u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u044d\u0442\u043e?",
12
  History:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f","Loading...":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...",Translated:"\u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043e",By:"",At:"\u0412",google:"",bing:"",apertium:"","manual translation":"\u0440\u0443\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434","bing suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 bing","google suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 google",
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0431\u0435\u0437 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f?","You have made a change to the translation. Are you sure you want to discard it?":"\u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u044d\u0442\u043e?",
12
  History:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f","Loading...":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...",Translated:"\u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043e",By:"",At:"\u0412",google:"",bing:"",apertium:"","manual translation":"\u0440\u0443\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434","bing suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 bing","google suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 google",
js/l/tr.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Transposh v0.9.2
3
+ * http://transposh.org/
4
+ *
5
+ * Copyright 2013, Team Transposh
6
+ * Licensed under the GPL Version 2 or higher.
7
+ * http://transposh.org/license
8
+ *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
+ */
11
+ t_jp.l={"Close without saving?":"Kaydetmeden \u00e7\u0131k\u0131\u015f yap?","You have made a change to the translation. Are you sure you want to discard it?":"\u00c7eviride de\u011fi\u015flikler yapt\u0131n\u0131z. Kaydetmeden \u00e7\u0131k\u0131\u015f yapmak istedi\u011finizden emin misiniz?",History:"Ge\u00e7mi\u015f","Loading...":"Y\u00fckleniyor...",Translated:"\u00c7evirildi",By:"\u00c7eviren:",At:"\u00c7evirildi\u011fi Sistem:",google:"google",bing:"bing",apertium:"apertium","manual translation":"manuel \u00e7eviri",
12
+ "bing suggest":"bing tavsiyesi","google suggest":"google tavsiyesi","apertium suggest":"apertium tavsiyesi","Edit Translation":"\u00c7eviriyi D\u00fczenle","Original text":"Orjinal yaz\u0131","read alternate translations":"alternatif \u00e7evirileri oku ","previous translation":"ge\u00e7mi\u015f \u00e7eviri","find on page":"sayfada aroma yap","next translation":"gelecek \u00e7eviri","Translate to":"\u015eu dile \u00e7evir","view translation log":"\u00e7eviri log verilerini g\u00f6r\u00fcnt\u00fcle",
13
+ "virtual keyboard":"sanal klavye","approve translation":"\u00e7eviriyi kabul et","delete":"sil",Discard:"\u0130ptal et",Cancel:"Vazge\u00e7"};
js/transposh.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(c){function A(b,a){if(c.trim(a).length!==0){var d=function(){var b=c(this).attr("id").substr(c(this).attr("id").lastIndexOf("_")+1),a=c("#"+e+"img_"+b);c("#"+e+b).attr("data-source",1);a.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-yellow")};c("*[data-token='"+b+"'][data-hidden!='y']").html(a).each(d);c("*[data-token='"+b+"'][data-hidden='y']").attr("data-trans",a).each(d)}}function B(b,a){clearTimeout(q);h.push(b);o.push(a);A(b,a);q=setTimeout(function(){var b=
12
  {ln0:t_jp.lang,sr0:p,action:"tp_translation",items:h.length},a;for(a=0;a<h.length;a+=1)b["tk"+a]=h[a],b["tr"+a]=o[a],r+=c("*[data-token='"+h[a]+"']").size();c.ajax({type:"POST",url:t_jp.ajaxurl,data:b,success:function(){var b=r/i*100;t_jp.progress&&c("#"+k).progressbar("value",b)}});o=[];h=[]},200)}function j(b,a){B(b,c("<div>"+c.trim(a)+"</div>").text());var d=(i-c("."+e+'[data-source=""]').size())/i*100;t_jp.progress&&c("#"+l).progressbar("value",d)}function s(b,a,d){c.ajax({url:t_jp.ajaxurl,dataType:"json",
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(c){function A(b,a){if(c.trim(a).length!==0){var d=function(){var b=c(this).attr("id").substr(c(this).attr("id").lastIndexOf("_")+1),a=c("#"+e+"img_"+b);c("#"+e+b).attr("data-source",1);a.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-yellow")};c("*[data-token='"+b+"'][data-hidden!='y']").html(a).each(d);c("*[data-token='"+b+"'][data-hidden='y']").attr("data-trans",a).each(d)}}function B(b,a){clearTimeout(q);h.push(b);o.push(a);A(b,a);q=setTimeout(function(){var b=
12
  {ln0:t_jp.lang,sr0:p,action:"tp_translation",items:h.length},a;for(a=0;a<h.length;a+=1)b["tk"+a]=h[a],b["tr"+a]=o[a],r+=c("*[data-token='"+h[a]+"']").size();c.ajax({type:"POST",url:t_jp.ajaxurl,data:b,success:function(){var b=r/i*100;t_jp.progress&&c("#"+k).progressbar("value",b)}});o=[];h=[]},200)}function j(b,a){B(b,c("<div>"+c.trim(a)+"</div>").text());var d=(i-c("."+e+'[data-source=""]').size())/i*100;t_jp.progress&&c("#"+l).progressbar("value",d)}function s(b,a,d){c.ajax({url:t_jp.ajaxurl,dataType:"json",
js/transposhedit.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.9.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
10
  */
11
  (function(a){function e(a){var b;return typeof t_jp.l==="object"&&(b=t_jp.l[a])?b:a}function n(c,d,e){a.trim(d).length===0&&(d=a("[data-token='"+c+"']").attr("data-orig"));var f=function(){var c=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),d=a(b+"img_"+c);a(b+c).attr("data-source",e);d.removeClass("tr-icon-yellow").removeClass("tr-icon-green");e==0?d.addClass("tr-icon-green"):e&&d.addClass("tr-icon-yellow")};a("*[data-token='"+c+"'][data-hidden!='y']").html(d).each(f);a("*[data-token='"+
12
  c+"'][data-hidden='y']").attr("data-trans",d).each(f);a(b+"translation").data("origval",d);a(b+"translation").keyup()}function o(b,d){n(b,d,0);a.ajax({type:"POST",url:t_jp.ajaxurl,data:{action:"tp_translation",ln0:t_jp.lang,sr0:0,items:1,tk0:b,tr0:d},error:function(a){n(b,"",1);alert("Problem saving translation, contact support.\n\nServer's message: "+a.statusText)}})}function y(){t_jp.google_key?t_jp.dgt(a(b+"original").val(),function(c){a(b+"translation").val(a("<div>"+a.trim(c.data.translations[0].translatedText)+
1
  /*
2
+ * Transposh v0.9.2
3
  * http://transposh.org/
4
  *
5
  * Copyright 2013, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
10
  */
11
  (function(a){function e(a){var b;return typeof t_jp.l==="object"&&(b=t_jp.l[a])?b:a}function n(c,d,e){a.trim(d).length===0&&(d=a("[data-token='"+c+"']").attr("data-orig"));var f=function(){var c=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),d=a(b+"img_"+c);a(b+c).attr("data-source",e);d.removeClass("tr-icon-yellow").removeClass("tr-icon-green");e==0?d.addClass("tr-icon-green"):e&&d.addClass("tr-icon-yellow")};a("*[data-token='"+c+"'][data-hidden!='y']").html(d).each(f);a("*[data-token='"+
12
  c+"'][data-hidden='y']").attr("data-trans",d).each(f);a(b+"translation").data("origval",d);a(b+"translation").keyup()}function o(b,d){n(b,d,0);a.ajax({type:"POST",url:t_jp.ajaxurl,data:{action:"tp_translation",ln0:t_jp.lang,sr0:0,items:1,tk0:b,tr0:d},error:function(a){n(b,"",1);alert("Problem saving translation, contact support.\n\nServer's message: "+a.statusText)}})}function y(){t_jp.google_key?t_jp.dgt(a(b+"original").val(),function(c){a(b+"translation").val(a("<div>"+a.trim(c.data.translations[0].translatedText)+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: oferwald
3
  Donate link: http://transposh.org/donate/
4
  Tags: translation, translate, i18n, widget, filter, buddypress, bilingual, multilingual, transposh, language, crowdsourcing, google translate, bing translate, context, wiki, RTL, Hebrew, Spanish, French, Russian, English, Arabic, Portuguese
5
  Requires at least: 3.3
6
- Tested up to: 3.5.1
7
- Stable tag: 0.9.1
8
 
9
  Transposh adds best of breed translation support to wordpress, 66 languages are automatically translated and can be manually corrected with ease.
10
 
@@ -69,6 +69,8 @@ You can find them on our site [here](http://transposh.org/faq)
69
  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.
70
 
71
  == Upgrade Notice ==
 
 
72
  = 0.8.0 =
73
  The widgets can have multiple instances, you need to change the current instance
74
  If you want to use a google/msn API key, it is now possible
@@ -110,14 +112,20 @@ This version allows sorting of languages within the widget
110
  * Hebrew translation by [Amir](http://colnect.com/he)
111
  * Frontend Spanish translation by [Ignacio](http://colnect.com/es/collectors/collector/iflvico)
112
  * Italian translation by [MacItaly](http://profiles.wordpress.org/macitaly)
113
- * Persian translation by [Sushyant Zavarzadeh](http://zavarzadeh.org)
114
  * Spanish translation by [Angel Torregrosa](http://wordp.relatividad.org)
115
  * German translation by [Jenny Beelens](http://www.professionaltranslation.com)
116
  * Turkish translation by [Ömer Faruk Karabulut](http://yakalasam.com/) and [Semih Yeşilyurt](http://kingdroid.net)
117
  * Portuguese (Brazil) translation by [Amilton Junior](http://www.dicasemgeral.com)
118
 
119
  == Changelog ==
120
- = pre 0.9.2 =
 
 
 
 
 
 
121
  * Update for .po files, Turkish Translation by [Ömer Faruk Karabulut](http://yakalasam.com/)
122
  = 2013/01/23 - 0.9.1 =
123
  * Added some help inside the Admin interface for very common questions (keys)
3
  Donate link: http://transposh.org/donate/
4
  Tags: translation, translate, i18n, widget, filter, buddypress, bilingual, multilingual, transposh, language, crowdsourcing, google translate, bing translate, context, wiki, RTL, Hebrew, Spanish, French, Russian, English, Arabic, Portuguese
5
  Requires at least: 3.3
6
+ Tested up to: 3.5
7
+ Stable tag: 0.9.2
8
 
9
  Transposh adds best of breed translation support to wordpress, 66 languages are automatically translated and can be manually corrected with ease.
10
 
69
  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.
70
 
71
  == Upgrade Notice ==
72
+ = 0.9.2 =
73
+ Update for some bugs in parsing
74
  = 0.8.0 =
75
  The widgets can have multiple instances, you need to change the current instance
76
  If you want to use a google/msn API key, it is now possible
112
  * Hebrew translation by [Amir](http://colnect.com/he)
113
  * Frontend Spanish translation by [Ignacio](http://colnect.com/es/collectors/collector/iflvico)
114
  * Italian translation by [MacItaly](http://profiles.wordpress.org/macitaly)
115
+ * Persian translation by [Sushyant Zavarzadeh](http://sushyant.com)
116
  * Spanish translation by [Angel Torregrosa](http://wordp.relatividad.org)
117
  * German translation by [Jenny Beelens](http://www.professionaltranslation.com)
118
  * Turkish translation by [Ömer Faruk Karabulut](http://yakalasam.com/) and [Semih Yeşilyurt](http://kingdroid.net)
119
  * Portuguese (Brazil) translation by [Amilton Junior](http://www.dicasemgeral.com)
120
 
121
  == Changelog ==
122
+ = 2013/03/11 - 0.9.2 =
123
+ * Basic Woocommerce support
124
+ * Override the case when other plugins or themes cause the process_page to be called prematurely
125
+ * Fix a nasty bug when the same translation appeared in a paragraph more than once
126
+ * Bing have added two languages
127
+ * Better handling of &nbsp; (We breaked when this is a no_break), and we also eliminate the utf ones (hidden from sight anyhow)
128
+ * Fix the bug reported by dserber disallowing language selection on post where translate_on_publish was disabled
129
  * Update for .po files, Turkish Translation by [Ömer Faruk Karabulut](http://yakalasam.com/)
130
  = 2013/01/23 - 0.9.1 =
131
  * Added some help inside the Admin interface for very common questions (keys)
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="admin.php?page=tp_main">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.9.1
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
  Text Domain: transposh
@@ -13,14 +13,14 @@
13
  */
14
 
15
  /*
16
- * Transposh v0.9.1
17
  * http://transposh.org/
18
  *
19
  * Copyright 2013, Team Transposh
20
  * Licensed under the GPL Version 2 or higher.
21
  * http://transposh.org/license
22
  *
23
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
24
  */
25
 
26
  //avoid direct calls to this file where wp core files not present
@@ -106,6 +106,9 @@ class transposh_plugin {
106
  /** @var boolean Is the wp_redirect being called by transposh? */
107
  private $transposh_redirect = false;
108
 
 
 
 
109
  /**
110
  * class constructor
111
  */
@@ -147,7 +150,7 @@ class transposh_plugin {
147
  if ($this->options->debug_enable)
148
  tp_logger(preg_replace('|^' . preg_quote(WP_PLUGIN_DIR, '|') . '/|', '', __FILE__), 4); // includes transposh dir and php
149
 
150
-
151
  // TODO: get_class_methods to replace said mess, other way?
152
  add_filter('plugin_action_links_' . preg_replace('|^' . preg_quote(WP_PLUGIN_DIR, '|') . '/|', '', __FILE__), array(&$this, 'plugin_action_links'));
153
  add_filter('query_vars', array(&$this, 'parameter_queryvars'));
@@ -159,7 +162,7 @@ class transposh_plugin {
159
  add_filter('comment_text', array(&$this, 'comment_text_wrap'), 9999); // this is a late filter...
160
  add_action('init', array(&$this, 'on_init'), 0); // really high priority
161
  // add_action('admin_init', array(&$this, 'on_admin_init')); might use to mark where not to work?
162
- add_action('parse_request', array(&$this, 'on_parse_request'));
163
  add_action('plugins_loaded', array(&$this, 'plugin_loaded'));
164
  add_action('shutdown', array(&$this, 'on_shutdown'));
165
  add_action('wp_print_styles', array(&$this, 'add_transposh_css'));
@@ -319,6 +322,10 @@ class transposh_plugin {
319
  * @return string Modified page buffer
320
  */
321
  function process_page(&$buffer) {
 
 
 
 
322
  tp_logger('processing page hit with language:' . $this->target_language, 1);
323
  $start_time = microtime(TRUE);
324
 
@@ -330,6 +337,10 @@ class transposh_plugin {
330
  // TODO: need to further investigate (will it be needed?)
331
  elseif ($this->target_language == '') {
332
  tp_logger("Skipping translation where target language is unset", 3);
 
 
 
 
333
  }
334
  // Don't translate the default language unless specifically allowed to...
335
  elseif ($this->options->is_default_language($this->target_language) && !$this->options->enable_default_translate) {
@@ -507,6 +518,10 @@ class transposh_plugin {
507
  $this->target_language = $this->options->default_language;
508
  tp_logger("requested language: {$this->target_language}", 3);
509
 
 
 
 
 
510
 
511
  // make themes that support rtl - go rtl http://wordpress.tv/2010/05/01/yoav-farhi-right-to-left-themes-sf10
512
  if (in_array($this->target_language, transposh_consts::$rtl_languages)) {
5
  Plugin URI: http://transposh.org/
6
  Description: Translation filter for WordPress, After enabling please set languages at the <a href="admin.php?page=tp_main">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.9.2
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
  Text Domain: transposh
13
  */
14
 
15
  /*
16
+ * Transposh v0.9.2
17
  * http://transposh.org/
18
  *
19
  * Copyright 2013, Team Transposh
20
  * Licensed under the GPL Version 2 or higher.
21
  * http://transposh.org/license
22
  *
23
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
24
  */
25
 
26
  //avoid direct calls to this file where wp core files not present
106
  /** @var boolean Is the wp_redirect being called by transposh? */
107
  private $transposh_redirect = false;
108
 
109
+ /** @var boolean Did we get to process but got an empty buffer with no language? (someone flushed us) */
110
+ private $tried_buffer = false;
111
+
112
  /**
113
  * class constructor
114
  */
150
  if ($this->options->debug_enable)
151
  tp_logger(preg_replace('|^' . preg_quote(WP_PLUGIN_DIR, '|') . '/|', '', __FILE__), 4); // includes transposh dir and php
152
 
153
+
154
  // TODO: get_class_methods to replace said mess, other way?
155
  add_filter('plugin_action_links_' . preg_replace('|^' . preg_quote(WP_PLUGIN_DIR, '|') . '/|', '', __FILE__), array(&$this, 'plugin_action_links'));
156
  add_filter('query_vars', array(&$this, 'parameter_queryvars'));
162
  add_filter('comment_text', array(&$this, 'comment_text_wrap'), 9999); // this is a late filter...
163
  add_action('init', array(&$this, 'on_init'), 0); // really high priority
164
  // add_action('admin_init', array(&$this, 'on_admin_init')); might use to mark where not to work?
165
+ add_action('parse_request', array(&$this, 'on_parse_request'), 0); // should have high enough priority
166
  add_action('plugins_loaded', array(&$this, 'plugin_loaded'));
167
  add_action('shutdown', array(&$this, 'on_shutdown'));
168
  add_action('wp_print_styles', array(&$this, 'add_transposh_css'));
322
  * @return string Modified page buffer
323
  */
324
  function process_page(&$buffer) {
325
+ /* if (!$this->target_language) {
326
+ global $wp;
327
+ $this->on_parse_request($wp);
328
+ } */
329
  tp_logger('processing page hit with language:' . $this->target_language, 1);
330
  $start_time = microtime(TRUE);
331
 
337
  // TODO: need to further investigate (will it be needed?)
338
  elseif ($this->target_language == '') {
339
  tp_logger("Skipping translation where target language is unset", 3);
340
+ if (!$buffer) {
341
+ tp_logger("seems like we had a premature flushing");
342
+ $this->tried_buffer = true;
343
+ }
344
  }
345
  // Don't translate the default language unless specifically allowed to...
346
  elseif ($this->options->is_default_language($this->target_language) && !$this->options->enable_default_translate) {
518
  $this->target_language = $this->options->default_language;
519
  tp_logger("requested language: {$this->target_language}", 3);
520
 
521
+ if ($this->tried_buffer) {
522
+ tp_logger("we will retrigger the output buffering");
523
+ ob_start(array(&$this, "process_page"));
524
+ }
525
 
526
  // make themes that support rtl - go rtl http://wordpress.tv/2010/05/01/yoav-farhi-right-to-left-themes-sf10
527
  if (in_array($this->target_language, transposh_consts::$rtl_languages)) {
widgets/default/tpw_default.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  /*
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  /*
widgets/dropdown/tpw_image_dropdown.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  class tpw_image_dropdown extends transposh_base_widget {
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  class tpw_image_dropdown extends transposh_base_widget {
widgets/flags/tpw_flags.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  /**
widgets/flags/tpw_flags_css.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  class tpw_flags_css extends transposh_base_widget {
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  class tpw_flags_css extends transposh_base_widget {
widgets/flagslist/tpw_list_with_flags.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  class tpw_list_with_flags extends transposh_base_widget {
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  class tpw_list_with_flags extends transposh_base_widget {
widgets/flagslist/tpw_list_with_flags_css.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  class tpw_list_with_flags_css extends transposh_base_widget {
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  class tpw_list_with_flags_css extends transposh_base_widget {
widgets/select2/tpw_select2.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.9.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
22
  */
23
 
24
  class tpw_select2 extends transposh_base_widget {
11
  */
12
 
13
  /*
14
+ * Transposh v0.9.2
15
  * http://transposh.org/
16
  *
17
  * Copyright 2013, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
22
  */
23
 
24
  class tpw_select2 extends transposh_base_widget {
wp/transposh_3rdparty.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
@@ -45,6 +45,10 @@ class transposh_3rdparty {
45
  if ($this->transposh->options->transposh_collect_stats) {
46
  add_action('google_analyticator_extra_js_after', array(&$this, 'add_analyticator_tracking'));
47
  }
 
 
 
 
48
  }
49
 
50
  function add_analyticator_tracking() {
@@ -205,6 +209,12 @@ class transposh_3rdparty {
205
  }
206
  }
207
 
 
 
 
 
 
 
208
  }
209
 
210
  ?>
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*
45
  if ($this->transposh->options->transposh_collect_stats) {
46
  add_action('google_analyticator_extra_js_after', array(&$this, 'add_analyticator_tracking'));
47
  }
48
+
49
+ // woocommerce
50
+ add_filter('woocommerce_get_checkout_url', array(&$this, 'woo_uri_filter'));
51
+ add_filter('woocommerce_get_cart_url', array(&$this, 'woo_uri_filter'));
52
  }
53
 
54
  function add_analyticator_tracking() {
209
  }
210
  }
211
 
212
+ function woo_uri_filter($url) {
213
+ $lang = transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->transposh->home_url);
214
+ tp_logger('altering woo url to:' . transposh_utils::rewrite_url_lang_param($url, $this->transposh->home_url, $this->transposh->options->enable_permalinks, $lang, $this->transposh->edit_mode));
215
+ return transposh_utils::rewrite_url_lang_param($url, $this->transposh->home_url, $this->transposh->options->enable_permalinks, $lang, $this->transposh->edit_mode);
216
+ }
217
+
218
  }
219
 
220
  ?>
wp/transposh_admin.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*
wp/transposh_ajax.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*
wp/transposh_backup.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
@@ -35,7 +35,7 @@ class transposh_backup {
35
  $body['home_url'] = $this->transposh->home_url;
36
  $body['key'] = $this->transposh->options->transposh_key;
37
  $body['v'] = '2';
38
- $body['tpv'] = '0.9.1';
39
  return $body;
40
  }
41
 
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*
35
  $body['home_url'] = $this->transposh->home_url;
36
  $body['key'] = $this->transposh->options->transposh_key;
37
  $body['v'] = '2';
38
+ $body['tpv'] = '0.9.2';
39
  return $body;
40
  }
41
 
wp/transposh_db.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /**
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /**
wp/transposh_options.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  // This magic value will cause the option to be set from post
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  // This magic value will cause the option to be set from post
wp/transposh_postpublish.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
@@ -33,10 +33,8 @@ class transposh_postpublish {
33
  */
34
  function transposh_postpublish(&$transposh) {
35
  $this->transposh = &$transposh;
36
- // we'll only do something if so configured to do
37
- if ($this->transposh->options->enable_autoposttranslate) {
38
- add_action('edit_post', array(&$this, 'on_edit'));
39
- }
40
  add_action('admin_menu', array(&$this, 'on_admin_menu'));
41
  }
42
 
@@ -215,7 +213,9 @@ class transposh_postpublish {
215
  */
216
  function on_edit($postID) {
217
  // TODO - CHECK if (!isset($_POST['transposh_tp_language'])) return;
218
- add_post_meta($postID, 'transposh_can_translate', 'true', true);
 
 
219
  if ($_POST['transposh_tp_language'] == '') {
220
  delete_post_meta($postID, 'tp_language');
221
  } else {
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*
33
  */
34
  function transposh_postpublish(&$transposh) {
35
  $this->transposh = &$transposh;
36
+ // we need this anyway because of the change language selection
37
+ add_action('edit_post', array(&$this, 'on_edit'));
 
 
38
  add_action('admin_menu', array(&$this, 'on_admin_menu'));
39
  }
40
 
213
  */
214
  function on_edit($postID) {
215
  // TODO - CHECK if (!isset($_POST['transposh_tp_language'])) return;
216
+ if ($this->transposh->options->enable_autoposttranslate) {
217
+ add_post_meta($postID, 'transposh_can_translate', 'true', true);
218
+ }
219
  if ($_POST['transposh_tp_language'] == '') {
220
  delete_post_meta($postID, 'tp_language');
221
  } else {
wp/transposh_widget.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.9.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 23 Jan 2013 02:24:14 +0200
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.9.2
5
  * http://transposh.org/
6
  *
7
  * Copyright 2013, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Mon, 11 Mar 2013 02:28:05 +0200
12
  */
13
 
14
  /*