Transposh WordPress Translation - Version 0.6.4

Version Description

= 0.6.3 = Support .po/.mo files = 0.6.0 = Much improved translation interface engine = 0.5.7 = Fix for critical bug in 0.5.6 = 0.5.6 = Support pluggable widgets = 0.5.5 = Support for buddypress URLs = 0.5.3 = Support URL translation = 0.5.2 = Improved lang attribute support, changed default language translation option = 0.5.1 = Improved speed and database structure = 0.5.0 = Ability to translate all content, backup service for human translations = 0.4.3 = Minor bug fixes, more compatability = 0.4.2 = This version provides Haitian support, auto translate with bing support = 0.4.0 = This version provides integration with google-sitemaps-xml and wp-super-cache = 0.3.9 = This version allows sorting of languages within the widget

Download this release

Release Info

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

Code changes from version 0.6.3 to 0.6.4

core/constants.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  //Language indicator in URL. i.e. lang=en
@@ -74,6 +74,7 @@ class transposh_consts {
74
  'it' => 'Italian,Italiano,it,it_IT',
75
  'ja' => 'Japanese,日本語,jp,',
76
  'ko' => 'Korean,우리말,kr,ko_KR',
 
77
  'lv' => 'Latvian,latviešu valoda,lv,',
78
  'lt' => 'Lithuanian,lietuvių kalba,lt,',
79
  'mk' => 'Macedonian,македонски јазик,mk,mk_MK',
@@ -100,19 +101,20 @@ class transposh_consts {
100
  'cy' => 'Welsh,Cymraeg,wales,',
101
  'yi' => 'Yiddish,ייִדיש,europeanunion,'
102
  );
103
- //Language which are read from right to left (rtl)
104
  public static $rtl_languages = array('ar', 'he', 'fa', 'ur', 'yi');
105
- //Google supported languages
106
- //(got using - var langs =''; jQuery.each(google.language.Languages,function(){if (google.language.isTranslatable(this)) {langs += this +'|'}}); console.log(langs); - fixed for our codes)
107
- //@updated 2010-Jul-01 (hy,az,eu,ka,ur)
108
- //$google_languages = array('en', 'af', 'sq', 'ar', 'hy', 'az', 'eu', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'ka', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'ur', 'vi', 'cy', 'yi');
109
  public static $google_languages = array('en', 'af', 'sq', 'ar', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'vi', 'cy', 'yi');
110
- public static $google_proxied_languages = array('hy', 'az', 'eu', 'ka', 'ur');
111
- //Bing supported languages
112
- //(got this using Microsoft.Translator.GetLanguages() - fixed to match our codes)
113
- //@updated 2010-Jun-30
114
- public static $bing_languages = array('en', 'ar', 'bg', 'zh', 'zh-tw', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hu', 'it', 'ja', 'ko', 'lv', 'lt', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'es', 'sv', 'th', 'tr');
115
-
 
116
 
117
  }
118
 
@@ -120,7 +122,7 @@ class transposh_consts {
120
  define('TRANSLATOR', 'translator');
121
 
122
  //Define for transposh plugin version
123
- define('TRANSPOSH_PLUGIN_VER', '0.6.3');
124
 
125
  //Define segment id prefix, will be included in span tag. also used as class identifier
126
  define('SPAN_PREFIX', 'tr_');
@@ -128,6 +130,9 @@ define('SPAN_PREFIX', 'tr_');
128
  //The name of our admin page
129
  define('TRANSPOSH_ADMIN_PAGE_NAME', 'transposh');
130
 
 
 
 
131
  //0.3.5 - Storing all options in this config option
132
  define('TRANSPOSH_OPTIONS', 'transposh_options');
133
 
@@ -328,40 +333,39 @@ define('TRANSPOSH_DIR_WIDGETS', 'widgets');
328
  */
329
 
330
  /* List of unused wordpress locales (27-Aug-2010)
331
- # bn_BD/ Bengali
332
- # bs_BA/ Bosnian
333
- # ckb/ Kurdish
334
- # cpp/ ??
335
- # el/
336
- # eo/ esperanto
337
- # es_CL/
338
- # es_PE/
339
- # es_VE/
340
- # fo/ foroese
341
- # fr_BE/
342
- # fy/
343
- # jv_ID/
344
- # /
345
- # kea/ ??
346
- # kn/
347
- # /
348
- # ky_KY/
349
- # ml_IN/
350
- # mn/
351
- # my_MM/
352
- # nb_NO/ ? good Question, popped into Norway
353
- # ne_NP/
354
- # nn_NO/ ? same question
355
- # pa_IN/
356
- # pt_BR/
357
- # ru_UA/
358
- # sd_PK/
359
- # si_LK/
360
- # su_ID/
361
- # ta_IN/
362
- # ug_CN/
363
- # uz_UZ/
364
- # zh_HK/
365
- */
366
-
367
  ?>
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  //Language indicator in URL. i.e. lang=en
74
  'it' => 'Italian,Italiano,it,it_IT',
75
  'ja' => 'Japanese,日本語,jp,',
76
  'ko' => 'Korean,우리말,kr,ko_KR',
77
+ 'la' => 'Latin,latīna,va,',
78
  'lv' => 'Latvian,latviešu valoda,lv,',
79
  'lt' => 'Lithuanian,lietuvių kalba,lt,',
80
  'mk' => 'Macedonian,македонски јазик,mk,mk_MK',
101
  'cy' => 'Welsh,Cymraeg,wales,',
102
  'yi' => 'Yiddish,ייִדיש,europeanunion,'
103
  );
104
+ // Language which are read from right to left (rtl)
105
  public static $rtl_languages = array('ar', 'he', 'fa', 'ur', 'yi');
106
+ // Google supported languages
107
+ // (got using - var langs =''; jQuery.each(google.language.Languages,function(){if (google.language.isTranslatable(this)) {langs += this +'|'}}); console.log(langs); - fixed for our codes)
108
+ // @updated 2010-Oct-01 (hy,az,eu,ka,la,ur)
109
+ // $google_languages = array('en', 'af', 'sq', 'ar', 'hy', 'az', 'eu', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'ka', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'ur', 'vi', 'cy', 'yi');
110
  public static $google_languages = array('en', 'af', 'sq', 'ar', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'vi', 'cy', 'yi');
111
+ public static $google_proxied_languages = array('hy', 'az', 'eu', 'ka', 'la', 'ur');
112
+ // Bing supported languages
113
+ // (got this using Microsoft.Translator.GetLanguages() - fixed to match our codes)
114
+ // @updated 2010-Jun-30
115
+ public static $bing_languages = array('en', 'ar', 'bg', 'zh', 'zh-tw', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'es', 'sv', 'th', 'tr', 'uk', 'vi');
116
+ // Array for holding po domains we have problems with
117
+ public static $ignored_po_domains = array('MailPress');
118
 
119
  }
120
 
122
  define('TRANSLATOR', 'translator');
123
 
124
  //Define for transposh plugin version
125
+ define('TRANSPOSH_PLUGIN_VER', '0.6.4');
126
 
127
  //Define segment id prefix, will be included in span tag. also used as class identifier
128
  define('SPAN_PREFIX', 'tr_');
130
  //The name of our admin page
131
  define('TRANSPOSH_ADMIN_PAGE_NAME', 'transposh');
132
 
133
+ //Our text domain
134
+ define('TRANSPOSH_TEXT_DOMAIN', 'transposh');
135
+
136
  //0.3.5 - Storing all options in this config option
137
  define('TRANSPOSH_OPTIONS', 'transposh_options');
138
 
333
  */
334
 
335
  /* List of unused wordpress locales (27-Aug-2010)
336
+ # bn_BD/ Bengali
337
+ # bs_BA/ Bosnian
338
+ # ckb/ Kurdish
339
+ # cpp/ ??
340
+ # el/
341
+ # eo/ esperanto
342
+ # es_CL/
343
+ # es_PE/
344
+ # es_VE/
345
+ # fo/ foroese
346
+ # fr_BE/
347
+ # fy/
348
+ # jv_ID/
349
+ # /
350
+ # kea/ ??
351
+ # kn/
352
+ # /
353
+ # ky_KY/
354
+ # ml_IN/
355
+ # mn/
356
+ # my_MM/
357
+ # nb_NO/ ? good Question, popped into Norway
358
+ # ne_NP/
359
+ # nn_NO/ ? same question
360
+ # pa_IN/
361
+ # pt_BR/
362
+ # ru_UA/
363
+ # sd_PK/
364
+ # si_LK/
365
+ # su_ID/
366
+ # ta_IN/
367
+ # ug_CN/
368
+ # uz_UZ/
369
+ # zh_HK/
370
+ */
 
371
  ?>
core/parser.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  require_once("shd/simple_html_dom.php");
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  require_once("shd/simple_html_dom.php");
core/utils.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /**
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /**
img/flags59.png ADDED
Binary file
js/lazy.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.6.3
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
10
  */
11
  (function(b){function s(){function h(a,c){t[a](c,function(d){d=="error"?i.push(c):k.push(c)&&g.each(c);o()},"lazy-loaded-"+(g.name?g.name:(new Date).getTime()))}function j(a){g.complete(a,k,i);g[a](a=="error"?i:k);clearTimeout(p);clearTimeout(u)}function o(){if(k.length==l.length)j("success");else k.length+i.length==l.length&&j("error")}function q(){i.push(this.src);o()}var t=this,g,k=[],i=[],p,u,n,l=[];this.init=function(a){if(a){g=b.extend({},b.xLazyLoader.defaults,a);n={js:g.js,css:g.css,img:g.img};
12
  b.each(n,function(c,d){if(typeof d=="string")d=d.split(",");l=l.concat(d)});if(l.length){if(g.timeout)p=setTimeout(function(){var c=k.concat(i);b.each(l,function(d,f){b.inArray(f,c)==-1&&i.push(f)});j("error")},g.timeout);b.each(n,function(c,d){if(b.isArray(d))b.each(d,function(f,e){h(c,e)});else typeof d=="string"&&h(c,d)})}else j("error")}};this.js=function(a,c,d){var f=b('script[src*="'+a+'"]');if(f.length)f.attr("pending")?f.bind("scriptload",c):c();else{var e=document.createElement("script");
1
  /*
2
+ * Transposh v0.6.4
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
10
  */
11
  (function(b){function s(){function h(a,c){t[a](c,function(d){d=="error"?i.push(c):k.push(c)&&g.each(c);o()},"lazy-loaded-"+(g.name?g.name:(new Date).getTime()))}function j(a){g.complete(a,k,i);g[a](a=="error"?i:k);clearTimeout(p);clearTimeout(u)}function o(){if(k.length==l.length)j("success");else k.length+i.length==l.length&&j("error")}function q(){i.push(this.src);o()}var t=this,g,k=[],i=[],p,u,n,l=[];this.init=function(a){if(a){g=b.extend({},b.xLazyLoader.defaults,a);n={js:g.js,css:g.css,img:g.img};
12
  b.each(n,function(c,d){if(typeof d=="string")d=d.split(",");l=l.concat(d)});if(l.length){if(g.timeout)p=setTimeout(function(){var c=k.concat(i);b.each(l,function(d,f){b.inArray(f,c)==-1&&i.push(f)});j("error")},g.timeout);b.each(n,function(c,d){if(b.isArray(d))b.each(d,function(f,e){h(c,e)});else typeof d=="string"&&h(c,d)})}else j("error")}};this.js=function(a,c,d){var f=b('script[src*="'+a+'"]');if(f.length)f.attr("pending")?f.bind("scriptload",c):c();else{var e=document.createElement("script");
js/transposh.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.6.3
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
10
  */
11
  (function(a){function u(c,d){if(a.trim(d).length!==0){var b=function(){var e=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),i=a("#"+f+"img_"+e);a("#"+f+e).attr("data-source",1);i.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-yellow")};a("*[data-token='"+c+"'][data-hidden!='y']").html(d).each(b);a("*[data-token='"+c+"'][data-hidden='y']").attr("data-trans",d).each(b)}}function v(c,d){clearTimeout(o);h.push(c);n.push(d);u(c,d);o=setTimeout(function(){var b=
12
  {ln0:t_jp.lang,sr0:p,translation_posted:"2",items:h.length},e;for(e=0;e<h.length;e+=1){b["tk"+e]=h[e];b["tr"+e]=n[e];q+=a("*[data-token='"+h[e]+"']").size()}a.ajax({type:"POST",url:t_jp.post_url,data:b,success:function(){var i=q/j*100;t_jp.progress&&a("#"+k).progressbar("value",i)}});n=[];h=[]},200)}function l(c,d){v(c,a("<div>"+a.trim(d)+"</div>").text());var b=(j-a("."+f+'[data-source=""]').size())/j*100;t_jp.progress&&a("#"+m).progressbar("value",b)}function w(c,d){var b="";a(c).each(function(e){b+=
1
  /*
2
+ * Transposh v0.6.4
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
10
  */
11
  (function(a){function u(c,d){if(a.trim(d).length!==0){var b=function(){var e=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),i=a("#"+f+"img_"+e);a("#"+f+e).attr("data-source",1);i.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-yellow")};a("*[data-token='"+c+"'][data-hidden!='y']").html(d).each(b);a("*[data-token='"+c+"'][data-hidden='y']").attr("data-trans",d).each(b)}}function v(c,d){clearTimeout(o);h.push(c);n.push(d);u(c,d);o=setTimeout(function(){var b=
12
  {ln0:t_jp.lang,sr0:p,translation_posted:"2",items:h.length},e;for(e=0;e<h.length;e+=1){b["tk"+e]=h[e];b["tr"+e]=n[e];q+=a("*[data-token='"+h[e]+"']").size()}a.ajax({type:"POST",url:t_jp.post_url,data:b,success:function(){var i=q/j*100;t_jp.progress&&a("#"+k).progressbar("value",i)}});n=[];h=[]},200)}function l(c,d){v(c,a("<div>"+a.trim(d)+"</div>").text());var b=(j-a("."+f+'[data-source=""]').size())/j*100;t_jp.progress&&a("#"+m).progressbar("value",b)}function w(c,d){var b="";a(c).each(function(e){b+=
js/transposhadmin.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.6.3
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
10
  */
11
  var timer,items=0,translations=[],tokens=[],langs=[],sources=[],BATCH_SIZE=128,pair_count=0,curr_pair=0;t_jp.MSN_APPID="FACA8E2DF8DCCECE0DC311C6E57DA98EFEFA9BC6";function make_progress(e,b){curr_pair+=1;jQuery("#progress_bar").progressbar("value",curr_pair/pair_count*100);jQuery("#p").text("("+b+") "+e);curr_pair===pair_count&&jQuery("#tr_loading").data("done",true)}
12
  function ajax_translate_me(e,b,c,d){b=jQuery("<div>"+jQuery.trim(b)+"</div>").text();make_progress(b,c);clearTimeout(timer);items+=1;tokens.push(e);translations.push(b);langs.push(c);sources.push(d);timer=setTimeout(function(){var f={translation_posted:"2",items:items},a;for(a=0;a<items;a+=1){if(tokens[a]!==tokens[a-1])f["tk"+a]=tokens[a];if(langs[a]!==langs[a-1])f["ln"+a]=langs[a];if(translations[a]!==translations[a-1])f["tr"+a]=translations[a];if(sources[a]!==sources[a-1])f["sr"+a]=sources[a]}jQuery.ajax({type:"POST",
1
  /*
2
+ * Transposh v0.6.4
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
10
  */
11
  var timer,items=0,translations=[],tokens=[],langs=[],sources=[],BATCH_SIZE=128,pair_count=0,curr_pair=0;t_jp.MSN_APPID="FACA8E2DF8DCCECE0DC311C6E57DA98EFEFA9BC6";function make_progress(e,b){curr_pair+=1;jQuery("#progress_bar").progressbar("value",curr_pair/pair_count*100);jQuery("#p").text("("+b+") "+e);curr_pair===pair_count&&jQuery("#tr_loading").data("done",true)}
12
  function ajax_translate_me(e,b,c,d){b=jQuery("<div>"+jQuery.trim(b)+"</div>").text();make_progress(b,c);clearTimeout(timer);items+=1;tokens.push(e);translations.push(b);langs.push(c);sources.push(d);timer=setTimeout(function(){var f={translation_posted:"2",items:items},a;for(a=0;a<items;a+=1){if(tokens[a]!==tokens[a-1])f["tk"+a]=tokens[a];if(langs[a]!==langs[a-1])f["ln"+a]=langs[a];if(translations[a]!==translations[a-1])f["tr"+a]=translations[a];if(sources[a]!==sources[a-1])f["sr"+a]=sources[a]}jQuery.ajax({type:"POST",
js/transposhcontrol.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.6.3
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
10
  */
11
  jQuery(function(){jQuery("#tr_anon").click(function(){if(jQuery("#tr_anon").attr("checked")){jQuery(".translateable").addClass("active").removeClass("translateable");jQuery("#sortable .active").each(function(){jQuery("input",this).val(jQuery(this).attr("id")+",v,t")})}jQuery("#yellowcolor").toggleClass("hidden")});jQuery("#sortable").sortable({placeholder:"highlight",update:function(b,a){a.item.unbind("click");a.item.one("click",function(c){c.stopImmediatePropagation();jQuery(this).click(clickfunction)})}});
12
  jQuery("#sortable").disableSelection();jQuery("#changename").click(function(){jQuery(".langname").toggleClass("hidden");return false});jQuery("#selectall").click(function(){jQuery("#sortable .languages").addClass("active").removeClass("translateable");jQuery("#sortable .active").each(function(){jQuery("input",this).val(jQuery(this).attr("id")+",v,t")});return false});clickfunction=function(){if(jQuery(this).attr("id")!=jQuery("#default_list li").attr("id")){if(jQuery("#tr_anon").attr("checked"))jQuery(this).toggleClass("active");
1
  /*
2
+ * Transposh v0.6.4
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
10
  */
11
  jQuery(function(){jQuery("#tr_anon").click(function(){if(jQuery("#tr_anon").attr("checked")){jQuery(".translateable").addClass("active").removeClass("translateable");jQuery("#sortable .active").each(function(){jQuery("input",this).val(jQuery(this).attr("id")+",v,t")})}jQuery("#yellowcolor").toggleClass("hidden")});jQuery("#sortable").sortable({placeholder:"highlight",update:function(b,a){a.item.unbind("click");a.item.one("click",function(c){c.stopImmediatePropagation();jQuery(this).click(clickfunction)})}});
12
  jQuery("#sortable").disableSelection();jQuery("#changename").click(function(){jQuery(".langname").toggleClass("hidden");return false});jQuery("#selectall").click(function(){jQuery("#sortable .languages").addClass("active").removeClass("translateable");jQuery("#sortable .active").each(function(){jQuery("input",this).val(jQuery(this).attr("id")+",v,t")});return false});clickfunction=function(){if(jQuery(this).attr("id")!=jQuery("#default_list li").attr("id")){if(jQuery("#tr_anon").attr("checked"))jQuery(this).toggleClass("active");
js/transposhedit.js CHANGED
@@ -1,22 +1,22 @@
1
  /*
2
- * Transposh v0.6.3
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
10
  */
11
  (function(a){function h(b,c){if(a.trim(c).length===0)c=a("[data-token='"+b+"']").attr("data-orig");var e=function(){var f=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),d=a("#"+t_jp.prefix+"img_"+f);a("#"+t_jp.prefix+f).attr("data-source",0);d.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-green")};a("*[data-token='"+b+"'][data-hidden!='y']").html(c).each(e);a("*[data-token='"+b+"'][data-hidden='y']").attr("data-trans",c).each(e)}function i(b,c){h(b,
12
  c);a.ajax({type:"POST",url:t_jp.post_url,data:{ln0:t_jp.lang,sr0:0,translation_posted:"2",items:1,tk0:b,tr0:c},success:function(){},error:function(e){alert("Error !!! failed to translate.\n\nServer's message: "+e.statusText)}})}function j(b,c){a.ajax({url:"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q="+encodeURIComponent(b)+"&langpair=%7C"+t_jp.lang,dataType:"jsonp",success:c})}function k(){a(":button:contains('Suggest - Google')").attr("disabled","disabled").addClass("ui-state-disabled");
13
  a(":button:contains('Suggest - Bing')").attr("disabled","").removeClass("ui-state-disabled");j(a("#"+t_jp.prefix+"original").val(),function(b){b.responseStatus===200&&a("#"+t_jp.prefix+"translation").val(a("<div>"+a.trim(b.responseData.translatedText)+"</div>").text()).keyup()})}function l(b,c){a.ajax({url:"http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId="+t_jp.MSN_APPID+"&to="+t_jp.binglang+"&text="+encodeURIComponent(b),dataType:"jsonp",jsonp:"oncomplete",success:c})}function m(){a(":button:contains('Suggest - Bing')").attr("disabled",
14
  "disabled").addClass("ui-state-disabled");a(":button:contains('Suggest - Google')").attr("disabled","").removeClass("ui-state-disabled");l(a("#"+t_jp.prefix+"original").val(),function(b){a("#"+t_jp.prefix+"translation").val(a("<div>"+a.trim(b)+"</div>").text()).keyup()})}function n(){a('<div id="dial" title="Close without saving?"><p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>You have made a change to the translation. Are you sure you want to discard it?</p></div>').appendTo("body").dialog({bgiframe:true,
15
  resizable:false,height:140,modal:true,overlay:{backgroundColor:"#000",opacity:0.5},buttons:{Discard:function(){a("#"+t_jp.prefix+"translation").data("edit",{changed:false});a(this).dialog("close");a("#"+t_jp.prefix+"d-tabs").dialog("close")},Cancel:function(){a(this).dialog("close")}}})}function g(b){var c={},e={};if(t_jp.msn)c["Suggest - Bing"]=function(){m()};if(t_jp.google)c["Suggest - Google"]=function(){k()};c.Ok=function(){var f=a("#"+t_jp.prefix+"translation").val(),d=a("#"+t_jp.prefix+b).attr("data-token");
16
- if(a("#"+t_jp.prefix+"translation").data("edit").changed){i(d,f);a("#"+t_jp.prefix+"translation").data("edit",{changed:false})}a(this).dialog("close")};e={Close:function(){a(this).dialog("close")}};a("#"+t_jp.prefix+"d-tabs").remove();a('<div id="'+t_jp.prefix+'d-tabs" title="Edit Translation"/>').appendTo("body");a("#"+t_jp.prefix+"d-tabs").append("<ul/>").tabs({cache:true}).tabs("add","#"+t_jp.prefix+"d-tabs-1","Translate").tabs("add",t_jp.post_url+"?tr_token_hist="+a("#"+t_jp.prefix+b).attr("data-token")+
17
- "&lang="+t_jp.lang,"History").css("text-align","left").css("padding",0).bind("tabsload",function(f,d){a("table",d.panel).addClass("ui-widget ui-widget-content").css({width:"95%",padding:"0"});a("table thead tr",d.panel).addClass("ui-widget-header");a("table tbody td[source='2']",d.panel).append('<span title="computer" style="display: inline-block; margin-right: 0.3em;" class="ui-icon ui-icon-gear"></span>');a("table tbody td[source='1']",d.panel).append('<span title="computer" style="display: inline-block; margin-right: 0.3em;" class="ui-icon ui-icon-gear"></span>');
18
- a("table tbody td[source='0']",d.panel).append('<span title="human" style="display: inline-block; margin-right: 0.3em;" class="ui-icon ui-icon-person"></span>')}).bind("tabsselect",function(f,d){a(d.tab).text()==="Translate"?a("#"+t_jp.prefix+"d-tabs").dialog("option","buttons",c):a("#"+t_jp.prefix+"d-tabs").dialog("option","buttons",e)}).bind("dialogbeforeclose",function(){if(a("#"+t_jp.prefix+"translation").data("edit").changed){n();return false}return true});a("#"+t_jp.prefix+"d-tabs li").css("list-style-type",
19
- "none").css("list-style-position","outside");a("#"+t_jp.prefix+"d-tabs-1").css("padding","1px").append('<form id="'+t_jp.prefix+'form"><fieldset><label for="original">Original Text</label><textarea cols="80" row="3" name="original" id="'+t_jp.prefix+'original" class="text ui-widget-content ui-corner-all" readonly="y"/><label for="translation">Translate To</label><textarea cols="80" row="3" name="translation" id="'+t_jp.prefix+'translation" value="" class="text ui-widget-content ui-corner-all"/></fieldset></form>');
20
  a("#"+t_jp.prefix+"d-tabs-1 label").css("display","block");a("#"+t_jp.prefix+"d-tabs-1 textarea.text").css({"margin-bottom":"12px",width:"95%",padding:".4em"});a("#"+t_jp.prefix+"original").val(a("#"+t_jp.prefix+b).attr("data-orig"));a("#"+t_jp.prefix+"translation").val(a("#"+t_jp.prefix+b).html());a("#"+t_jp.prefix+b).attr("data-trans")&&a("#"+t_jp.prefix+"translation").val(a("#"+t_jp.prefix+b).attr("data-trans"));a("#"+t_jp.prefix+"translation").data("edit",{changed:false});a("#"+t_jp.prefix+"translation").keyup(function(){if(a("#"+
21
  t_jp.prefix+b).text()!==a(this).val()){a(this).css("background","yellow");a(this).data("edit",{changed:true})}else{a(this).css("background","");a(this).data("edit",{changed:false})}});a("#"+t_jp.prefix+"d-tabs").dialog({width:500,buttons:c})}a("."+t_jp.prefix).each(function(){var b=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),c;a(this).after('<span id="'+t_jp.prefix+"img_"+b+'" class="tr-icon" title="'+a(this).attr("data-orig")+'"></span>');c=a("#"+t_jp.prefix+"img_"+b);c.click(function(){if(typeof a.fn.tabs!==
22
  "function"||typeof a.fn.dialog!=="function"){a.ajaxSetup({cache:true});a.getScript(t_jp.plugin_url+"/js/lazy.js",function(){a.xLazyLoader({js:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js",css:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css",success:function(){g(b)}})})}else g(b);return false}).css({border:"0px",margin:"1px",padding:"0px"});if(a(this).attr("data-source")==="0")c.addClass("tr-icon-green");else a(this).attr("data-source")&&
1
  /*
2
+ * Transposh v0.6.4
3
  * http://transposh.org/
4
  *
5
  * Copyright 2010, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
10
  */
11
  (function(a){function h(b,c){if(a.trim(c).length===0)c=a("[data-token='"+b+"']").attr("data-orig");var e=function(){var f=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),d=a("#"+t_jp.prefix+"img_"+f);a("#"+t_jp.prefix+f).attr("data-source",0);d.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-green")};a("*[data-token='"+b+"'][data-hidden!='y']").html(c).each(e);a("*[data-token='"+b+"'][data-hidden='y']").attr("data-trans",c).each(e)}function i(b,c){h(b,
12
  c);a.ajax({type:"POST",url:t_jp.post_url,data:{ln0:t_jp.lang,sr0:0,translation_posted:"2",items:1,tk0:b,tr0:c},success:function(){},error:function(e){alert("Error !!! failed to translate.\n\nServer's message: "+e.statusText)}})}function j(b,c){a.ajax({url:"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q="+encodeURIComponent(b)+"&langpair=%7C"+t_jp.lang,dataType:"jsonp",success:c})}function k(){a(":button:contains('Suggest - Google')").attr("disabled","disabled").addClass("ui-state-disabled");
13
  a(":button:contains('Suggest - Bing')").attr("disabled","").removeClass("ui-state-disabled");j(a("#"+t_jp.prefix+"original").val(),function(b){b.responseStatus===200&&a("#"+t_jp.prefix+"translation").val(a("<div>"+a.trim(b.responseData.translatedText)+"</div>").text()).keyup()})}function l(b,c){a.ajax({url:"http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId="+t_jp.MSN_APPID+"&to="+t_jp.binglang+"&text="+encodeURIComponent(b),dataType:"jsonp",jsonp:"oncomplete",success:c})}function m(){a(":button:contains('Suggest - Bing')").attr("disabled",
14
  "disabled").addClass("ui-state-disabled");a(":button:contains('Suggest - Google')").attr("disabled","").removeClass("ui-state-disabled");l(a("#"+t_jp.prefix+"original").val(),function(b){a("#"+t_jp.prefix+"translation").val(a("<div>"+a.trim(b)+"</div>").text()).keyup()})}function n(){a('<div id="dial" title="Close without saving?"><p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>You have made a change to the translation. Are you sure you want to discard it?</p></div>').appendTo("body").dialog({bgiframe:true,
15
  resizable:false,height:140,modal:true,overlay:{backgroundColor:"#000",opacity:0.5},buttons:{Discard:function(){a("#"+t_jp.prefix+"translation").data("edit",{changed:false});a(this).dialog("close");a("#"+t_jp.prefix+"d-tabs").dialog("close")},Cancel:function(){a(this).dialog("close")}}})}function g(b){var c={},e={};if(t_jp.msn)c["Suggest - Bing"]=function(){m()};if(t_jp.google)c["Suggest - Google"]=function(){k()};c.Ok=function(){var f=a("#"+t_jp.prefix+"translation").val(),d=a("#"+t_jp.prefix+b).attr("data-token");
16
+ if(a("#"+t_jp.prefix+"translation").data("edit").changed){i(d,f);a("#"+t_jp.prefix+"translation").data("edit",{changed:false})}a(this).dialog("close")};e={Close:function(){a(this).dialog("close")}};a("#"+t_jp.prefix+"d-tabs").remove();a('<div id="'+t_jp.prefix+'d-tabs" title="'+t_jp.edit_box_title+'"/>').appendTo("body");a("#"+t_jp.prefix+"d-tabs").append("<ul/>").tabs({cache:true}).tabs("add","#"+t_jp.prefix+"d-tabs-1",t_jp.edit_box_translate).tabs("add",t_jp.post_url+"?tr_token_hist="+a("#"+t_jp.prefix+
17
+ b).attr("data-token")+"&lang="+t_jp.lang,t_jp.edit_box_history).css("text-align","left").css("padding",0).bind("tabsload",function(f,d){a("table",d.panel).addClass("ui-widget ui-widget-content").css({width:"95%",padding:"0"});a("table thead tr",d.panel).addClass("ui-widget-header");a("table tbody td[source='2']",d.panel).append('<span title="computer" style="display: inline-block; margin-right: 0.3em;" class="ui-icon ui-icon-gear"></span>');a("table tbody td[source='1']",d.panel).append('<span title="computer" style="display: inline-block; margin-right: 0.3em;" class="ui-icon ui-icon-gear"></span>');
18
+ a("table tbody td[source='0']",d.panel).append('<span title="human" style="display: inline-block; margin-right: 0.3em;" class="ui-icon ui-icon-person"></span>')}).bind("tabsselect",function(f,d){a(d.tab).text()===t_jp.edit_box_translate?a("#"+t_jp.prefix+"d-tabs").dialog("option","buttons",c):a("#"+t_jp.prefix+"d-tabs").dialog("option","buttons",e)}).bind("dialogbeforeclose",function(){if(a("#"+t_jp.prefix+"translation").data("edit").changed){n();return false}return true});a("#"+t_jp.prefix+"d-tabs li").css("list-style-type",
19
+ "none").css("list-style-position","outside");a("#"+t_jp.prefix+"d-tabs-1").css("padding","1px").append('<form id="'+t_jp.prefix+'form"><fieldset><label for="original">'+t_jp.edit_box_original+'</label><textarea cols="80" row="3" name="original" id="'+t_jp.prefix+'original" class="text ui-widget-content ui-corner-all" readonly="y"/><label for="translation">'+t_jp.edit_box_translate_to+'</label><textarea cols="80" row="3" name="translation" id="'+t_jp.prefix+'translation" value="" class="text ui-widget-content ui-corner-all"/></fieldset></form>');
20
  a("#"+t_jp.prefix+"d-tabs-1 label").css("display","block");a("#"+t_jp.prefix+"d-tabs-1 textarea.text").css({"margin-bottom":"12px",width:"95%",padding:".4em"});a("#"+t_jp.prefix+"original").val(a("#"+t_jp.prefix+b).attr("data-orig"));a("#"+t_jp.prefix+"translation").val(a("#"+t_jp.prefix+b).html());a("#"+t_jp.prefix+b).attr("data-trans")&&a("#"+t_jp.prefix+"translation").val(a("#"+t_jp.prefix+b).attr("data-trans"));a("#"+t_jp.prefix+"translation").data("edit",{changed:false});a("#"+t_jp.prefix+"translation").keyup(function(){if(a("#"+
21
  t_jp.prefix+b).text()!==a(this).val()){a(this).css("background","yellow");a(this).data("edit",{changed:true})}else{a(this).css("background","");a(this).data("edit",{changed:false})}});a("#"+t_jp.prefix+"d-tabs").dialog({width:500,buttons:c})}a("."+t_jp.prefix).each(function(){var b=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),c;a(this).after('<span id="'+t_jp.prefix+"img_"+b+'" class="tr-icon" title="'+a(this).attr("data-orig")+'"></span>');c=a("#"+t_jp.prefix+"img_"+b);c.click(function(){if(typeof a.fn.tabs!==
22
  "function"||typeof a.fn.dialog!=="function"){a.ajaxSetup({cache:true});a.getScript(t_jp.plugin_url+"/js/lazy.js",function(){a.xLazyLoader({js:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js",css:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css",success:function(){g(b)}})})}else g(b);return false}).css({border:"0px",margin:"1px",padding:"0px"});if(a(this).attr("data-source")==="0")c.addClass("tr-icon-green");else a(this).attr("data-source")&&
langs/transposh-he_IL.mo ADDED
Binary file
langs/transposh-he_IL.po ADDED
@@ -0,0 +1,537 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Transposh Translation Filter v%VERSION%\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2010-09-07 21:26+0000\n"
7
+ "Last-Translator: admin <ofer_wpdev@islands.co.il>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Hebrew\n"
14
+ "X-Poedit-Country: ISRAEL\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: wp/transposh_3rdparty.php:146
23
+ #, php-format
24
+ #@ buddypress
25
+ msgid "%s translated a phrase to %s with transposh:"
26
+ msgstr "%s תרגם פסקה ל-%s בעזרת טרנספוש:"
27
+
28
+ #: wp/transposh_admin.php:259
29
+ #@ transposh
30
+ msgid "Problems?"
31
+ msgstr "בעיות?"
32
+
33
+ #: wp/transposh_widget.php:88
34
+ #@ transposh
35
+ msgid "Transposh language selection widget"
36
+ msgstr "ישומון בחירת השפה של טרנספוש"
37
+
38
+ #: wp/transposh_widget.php:208
39
+ #@ transposh
40
+ msgid "Translation"
41
+ msgstr "תרגום"
42
+
43
+ #: wp/transposh_admin.php:189
44
+ #@ transposh
45
+ msgid "About this plugin"
46
+ msgstr "אודות תוסף זה"
47
+
48
+ #: wp/transposh_admin.php:190
49
+ #@ transposh
50
+ msgid "Widget settings"
51
+ msgstr "הגדרות ישומון"
52
+
53
+ #: wp/transposh_admin.php:191
54
+ #@ transposh
55
+ msgid "Plugin news"
56
+ msgstr "חדשות התוסף"
57
+
58
+ #: wp/transposh_admin.php:192
59
+ #@ transposh
60
+ msgid "Plugin stats"
61
+ msgstr "סטטיסטיקות התוסף"
62
+
63
+ #: wp/transposh_admin.php:193
64
+ #@ transposh
65
+ msgid "Translate all"
66
+ msgstr "תרגם הכל"
67
+
68
+ #: wp/transposh_admin.php:194
69
+ #@ transposh
70
+ msgid "Supported languages"
71
+ msgstr "שפות נתמכות"
72
+
73
+ #: wp/transposh_admin.php:195
74
+ #@ transposh
75
+ msgid "Translation settings"
76
+ msgstr "הגדרות תרגום"
77
+
78
+ #: wp/transposh_admin.php:196
79
+ #@ transposh
80
+ msgid "Automatic translation settings"
81
+ msgstr "הגדרות תרגום אוטומטי"
82
+
83
+ #: wp/transposh_admin.php:197
84
+ #@ transposh
85
+ msgid "Generic settings"
86
+ msgstr "הגדרות כלליות"
87
+
88
+ #: wp/transposh_admin.php:198
89
+ #@ transposh
90
+ msgid "Database maintenance"
91
+ msgstr "תחזוקת בסיס הנתונים"
92
+
93
+ #: wp/transposh_admin.php:207
94
+ #@ transposh
95
+ msgid "Transposh community features"
96
+ msgstr "תכונות קהילתיות בטרנספוש"
97
+
98
+ #: wp/transposh_admin.php:149
99
+ #: wp/transposh_admin.php:214
100
+ #: wp/transposh_widget.php:88
101
+ #: wp/transposh_widget.php:91
102
+ #: wp/transposh_widget.php:253
103
+ #@ transposh
104
+ msgid "Transposh"
105
+ msgstr "טרנספוש"
106
+
107
+ #: wp/transposh_admin.php:301
108
+ #@ transposh
109
+ msgid "Translate by clicking the button below"
110
+ msgstr "תרגם על ידי לחיצה על הכפתור למטה"
111
+
112
+ #: wp/transposh_admin.php:302
113
+ #@ transposh
114
+ msgid "Translate All Now"
115
+ msgstr "תרגם הכל עכשיו"
116
+
117
+ #: transposh.php:601
118
+ #@ transposh
119
+ msgctxt "Edit Interface"
120
+ msgid "Edit Translation"
121
+ msgstr "עריכת תרגום"
122
+
123
+ #: transposh.php:602
124
+ #@ transposh
125
+ msgctxt "Edit Interface"
126
+ msgid "Translate"
127
+ msgstr "תרגם"
128
+
129
+ #: transposh.php:603
130
+ #@ transposh
131
+ msgctxt "Edit Interface"
132
+ msgid "History"
133
+ msgstr "היסטוריה"
134
+
135
+ #: transposh.php:604
136
+ #@ transposh
137
+ msgctxt "Edit Interface"
138
+ msgid "Original Text"
139
+ msgstr "טקסט מקורי"
140
+
141
+ #: transposh.php:605
142
+ #@ transposh
143
+ msgctxt "Edit Interface"
144
+ msgid "Translate To"
145
+ msgstr "תרגם ל"
146
+
147
+ #: wp/transposh_admin.php:277
148
+ #@ transposh
149
+ msgid "Plugin Homepage"
150
+ msgstr "עמוד הבית של התוסף"
151
+
152
+ #: wp/transposh_admin.php:278
153
+ #@ transposh
154
+ msgid "Suggest a Feature"
155
+ msgstr "הצע תכונה"
156
+
157
+ #: wp/transposh_admin.php:280
158
+ #@ transposh
159
+ msgid "Report a Bug"
160
+ msgstr "דווח על באג"
161
+
162
+ #: wp/transposh_admin.php:359
163
+ #@ transposh
164
+ msgid "Default Language (drag another language here to make it default)"
165
+ msgstr "שפת ברירת המחדל (גרור שפה אחרת לכאן על מנת להפכה לברירת מחדל)"
166
+
167
+ #: wp/transposh_admin.php:366
168
+ #@ transposh
169
+ msgid "Available Languages (Click to toggle language state - Drag to sort in the widget)"
170
+ msgstr "שפות זמינות (הקלק כדי לשנות את סטטוס השפה - גרור כדי למיין בישומון)"
171
+
172
+ #: wp/transposh_admin.php:376
173
+ #@ transposh
174
+ msgid "Language supported by google translate"
175
+ msgstr "שפה נתמכת ע\"י המתרגם של גוגל"
176
+
177
+ #: wp/transposh_admin.php:378
178
+ #@ transposh
179
+ msgid "Language supported by bing translate"
180
+ msgstr "שפה נתמכת ע\"י המתרגם של בינג"
181
+
182
+ #: wp/transposh_admin.php:380
183
+ #@ transposh
184
+ msgid "Language is written from right to left"
185
+ msgstr "שפה הנכתבת מימין לשמאל"
186
+
187
+ #: wp/transposh_admin.php:385
188
+ #@ transposh
189
+ msgid "Display options:"
190
+ msgstr "הגדרות תצוגה:"
191
+
192
+ #: wp/transposh_admin.php:386
193
+ #@ transposh
194
+ msgid "Toggle names of languages between English and Original"
195
+ msgstr "שנה את הצגת שפות השפות בין אנגלית למקןר"
196
+
197
+ #: wp/transposh_admin.php:387
198
+ #@ transposh
199
+ msgid "Make all languages active"
200
+ msgstr "הפוך את כל השפות לפעילות"
201
+
202
+ #: wp/transposh_admin.php:388
203
+ #@ transposh
204
+ msgid "Sort by language name"
205
+ msgstr "מיין לפי שם השפה"
206
+
207
+ #: wp/transposh_admin.php:389
208
+ #@ transposh
209
+ msgid "Sort by lSO code"
210
+ msgstr "מיין לפי קוד ה-ISO"
211
+
212
+ #: wp/transposh_admin.php:390
213
+ #@ transposh
214
+ msgid "Legend:"
215
+ msgstr "מקרא:"
216
+
217
+ #: wp/transposh_admin.php:390
218
+ #@ transposh
219
+ msgid "Green - active"
220
+ msgstr "ירוק - פעיל"
221
+
222
+ #: wp/transposh_admin.php:390
223
+ #@ transposh
224
+ msgid "Yellow - translateable (only translators will see this language)"
225
+ msgstr "צהוב - ניתן לתרגום (רק מתרגמים יראו את השפה)"
226
+
227
+ #: wp/transposh_admin.php:390
228
+ #@ transposh
229
+ msgid "blank - inactive"
230
+ msgstr "ללא צבע - לא פעיל"
231
+
232
+ #: wp/transposh_admin.php:407
233
+ #@ transposh
234
+ msgid "Who can translate ?"
235
+ msgstr "מי יכול לתרגם?"
236
+
237
+ #: wp/transposh_admin.php:414
238
+ #@ transposh
239
+ msgid "Anonymous"
240
+ msgstr "אנונימי"
241
+
242
+ #: wp/transposh_admin.php:420
243
+ #@ transposh
244
+ msgid "Enable default language translation"
245
+ msgstr "אפשר תרגום של שפת ברירת המחדל"
246
+
247
+ #: wp/transposh_admin.php:422
248
+ #@ transposh
249
+ msgid "Allow translation of default language - useful for sites with more than one major language"
250
+ msgstr "אפשר תרגום שפת ברירת המחדל - שימושי באתרים עם יותר משפה עיקרית אחת"
251
+
252
+ #: wp/transposh_admin.php:429
253
+ #@ transposh
254
+ msgid "Enable search in translated languages"
255
+ msgstr "אפשר חיפוש בשפות המתורגמות"
256
+
257
+ #: wp/transposh_admin.php:431
258
+ #@ transposh
259
+ msgid "Allow search of translated languages, in those languages (and the original language)"
260
+ msgstr "אפשר חיפוש בשפות המתורגמות, בשפות אלו (ובשפת המקור)"
261
+
262
+ #: wp/transposh_admin.php:440
263
+ #@ transposh
264
+ msgid "Allow translation of permalinks and urls"
265
+ msgstr "אפשר תרגום של קישורים קבועים וכתובות אינטרנט"
266
+
267
+ #: wp/transposh_admin.php:460
268
+ #@ transposh
269
+ msgid "Enable automatic translation"
270
+ msgstr "אפשר תרגום אוטומטי"
271
+
272
+ #: wp/transposh_admin.php:462
273
+ #@ transposh
274
+ msgid "Allow automatic translation of pages"
275
+ msgstr "אפשר תרגום אוטומטי של דפים"
276
+
277
+ #: wp/transposh_admin.php:468
278
+ #@ transposh
279
+ msgid "Enable automatic translation after posting"
280
+ msgstr "אפשר תרגום אוטומטי לאחר יצירת פוסט"
281
+
282
+ #: wp/transposh_admin.php:470
283
+ #@ transposh
284
+ msgid "Do automatic translation immediately after a post has been published"
285
+ msgstr "בצע תרגום אוטומטי מייד לאחר שפוסט מפורסם"
286
+
287
+ #: wp/transposh_admin.php:475
288
+ #@ transposh
289
+ msgid "Select preferred auto translation engine"
290
+ msgstr "בחר את מנוע התרגום האוטומטי המועדף"
291
+
292
+ #: wp/transposh_admin.php:476
293
+ #@ transposh
294
+ msgid "Translation engine:"
295
+ msgstr "מנוע תרגום:"
296
+
297
+ #: wp/transposh_admin.php:478
298
+ #@ transposh
299
+ msgid "Google"
300
+ msgstr "גוגל"
301
+
302
+ #: wp/transposh_admin.php:479
303
+ #@ transposh
304
+ msgid "Bing"
305
+ msgstr "בינג"
306
+
307
+ #: wp/transposh_admin.php:489
308
+ #@ transposh
309
+ msgid "Rewrite URLs"
310
+ msgstr "שיכתוב כתובות אינטרנט"
311
+
312
+ #: wp/transposh_admin.php:500
313
+ #@ transposh
314
+ msgid "Add scripts to footer"
315
+ msgstr "הוסף סקריפטים לתחתית הדף"
316
+
317
+ #: wp/transposh_admin.php:503
318
+ #@ transposh
319
+ msgid "Push transposh scripts to footer of page instead of header, makes pages load faster. Requires that your theme should have proper footer support."
320
+ msgstr "הכנס את הסקריפטים של טרנספוש לתחתית העמוד במקום לחלקו העליון, העמוד יטען מהר יותר. ערכת העיצוב חייבת להכיל תמיכה בחלק תחתון."
321
+
322
+ #: wp/transposh_admin.php:509
323
+ #@ transposh
324
+ msgid "Auto detect language for users"
325
+ msgstr "זהה שפה עבור המשתמשים באופן אוטומטי"
326
+
327
+ #: wp/transposh_admin.php:512
328
+ #@ transposh
329
+ msgid "This enables auto detection of language used by the user as defined in the ACCEPT_LANGUAGES they send. This will redirect the first page accessed in the session to the same page with the detected language."
330
+ msgstr "תכונה זו מאפשרת זיהוי אוטומטי של השפה בה משתמשים המשתמשים כפי שמוגדרת ב-ACCEPT_LANGUAGES אותו הם שולחים. תכונה זו תשלח את הדף הראשון אל דף זהה בשפה שזוהתה."
331
+
332
+ #: wp/transposh_admin.php:522
333
+ #@ transposh
334
+ msgid "Delete all automated translations"
335
+ msgstr "מחק את כל התרגומים האוטומטיים"
336
+
337
+ #: wp/transposh_admin.php:523
338
+ #@ transposh
339
+ msgid "Delete automated translations older than 14 days"
340
+ msgstr "מחק תרגומים אוטומטיים בני יותר מ-14 ימים"
341
+
342
+ #: wp/transposh_admin.php:527
343
+ #@ transposh
344
+ msgid "Backup service for human translation"
345
+ msgstr "שרות גיבוי לתרגום אנושי"
346
+
347
+ #: wp/transposh_admin.php:528
348
+ #@ transposh
349
+ msgid "Enable daily backup"
350
+ msgstr "אפשר גיבוי יומי"
351
+
352
+ #: wp/transposh_admin.php:529
353
+ #@ transposh
354
+ msgid "Enable live backup"
355
+ msgstr "אפשר גיבוי חי"
356
+
357
+ #: wp/transposh_admin.php:530
358
+ #@ transposh
359
+ msgid "Disable backup (Can be run manually by clicking the button below)"
360
+ msgstr "בטל גיבוי (ניתן להריץ ידנית על ידי לחיצה על הכפתור למטה)"
361
+
362
+ #: wp/transposh_admin.php:531
363
+ #@ transposh
364
+ msgid "How to restore?"
365
+ msgstr "איך לשחזר?"
366
+
367
+ #: wp/transposh_admin.php:533
368
+ #@ transposh
369
+ msgid "Do Backup Now"
370
+ msgstr "גבה עכשיו"
371
+
372
+ #: wp/transposh_admin.php:139
373
+ #@ transposh
374
+ msgid "Transposh makes your blog translatable"
375
+ msgstr "טרנספוש הופך את הבלוג שלך לניתן לתרגום"
376
+
377
+ #: wp/transposh_admin.php:140
378
+ #@ transposh
379
+ msgid "Plugin homepage"
380
+ msgstr "עמוד הבית של התוסף"
381
+
382
+ #: wp/transposh_admin.php:141
383
+ #@ transposh
384
+ msgid "Frequently asked questions"
385
+ msgstr "שאלות נפוצות"
386
+
387
+ #: wp/transposh_admin.php:149
388
+ #@ transposh
389
+ msgid "Transposh control center"
390
+ msgstr "מרכז השליטה של טרנספוש"
391
+
392
+ #: wp/transposh_admin.php:438
393
+ #@ transposh
394
+ msgid "Enable url translation"
395
+ msgstr "אפשר תרגום כתובות אינטרנט"
396
+
397
+ #: wp/transposh_admin.php:438
398
+ #: wp/transposh_admin.php:448
399
+ #@ transposh
400
+ msgid "experimental"
401
+ msgstr "נסיוני"
402
+
403
+ #: wp/transposh_admin.php:493
404
+ #@ transposh
405
+ msgid "Rewrite URLs to be search engine friendly, e.g. (http://transposh.org/<strong>en</strong>). Requires that permalinks will be enabled."
406
+ msgstr "שכתוב כתובות אינטרנט כדי שיהיו ידידותיות למנועי חיפוש, למשל (http://transposh.org/<strong>en</strong>). יש חובה להפעיל קישורים קבועים."
407
+
408
+ #: wp/transposh_db.php:525
409
+ #@ transposh
410
+ msgid "Database stats"
411
+ msgstr "סטטיסטיקות בסיס הנתונים"
412
+
413
+ #: wp/transposh_db.php:530
414
+ #, php-format
415
+ #@ transposh
416
+ msgid "Total of <strong style=\"color:red\">%s</strong> translated phrases."
417
+ msgstr "סך הכל <strong style=\"color:red\">%s</strong> מקטעים מתורגמים."
418
+
419
+ #: wp/transposh_db.php:537
420
+ #, php-format
421
+ #@ transposh
422
+ msgid "<strong>%1s</strong> has <strong style=\"color:red\">%2s</strong> human translated phrases."
423
+ msgstr "ב-<strong>%1s</strong> ישנם <strong style=\"color:red\">%2s</strong> מקטעים מתורגמים על ידי בן אדם."
424
+
425
+ #: wp/transposh_db.php:540
426
+ #@ transposh
427
+ msgid "Recent activity"
428
+ msgstr "פעילות אחרונה"
429
+
430
+ #: wp/transposh_db.php:545
431
+ #, php-format
432
+ #@ transposh
433
+ msgid "On <strong>%1s</strong><br/>user <strong>%2s</strong> translated<br/>\"<strong>%3s</strong>\"<br/>to <strong style=\"color:red\">%4s</strong><br/>\"<strong>%5s</strong>\""
434
+ msgstr "ב <strong>%1s</strong><br/>המשתמש <strong>%2s</strong> תרגם את<br/>\"<strong>%3s</strong>\"<br/>ל <strong style=\"color:red\">%4s</strong><br/>\"<strong>%5s</strong>\""
435
+
436
+ #: wp/transposh_widget.php:332
437
+ #@ transposh
438
+ msgid "Style:"
439
+ msgstr "סגנון:"
440
+
441
+ #: wp/transposh_widget.php:341
442
+ #@ transposh
443
+ msgid "Effects:"
444
+ msgstr "אפקטים:"
445
+
446
+ #: wp/transposh_widget.php:343
447
+ #@ transposh
448
+ msgid "Show progress bar when a client triggers automatic translation"
449
+ msgstr "הראה בר התקדמות בעת שמשתמש יוזם תרגום אוטומטי"
450
+
451
+ #: wp/transposh_widget.php:343
452
+ #@ transposh
453
+ msgid "Show progress bar"
454
+ msgstr "הצג בר התקדמות"
455
+
456
+ #: wp/transposh_widget.php:345
457
+ #@ transposh
458
+ msgid "Widget will allow setting this language as user default"
459
+ msgstr "הישומון יאפשר הגדרת שפה זו כברירת מחדל"
460
+
461
+ #: wp/transposh_widget.php:345
462
+ #@ transposh
463
+ msgid "Allow user to set current language as default"
464
+ msgstr "אפשר למשתמש לבחור את השפה הנוכחית כברירת מחדל"
465
+
466
+ #: wp/transposh_widget.php:347
467
+ #@ transposh
468
+ msgid "Transposh logo will not appear on widget"
469
+ msgstr "הלוגו של טרנספוש לא יופיע בישומון"
470
+
471
+ #: wp/transposh_widget.php:347
472
+ #@ transposh
473
+ msgid "Remove transposh logo (see <a href=\"http://transposh.org/logoterms\">terms</a>)"
474
+ msgstr "הסרת הלוגו של טרנספוש (ראה <a href=\"http://transposh.org/logoterms\">תנאים</a>)"
475
+
476
+ #: wp/transposh_admin.php:531
477
+ #@ transposh
478
+ msgid "Service Key:"
479
+ msgstr "מפתח שרות:"
480
+
481
+ #: wp/transposh_widget.php:221
482
+ #@ transposh
483
+ msgid "Set as default language"
484
+ msgstr "הגדר כשפת ברירת מחדל"
485
+
486
+ #. translators: plugin header field 'Name'
487
+ #: transposh.php:0
488
+ #@ transposh
489
+ msgid "Transposh Translation Filter"
490
+ msgstr "פילטר התרגום של טרנספוש"
491
+
492
+ #. translators: plugin header field 'PluginURI'
493
+ #. translators: plugin header field 'AuthorURI'
494
+ #: transposh.php:0
495
+ #@ transposh
496
+ msgid "http://transposh.org/"
497
+ msgstr "http://transposh.org/he/"
498
+
499
+ #. translators: plugin header field 'Description'
500
+ #: transposh.php:0
501
+ #@ transposh
502
+ msgid "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>."
503
+ msgstr "פילטר תרגום לוורדפרס, לאחר ההפעלה נא הגדר את השפות כאן <a href=\\\"options-general.php?page=transposh\\\">עמוד ההגדרות</a> רוצה לעזור? בקר את אתר הפיתוח שלנו בכתובת <a href=\\\"http://trac.transposh.org/\\\">trac.transposh.org</a>."
504
+
505
+ #. translators: plugin header field 'Author'
506
+ #: transposh.php:0
507
+ #@ transposh
508
+ msgid "Team Transposh"
509
+ msgstr "צוות טרנספוש"
510
+
511
+ #. translators: plugin header field 'Version'
512
+ #: transposh.php:0
513
+ #, php-format
514
+ #@ transposh
515
+ msgid "%VERSION%"
516
+ msgstr ""
517
+
518
+ #: transposh.php:691
519
+ #@ default
520
+ msgid "Settings"
521
+ msgstr ""
522
+
523
+ #: wp/transposh_admin.php:235
524
+ #@ default
525
+ msgid "Save Changes"
526
+ msgstr ""
527
+
528
+ #: wp/transposh_admin.php:448
529
+ #@ transposh
530
+ msgid "Enable gettext integration"
531
+ msgstr "אפשר אינטגרציית gettext"
532
+
533
+ #: wp/transposh_admin.php:450
534
+ #@ transposh
535
+ msgid "Enable integration of Transposh with existing gettext interface (.po/.mo files)"
536
+ msgstr "אפשר אינטגרציה של טרנספוש עם ממשק gettext הקיים (קבצי .po/.mo)"
537
+
langs/transposh.pot ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2010
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: \n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/transposh-translation-filter-"
11
+ "for-wordpress\n"
12
+ "POT-Creation-Date: 2010-10-13 10:21+0000\n"
13
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
14
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
+ "Language-Team: LANGUAGE <LL@li.org>\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=utf-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+
20
+ #: transposh.php:601
21
+ msgctxt "Edit Interface"
22
+ msgid "Edit Translation"
23
+ msgstr ""
24
+
25
+ #: transposh.php:602
26
+ msgctxt "Edit Interface"
27
+ msgid "Translate"
28
+ msgstr ""
29
+
30
+ #: transposh.php:603
31
+ msgctxt "Edit Interface"
32
+ msgid "History"
33
+ msgstr ""
34
+
35
+ #: transposh.php:604
36
+ msgctxt "Edit Interface"
37
+ msgid "Original Text"
38
+ msgstr ""
39
+
40
+ #: transposh.php:605
41
+ msgctxt "Edit Interface"
42
+ msgid "Translate To"
43
+ msgstr ""
44
+
45
+ #: transposh.php:691
46
+ msgid "Settings"
47
+ msgstr ""
48
+
49
+ #: wp/transposh_3rdparty.php:146
50
+ #, php-format
51
+ msgid "%s translated a phrase to %s with transposh:"
52
+ msgstr ""
53
+
54
+ #: wp/transposh_admin.php:140
55
+ msgid "Transposh makes your blog translatable"
56
+ msgstr ""
57
+
58
+ #: wp/transposh_admin.php:141
59
+ msgid "Plugin homepage"
60
+ msgstr ""
61
+
62
+ #: wp/transposh_admin.php:142
63
+ msgid "Frequently asked questions"
64
+ msgstr ""
65
+
66
+ #: wp/transposh_admin.php:150
67
+ msgid "Transposh control center"
68
+ msgstr ""
69
+
70
+ #: wp/transposh_admin.php:150 wp/transposh_admin.php:215
71
+ #: wp/transposh_widget.php:88 wp/transposh_widget.php:91
72
+ #: wp/transposh_widget.php:253
73
+ msgid "Transposh"
74
+ msgstr ""
75
+
76
+ #: wp/transposh_admin.php:190
77
+ msgid "About this plugin"
78
+ msgstr ""
79
+
80
+ #: wp/transposh_admin.php:191
81
+ msgid "Widget settings"
82
+ msgstr ""
83
+
84
+ #: wp/transposh_admin.php:192
85
+ msgid "Plugin news"
86
+ msgstr ""
87
+
88
+ #: wp/transposh_admin.php:193
89
+ msgid "Plugin stats"
90
+ msgstr ""
91
+
92
+ #: wp/transposh_admin.php:194
93
+ msgid "Translate all"
94
+ msgstr ""
95
+
96
+ #: wp/transposh_admin.php:195
97
+ msgid "Supported languages"
98
+ msgstr ""
99
+
100
+ #: wp/transposh_admin.php:196
101
+ msgid "Translation settings"
102
+ msgstr ""
103
+
104
+ #: wp/transposh_admin.php:197
105
+ msgid "Automatic translation settings"
106
+ msgstr ""
107
+
108
+ #: wp/transposh_admin.php:198
109
+ msgid "Generic settings"
110
+ msgstr ""
111
+
112
+ #: wp/transposh_admin.php:199
113
+ msgid "Database maintenance"
114
+ msgstr ""
115
+
116
+ #: wp/transposh_admin.php:208
117
+ msgid "Transposh community features"
118
+ msgstr ""
119
+
120
+ #: wp/transposh_admin.php:236
121
+ msgid "Save Changes"
122
+ msgstr ""
123
+
124
+ #: wp/transposh_admin.php:260
125
+ msgid "Problems?"
126
+ msgstr ""
127
+
128
+ #: wp/transposh_admin.php:278
129
+ msgid "Plugin Homepage"
130
+ msgstr ""
131
+
132
+ #: wp/transposh_admin.php:279
133
+ msgid "Suggest a Feature"
134
+ msgstr ""
135
+
136
+ #: wp/transposh_admin.php:281
137
+ msgid "Report a Bug"
138
+ msgstr ""
139
+
140
+ #: wp/transposh_admin.php:302
141
+ msgid "Translate by clicking the button below"
142
+ msgstr ""
143
+
144
+ #: wp/transposh_admin.php:303
145
+ msgid "Translate All Now"
146
+ msgstr ""
147
+
148
+ #: wp/transposh_admin.php:360
149
+ msgid "Default Language (drag another language here to make it default)"
150
+ msgstr ""
151
+
152
+ #: wp/transposh_admin.php:367
153
+ msgid ""
154
+ "Available Languages (Click to toggle language state - Drag to sort in the "
155
+ "widget)"
156
+ msgstr ""
157
+
158
+ #: wp/transposh_admin.php:377
159
+ msgid "Language supported by google translate"
160
+ msgstr ""
161
+
162
+ #: wp/transposh_admin.php:379
163
+ msgid "Language supported by bing translate"
164
+ msgstr ""
165
+
166
+ #: wp/transposh_admin.php:381
167
+ msgid "Language is written from right to left"
168
+ msgstr ""
169
+
170
+ #: wp/transposh_admin.php:386
171
+ msgid "Display options:"
172
+ msgstr ""
173
+
174
+ #: wp/transposh_admin.php:387
175
+ msgid "Toggle names of languages between English and Original"
176
+ msgstr ""
177
+
178
+ #: wp/transposh_admin.php:388
179
+ msgid "Make all languages active"
180
+ msgstr ""
181
+
182
+ #: wp/transposh_admin.php:389
183
+ msgid "Sort by language name"
184
+ msgstr ""
185
+
186
+ #: wp/transposh_admin.php:390
187
+ msgid "Sort by lSO code"
188
+ msgstr ""
189
+
190
+ #: wp/transposh_admin.php:391
191
+ msgid "Legend:"
192
+ msgstr ""
193
+
194
+ #: wp/transposh_admin.php:391
195
+ msgid "Green - active"
196
+ msgstr ""
197
+
198
+ #: wp/transposh_admin.php:391
199
+ msgid "Yellow - translateable (only translators will see this language)"
200
+ msgstr ""
201
+
202
+ #: wp/transposh_admin.php:391
203
+ msgid "blank - inactive"
204
+ msgstr ""
205
+
206
+ #: wp/transposh_admin.php:408
207
+ msgid "Who can translate ?"
208
+ msgstr ""
209
+
210
+ #: wp/transposh_admin.php:415
211
+ msgid "Anonymous"
212
+ msgstr ""
213
+
214
+ #: wp/transposh_admin.php:421
215
+ msgid "Enable default language translation"
216
+ msgstr ""
217
+
218
+ #: wp/transposh_admin.php:423
219
+ msgid ""
220
+ "Allow translation of default language - useful for sites with more than one "
221
+ "major language"
222
+ msgstr ""
223
+
224
+ #: wp/transposh_admin.php:430
225
+ msgid "Enable search in translated languages"
226
+ msgstr ""
227
+
228
+ #: wp/transposh_admin.php:432
229
+ msgid ""
230
+ "Allow search of translated languages, in those languages (and the original "
231
+ "language)"
232
+ msgstr ""
233
+
234
+ #: wp/transposh_admin.php:439
235
+ msgid "Enable url translation"
236
+ msgstr ""
237
+
238
+ #: wp/transposh_admin.php:439 wp/transposh_admin.php:448
239
+ msgid "experimental"
240
+ msgstr ""
241
+
242
+ #: wp/transposh_admin.php:441
243
+ msgid "Allow translation of permalinks and urls"
244
+ msgstr ""
245
+
246
+ #: wp/transposh_admin.php:448
247
+ msgid "Enable gettext integration"
248
+ msgstr ""
249
+
250
+ #: wp/transposh_admin.php:450
251
+ msgid ""
252
+ "Enable integration of Transposh with existing gettext interface (.po/.mo "
253
+ "files)"
254
+ msgstr ""
255
+
256
+ #: wp/transposh_admin.php:459
257
+ msgid "Enable automatic translation"
258
+ msgstr ""
259
+
260
+ #: wp/transposh_admin.php:461
261
+ msgid "Allow automatic translation of pages"
262
+ msgstr ""
263
+
264
+ #: wp/transposh_admin.php:467
265
+ msgid "Enable automatic translation after posting"
266
+ msgstr ""
267
+
268
+ #: wp/transposh_admin.php:469
269
+ msgid "Do automatic translation immediately after a post has been published"
270
+ msgstr ""
271
+
272
+ #: wp/transposh_admin.php:474
273
+ msgid "Select preferred auto translation engine"
274
+ msgstr ""
275
+
276
+ #: wp/transposh_admin.php:475
277
+ msgid "Translation engine:"
278
+ msgstr ""
279
+
280
+ #: wp/transposh_admin.php:477
281
+ msgid "Google"
282
+ msgstr ""
283
+
284
+ #: wp/transposh_admin.php:478
285
+ msgid "Bing"
286
+ msgstr ""
287
+
288
+ #: wp/transposh_admin.php:488
289
+ msgid "Rewrite URLs"
290
+ msgstr ""
291
+
292
+ #: wp/transposh_admin.php:490
293
+ msgid "Rewrite URLs to be search engine friendly, "
294
+ msgstr ""
295
+
296
+ #: wp/transposh_admin.php:499
297
+ msgid "Add scripts to footer"
298
+ msgstr ""
299
+
300
+ #: wp/transposh_admin.php:501
301
+ msgid ""
302
+ "Push transposh scripts to footer of page instead of header, makes pages load "
303
+ "faster. "
304
+ msgstr ""
305
+
306
+ #: wp/transposh_admin.php:508
307
+ msgid "Auto detect language for users"
308
+ msgstr ""
309
+
310
+ #: wp/transposh_admin.php:510
311
+ msgid ""
312
+ "This enables auto detection of language used by the user as defined in the "
313
+ "ACCEPT_LANGUAGES they send. "
314
+ msgstr ""
315
+
316
+ #: wp/transposh_admin.php:521
317
+ msgid "Delete all automated translations"
318
+ msgstr ""
319
+
320
+ #: wp/transposh_admin.php:522
321
+ msgid "Delete automated translations older than 14 days"
322
+ msgstr ""
323
+
324
+ #: wp/transposh_admin.php:526
325
+ msgid "Backup service for human translation"
326
+ msgstr ""
327
+
328
+ #: wp/transposh_admin.php:527
329
+ msgid "Enable daily backup"
330
+ msgstr ""
331
+
332
+ #: wp/transposh_admin.php:528
333
+ msgid "Enable live backup"
334
+ msgstr ""
335
+
336
+ #: wp/transposh_admin.php:529
337
+ msgid "Disable backup (Can be run manually by clicking the button below)"
338
+ msgstr ""
339
+
340
+ #: wp/transposh_admin.php:530
341
+ msgid "Service Key:"
342
+ msgstr ""
343
+
344
+ #: wp/transposh_admin.php:530
345
+ msgid "How to restore?"
346
+ msgstr ""
347
+
348
+ #: wp/transposh_admin.php:532
349
+ msgid "Do Backup Now"
350
+ msgstr ""
351
+
352
+ #: wp/transposh_db.php:525
353
+ msgid "Database stats"
354
+ msgstr ""
355
+
356
+ #: wp/transposh_db.php:530
357
+ #, php-format
358
+ msgid "Total of <strong style=\"color:red\">%s</strong> translated phrases."
359
+ msgstr ""
360
+
361
+ #: wp/transposh_db.php:537
362
+ #, php-format
363
+ msgid ""
364
+ "<strong>%1s</strong> has <strong style=\"color:red\">%2s</strong> human "
365
+ "translated phrases."
366
+ msgstr ""
367
+
368
+ #: wp/transposh_db.php:540
369
+ msgid "Recent activity"
370
+ msgstr ""
371
+
372
+ #: wp/transposh_db.php:545
373
+ #, php-format
374
+ msgid ""
375
+ "On <strong>%1s</strong><br/>user <strong>%2s</strong> translated<br/>"
376
+ "\"<strong>%3s</strong>\"<br/>to <strong style=\"color:red\">%4s</strong><br/>"
377
+ "\"<strong>%5s</strong>\""
378
+ msgstr ""
379
+
380
+ #: wp/transposh_widget.php:88
381
+ msgid "Transposh language selection widget"
382
+ msgstr ""
383
+
384
+ #: wp/transposh_widget.php:208
385
+ msgid "Translation"
386
+ msgstr ""
387
+
388
+ #: wp/transposh_widget.php:221
389
+ msgid "Set as default language"
390
+ msgstr ""
391
+
392
+ #: wp/transposh_widget.php:332
393
+ msgid "Style:"
394
+ msgstr ""
395
+
396
+ #: wp/transposh_widget.php:341
397
+ msgid "Effects:"
398
+ msgstr ""
399
+
400
+ #: wp/transposh_widget.php:343
401
+ msgid "Show progress bar when a client triggers automatic translation"
402
+ msgstr ""
403
+
404
+ #: wp/transposh_widget.php:343
405
+ msgid "Show progress bar"
406
+ msgstr ""
407
+
408
+ #: wp/transposh_widget.php:345
409
+ msgid "Widget will allow setting this language as user default"
410
+ msgstr ""
411
+
412
+ #: wp/transposh_widget.php:345
413
+ msgid "Allow user to set current language as default"
414
+ msgstr ""
415
+
416
+ #: wp/transposh_widget.php:347
417
+ msgid "Transposh logo will not appear on widget"
418
+ msgstr ""
419
+
420
+ #: wp/transposh_widget.php:347
421
+ msgid ""
422
+ "Remove transposh logo (see <a href=\"http://transposh.org/logoterms\">terms</"
423
+ "a>)"
424
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://transposh.org/donate/
4
  Tags: translation, widget, filter, buddypress, bilingual, multilingual, transposh, translate, language, crowdsourcing, context, wiki, RTL, Hebrew, Spanish, French, Russian, English, Arabic, Portuguese
5
  Requires at least: 2.8
6
  Tested up to: 3.0.1
7
- Stable tag: 0.6.3
8
 
9
  Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
10
 
@@ -193,6 +193,14 @@ This version provides integration with google-sitemaps-xml and wp-super-cache
193
  This version allows sorting of languages within the widget
194
 
195
  == Changelog ==
 
 
 
 
 
 
 
 
196
  = 2010/09/01 - 0.6.3 =
197
  * Support for gettext files (.po/.mo) files - see http://trac.transposh.org/wiki/UsingGetText
198
  * Support backend memory caching with xcache and eaccelarator in addition to apc
4
  Tags: translation, widget, filter, buddypress, bilingual, multilingual, transposh, translate, language, crowdsourcing, context, wiki, RTL, Hebrew, Spanish, French, Russian, English, Arabic, Portuguese
5
  Requires at least: 2.8
6
  Tested up to: 3.0.1
7
+ Stable tag: 0.6.4
8
 
9
  Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
10
 
193
  This version allows sorting of languages within the widget
194
 
195
  == Changelog ==
196
+ = 2010/10/13 - 0.6.4 =
197
+ * Support for translation of our interface and admin pages
198
+ * Hebrew translation for transposh
199
+ * Add the option to disable the gettext interface
200
+ * Fix problem with gettext collision with mailpress
201
+ * Add support for Latin
202
+ * Three new languages on bing translate Indonesian, Ukrainian and Vietnamese
203
+ * This version is dedicated to Sgula, 15, 15, 15
204
  = 2010/09/01 - 0.6.3 =
205
  * Support for gettext files (.po/.mo) files - see http://trac.transposh.org/wiki/UsingGetText
206
  * Support backend memory caching with xcache and eaccelarator in addition to apc
transposh.php CHANGED
@@ -5,20 +5,22 @@
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.6.3
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
 
 
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Thu, 02 Sep 2010 00:39:59 +0300
22
  */
23
 
24
  //avoid direct calls to this file where wp core files not present
@@ -124,6 +126,7 @@ class transposh_plugin {
124
  add_filter('comment_post_redirect', array(&$this, 'comment_post_redirect_filter'));
125
  add_filter('comment_text', array(&$this, 'comment_text_wrap'), 9999); // this is a late filter...
126
  add_action('init', array(&$this, 'on_init'), 0); // really high priority
 
127
  add_action('parse_request', array(&$this, 'on_parse_request'));
128
  add_action('plugins_loaded', array(&$this, 'plugin_loaded'));
129
  add_action('shutdown', array(&$this, 'on_shutdown'));
@@ -142,19 +145,37 @@ class transposh_plugin {
142
  //TODO add_action('manage_comments_nav', array(&$this,'manage_comments_nav'));
143
  //TODO comment_row_actions (filter)
144
  // Intergrating with the gettext interface
145
- add_filter('gettext', array(&$this, 'transposh_gettext_filter'), 10, 2);
146
- add_filter('gettext_with_context', array(&$this, 'transposh_gettext_filter'), 10, 2);
147
- add_filter('ngettext', array(&$this, 'transposh_ngettext_filter'), 10, 3);
148
- add_filter('ngettext_with_context', array(&$this, 'transposh_ngettext_filter'), 10, 3);
149
- add_filter('locale', array(&$this, 'transposh_locale_filter'));
 
 
150
 
151
- //CHECK TODO!!!!!!!!!!!!
 
 
152
  $this->tgl = transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url);
153
 
154
  register_activation_hook(__FILE__, array(&$this, 'plugin_activate'));
155
  register_deactivation_hook(__FILE__, array(&$this, 'plugin_deactivate'));
156
  }
157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  /**
159
  * Check if page is special (one that we normally should not touch
160
  * @param string $url Url to check
@@ -219,6 +240,10 @@ class transposh_plugin {
219
  return $buffer;
220
  }
221
 
 
 
 
 
222
  /**
223
  * Setup a buffer that will contain the contents of the html page.
224
  * Once processing is completed the buffer will go into the translation process.
@@ -241,6 +266,9 @@ class transposh_plugin {
241
  $this->target_language = transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url);
242
  }
243
 
 
 
 
244
  //set the callback for translating the page when it's done
245
  ob_start(array(&$this, "process_page"));
246
  }
@@ -556,7 +584,6 @@ class transposh_plugin {
556
  'prefix' => SPAN_PREFIX,
557
  'preferred' => $this->options->get_preferred_translator()
558
  );
559
- if ($this->edit_mode) $script_params['edit'] = 1;
560
  if (in_array($this->target_language, transposh_consts::$bing_languages))
561
  $script_params['msn'] = 1;
562
  if (in_array($this->target_language, transposh_consts::$google_languages))
@@ -568,6 +595,15 @@ class transposh_plugin {
568
  if (!$this->options->get_enable_auto_translate())
569
  $script_params['noauto'] = 1;
570
 
 
 
 
 
 
 
 
 
 
571
  // 'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
572
  wp_localize_script('transposh', 't_jp', $script_params);
573
 
@@ -652,7 +688,7 @@ class transposh_plugin {
652
  */
653
  function plugin_action_links($links) {
654
 
655
- return array_merge(array('<a href="' . admin_url('options-general.php?page=' . TRANSPOSH_ADMIN_PAGE_NAME) . '">Settings</a>'), $links);
656
  }
657
 
658
  /**
@@ -844,10 +880,14 @@ class transposh_plugin {
844
  * @param string $orig
845
  * @return string
846
  */
847
- function transposh_gettext_filter($translation, $orig) {
848
  if ($this->is_special_page($_SERVER['REQUEST_URI']) || ($this->options->is_default_language($this->tgl) && !$this->options->get_enable_default_translate())) {
849
  return $translation;
850
  }
 
 
 
 
851
  if ($translation != $orig) {
852
  $translation = TP_GTXT_BRK . $translation . TP_GTXT_BRK_CLOSER;
853
  }
@@ -862,9 +902,12 @@ class transposh_plugin {
862
  * @param string $plural
863
  * @return string
864
  */
865
- function transposh_ngettext_filter($translation, $single, $plural) {
866
  if ($this->is_special_page($_SERVER['REQUEST_URI']) || ($this->options->is_default_language($this->tgl) && !$this->options->get_enable_default_translate()))
867
  return $translation;
 
 
 
868
  if ($translation != $single && $translation != $plural) {
869
  $translation = TP_GTXT_BRK . $translation . TP_GTXT_BRK_CLOSER;
870
  }
@@ -873,6 +916,7 @@ class transposh_plugin {
873
  }
874
 
875
  function transposh_locale_filter($locale) {
 
876
  $lang = transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url);
877
  if (!$lang) return $locale;
878
  list ($l, $n, $f, $locale) = explode(',', transposh_consts::$languages[$lang]);
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.6.4
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
+ Text Domain: transposh
12
+ Domain Path: /langs
13
  */
14
 
15
  /*
16
+ * Transposh v0.6.4
17
  * http://transposh.org/
18
  *
19
  * Copyright 2010, Team Transposh
20
  * Licensed under the GPL Version 2 or higher.
21
  * http://transposh.org/license
22
  *
23
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
24
  */
25
 
26
  //avoid direct calls to this file where wp core files not present
126
  add_filter('comment_post_redirect', array(&$this, 'comment_post_redirect_filter'));
127
  add_filter('comment_text', array(&$this, 'comment_text_wrap'), 9999); // this is a late filter...
128
  add_action('init', array(&$this, 'on_init'), 0); // really high priority
129
+ // add_action('admin_init', array(&$this, 'on_admin_init')); might use to mark where not to work?
130
  add_action('parse_request', array(&$this, 'on_parse_request'));
131
  add_action('plugins_loaded', array(&$this, 'plugin_loaded'));
132
  add_action('shutdown', array(&$this, 'on_shutdown'));
145
  //TODO add_action('manage_comments_nav', array(&$this,'manage_comments_nav'));
146
  //TODO comment_row_actions (filter)
147
  // Intergrating with the gettext interface
148
+ if ($this->options->get_transposh_gettext_integration()) {
149
+ add_filter('gettext', array(&$this, 'transposh_gettext_filter'), 10, 3);
150
+ add_filter('gettext_with_context', array(&$this, 'transposh_gettext_filter'), 10, 3);
151
+ add_filter('ngettext', array(&$this, 'transposh_ngettext_filter'), 10, 4);
152
+ add_filter('ngettext_with_context', array(&$this, 'transposh_ngettext_filter'), 10, 4);
153
+ add_filter('locale', array(&$this, 'transposh_locale_filter'));
154
+ }
155
 
156
+ //
157
+ // FUTURE add_action('update-custom_transposh', array(&$this, 'update'));
158
+ // CHECK TODO!!!!!!!!!!!!
159
  $this->tgl = transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url);
160
 
161
  register_activation_hook(__FILE__, array(&$this, 'plugin_activate'));
162
  register_deactivation_hook(__FILE__, array(&$this, 'plugin_deactivate'));
163
  }
164
 
165
+ // function update() {
166
+ // echo 'hi';
167
+ //
168
+ // require_once('./admin-header.php');
169
+
170
+ /* $nonce = 'upgrade-plugin_' . $plugin;
171
+ $url = 'update.php?action=upgrade-plugin&plugin=' . $plugin;
172
+
173
+ $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact('title', 'nonce', 'url', 'plugin') ) );
174
+ $upgrader->upgrade($plugin);
175
+ */
176
+ // include('./admin-footer.php');
177
+ // }
178
+
179
  /**
180
  * Check if page is special (one that we normally should not touch
181
  * @param string $url Url to check
240
  return $buffer;
241
  }
242
 
243
+ // function on_admin_init() {
244
+ //
245
+ // }
246
+
247
  /**
248
  * Setup a buffer that will contain the contents of the html page.
249
  * Once processing is completed the buffer will go into the translation process.
266
  $this->target_language = transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url);
267
  }
268
 
269
+ // load translation files for transposh
270
+ load_plugin_textdomain(TRANSPOSH_TEXT_DOMAIN, false, dirname(plugin_basename(__FILE__)) . '/langs');
271
+
272
  //set the callback for translating the page when it's done
273
  ob_start(array(&$this, "process_page"));
274
  }
584
  'prefix' => SPAN_PREFIX,
585
  'preferred' => $this->options->get_preferred_translator()
586
  );
 
587
  if (in_array($this->target_language, transposh_consts::$bing_languages))
588
  $script_params['msn'] = 1;
589
  if (in_array($this->target_language, transposh_consts::$google_languages))
595
  if (!$this->options->get_enable_auto_translate())
596
  $script_params['noauto'] = 1;
597
 
598
+ // load translations needed for edit interface
599
+ if ($this->edit_mode) {
600
+ $script_params['edit'] = 1;
601
+ $script_params['edit_box_title'] = _x('Edit Translation', 'Edit Interface', TRANSPOSH_TEXT_DOMAIN);
602
+ $script_params['edit_box_translate'] = _x('Translate', 'Edit Interface', TRANSPOSH_TEXT_DOMAIN);
603
+ $script_params['edit_box_history'] = _x('History', 'Edit Interface', TRANSPOSH_TEXT_DOMAIN);
604
+ $script_params['edit_box_original'] = _x('Original Text', 'Edit Interface', TRANSPOSH_TEXT_DOMAIN);
605
+ $script_params['edit_box_translate_to'] = _x('Translate To', 'Edit Interface', TRANSPOSH_TEXT_DOMAIN);
606
+ }
607
  // 'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
608
  wp_localize_script('transposh', 't_jp', $script_params);
609
 
688
  */
689
  function plugin_action_links($links) {
690
 
691
+ return array_merge(array('<a href="' . admin_url('options-general.php?page=' . TRANSPOSH_ADMIN_PAGE_NAME) . '">' . __('Settings') . '</a>'), $links);
692
  }
693
 
694
  /**
880
  * @param string $orig
881
  * @return string
882
  */
883
+ function transposh_gettext_filter($translation, $orig, $domain) {
884
  if ($this->is_special_page($_SERVER['REQUEST_URI']) || ($this->options->is_default_language($this->tgl) && !$this->options->get_enable_default_translate())) {
885
  return $translation;
886
  }
887
+
888
+ // HACK - TODO - FIX
889
+ if (in_array($domain, transposh_consts::$ignored_po_domains))
890
+ return $translation;
891
  if ($translation != $orig) {
892
  $translation = TP_GTXT_BRK . $translation . TP_GTXT_BRK_CLOSER;
893
  }
902
  * @param string $plural
903
  * @return string
904
  */
905
+ function transposh_ngettext_filter($translation, $single, $plural, $domain) {
906
  if ($this->is_special_page($_SERVER['REQUEST_URI']) || ($this->options->is_default_language($this->tgl) && !$this->options->get_enable_default_translate()))
907
  return $translation;
908
+
909
+ if (in_array($domain, transposh_consts::$ignored_po_domains))
910
+ return $translation;
911
  if ($translation != $single && $translation != $plural) {
912
  $translation = TP_GTXT_BRK . $translation . TP_GTXT_BRK_CLOSER;
913
  }
916
  }
917
 
918
  function transposh_locale_filter($locale) {
919
+ //
920
  $lang = transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url);
921
  if (!$lang) return $locale;
922
  list ($l, $n, $f, $locale) = explode(',', transposh_consts::$languages[$lang]);
widgets/default/tpw_default.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
22
  */
23
 
24
  /*
11
  */
12
 
13
  /*
14
+ * Transposh v0.6.4
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
22
  */
23
 
24
  /*
widgets/dropdown/tpw_image_dropdown.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.6.4
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
22
  */
23
 
24
  /**
widgets/flags/flags59.png ADDED
Binary file
widgets/flags/tpw_flags.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.6.4
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
22
  */
23
 
24
  /**
widgets/flags/tpw_flags_css.css CHANGED
@@ -29,7 +29,7 @@
29
 
30
  /* define the .css sprites here */
31
  .trf {
32
- background-image:url(flags58.png);
33
  height:11px;
34
  width:16px;
35
  background-repeat:no-repeat;
@@ -69,28 +69,29 @@
69
  .trf-it {background-position: -720px 0}
70
  .trf-jp {background-position: -744px 0}
71
  .trf-kr {background-position: -768px 0}
72
- .trf-lv {background-position: -792px 0}
73
- .trf-lt {background-position: -816px 0}
74
- .trf-mk {background-position: -840px 0}
75
- .trf-my {background-position: -864px 0}
76
- .trf-mt {background-position: -888px 0}
77
- .trf-no {background-position: -912px 0}
78
- .trf-ir {background-position: -936px 0}
79
- .trf-pl {background-position: -960px 0}
80
- .trf-pt {background-position: -984px 0}
81
- .trf-ro {background-position: -1008px 0}
82
- .trf-ru {background-position: -1032px 0}
83
- .trf-rs {background-position: -1056px 0}
84
- .trf-sk {background-position: -1080px 0}
85
- .trf-sl {background-position: -1104px 0}
86
- .trf-es {background-position: -1128px 0}
87
- .trf-ke {background-position: -1152px 0}
88
- .trf-se {background-position: -1176px 0}
89
- .trf-ph {background-position: -1200px 0}
90
- .trf-th {background-position: -1224px 0}
91
- .trf-tr {background-position: -1248px 0}
92
- .trf-ua {background-position: -1272px 0}
93
- .trf-pk {background-position: -1296px 0}
94
- .trf-vn {background-position: -1320px 0}
95
- .trf-wales {background-position: -1344px 0}
96
- .trf-europeanunion {background-position: -1368px 0}
 
29
 
30
  /* define the .css sprites here */
31
  .trf {
32
+ background-image:url(flags59.png);
33
  height:11px;
34
  width:16px;
35
  background-repeat:no-repeat;
69
  .trf-it {background-position: -720px 0}
70
  .trf-jp {background-position: -744px 0}
71
  .trf-kr {background-position: -768px 0}
72
+ .trf-va {background-position: -792px 0}
73
+ .trf-lv {background-position: -816px 0}
74
+ .trf-lt {background-position: -840px 0}
75
+ .trf-mk {background-position: -864px 0}
76
+ .trf-my {background-position: -888px 0}
77
+ .trf-mt {background-position: -912px 0}
78
+ .trf-no {background-position: -936px 0}
79
+ .trf-ir {background-position: -960px 0}
80
+ .trf-pl {background-position: -984px 0}
81
+ .trf-pt {background-position: -1008px 0}
82
+ .trf-ro {background-position: -1032px 0}
83
+ .trf-ru {background-position: -1056px 0}
84
+ .trf-rs {background-position: -1080px 0}
85
+ .trf-sk {background-position: -1104px 0}
86
+ .trf-sl {background-position: -1128px 0}
87
+ .trf-es {background-position: -1152px 0}
88
+ .trf-ke {background-position: -1176px 0}
89
+ .trf-se {background-position: -1200px 0}
90
+ .trf-ph {background-position: -1224px 0}
91
+ .trf-th {background-position: -1248px 0}
92
+ .trf-tr {background-position: -1272px 0}
93
+ .trf-ua {background-position: -1296px 0}
94
+ .trf-pk {background-position: -1320px 0}
95
+ .trf-vn {background-position: -1344px 0}
96
+ .trf-wales {background-position: -1368px 0}
97
+ .trf-europeanunion {background-position: -1392px 0}
widgets/flags/tpw_flags_css.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.6.4
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
22
  */
23
 
24
  /**
widgets/flagslist/tpw_list_with_flags.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.6.4
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
22
  */
23
 
24
  /**
widgets/flagslist/tpw_list_with_flags_css.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.6.3
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.6.4
15
  * http://transposh.org/
16
  *
17
  * Copyright 2010, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
22
  */
23
 
24
  /**
wp/transposh_3rdparty.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /*
wp/transposh_admin.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /*
@@ -111,6 +111,7 @@ class transposh_plugin_admin {
111
  $this->transposh->options->set_enable_default_translate($_POST[ENABLE_DEFAULT_TRANSLATE]);
112
  $this->transposh->options->set_enable_search_translate($_POST[ENABLE_SEARCH_TRANSLATE]);
113
  $this->transposh->options->set_enable_url_translate($_POST[ENABLE_URL_TRANSLATE]);
 
114
  $this->transposh->options->set_preferred_translator($_POST[PREFERRED_TRANSLATOR]);
115
  $this->transposh->options->set_transposh_key($_POST[TRANSPOSH_KEY]);
116
 
@@ -136,9 +137,9 @@ class transposh_plugin_admin {
136
  //add some help
137
  function on_contextual_help($filterVal, $screen) {
138
  if ($screen == 'settings_page_transposh') {
139
- $filterVal['settings_page_transposh'] = '<p>Transposh makes your blog translatable</p>' .
140
- '<a href="http://transposh.org/">Plugin homepage</a><br/>' .
141
- '<a href="http://transposh.org/faq/">Frequently asked questions</a>';
142
  }
143
  return $filterVal;
144
  }
@@ -146,7 +147,7 @@ class transposh_plugin_admin {
146
  // extend the admin menu
147
  function on_admin_menu() {
148
  //add our own option page, you can also add it to different sections or use your own one
149
- $this->pagehook = add_options_page('Transposh control center', 'Transposh', 'manage_options', TRANSPOSH_ADMIN_PAGE_NAME, array(&$this, 'on_show_page'));
150
  // register callback gets call prior your own page gets rendered
151
  add_action('load-' . $this->pagehook, array(&$this, 'on_load_page'));
152
  }
@@ -186,16 +187,16 @@ class transposh_plugin_admin {
186
 
187
 
188
  //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
189
- add_meta_box('transposh-sidebox-about', 'About this plugin', array(&$this, 'on_sidebox_about_content'), $this->pagehook, 'side', 'core');
190
- add_meta_box('transposh-sidebox-widget', 'Widget settings', array(&$this, 'on_sidebox_widget_content'), $this->pagehook, 'side', 'core');
191
- add_meta_box('transposh-sidebox-news', 'Plugin news', array(&$this, 'on_sidebox_news_content'), $this->pagehook, 'side', 'core');
192
- add_meta_box('transposh-sidebox-stats', 'Plugin stats', array(&$this, 'on_sidebox_stats_content'), $this->pagehook, 'side', 'core');
193
- add_meta_box('transposh-sidebox-translate', 'Translate all', array(&$this, 'on_sidebox_translate_content'), $this->pagehook, 'side', 'core');
194
- add_meta_box('transposh-contentbox-languages', 'Supported languages', array(&$this, 'on_contentbox_languages_content'), $this->pagehook, 'normal', 'core');
195
- add_meta_box('transposh-contentbox-translation', 'Translation settings', array(&$this, 'on_contentbox_translation_content'), $this->pagehook, 'normal', 'core');
196
- add_meta_box('transposh-contentbox-autotranslation', 'Automatic translation settings', array(&$this, 'on_contentbox_auto_translation_content'), $this->pagehook, 'normal', 'core');
197
- add_meta_box('transposh-contentbox-general', 'Generic settings', array(&$this, 'on_contentbox_generic_content'), $this->pagehook, 'normal', 'core');
198
- add_meta_box('transposh-contentbox-database', 'Database maintenance', array(&$this, 'on_contentbox_database_content'), $this->pagehook, 'normal', 'core');
199
  }
200
 
201
  //executed to show the plugins complete admin page
@@ -204,14 +205,14 @@ class transposh_plugin_admin {
204
  //global $screen_layout_columns;
205
  //add a 3rd content box now for demonstration purpose, boxes added at start of page rendering can't be switched on/off,
206
  //may be needed to ensure that a special box is always available
207
- add_meta_box('transposh-contentbox-community', 'Transposh community features', array(&$this, 'on_contentbox_community_content'), $this->pagehook, 'normal', 'core');
208
  //define some data can be given to each metabox during rendering - not used now
209
  //$data = array('My Data 1', 'My Data 2', 'Available Data 1');
210
 
211
  echo '<div id="transposh-general" class="wrap">';
212
  screen_icon('options-general');
213
 
214
- echo '<h2>Transposh</h2>' .
215
  '<form action="admin-post.php" method="post">';
216
 
217
  wp_nonce_field(TR_NONCE);
@@ -232,7 +233,7 @@ class transposh_plugin_admin {
232
  //do_meta_boxes($this->pagehook, 'additional', $data);
233
 
234
  echo '<p>' .
235
- '<input type="submit" value="Save Changes" class="button-primary" name="Submit"/>' .
236
  '</p>' .
237
  '</div>' .
238
  '</div>' .
@@ -255,7 +256,8 @@ class transposh_plugin_admin {
255
  // executed if the post arrives initiated by pressing the submit button of form
256
  function on_save_changes() {
257
  //user permission check
258
- if (!current_user_can('manage_options')) wp_die(__('Problems?'));
 
259
  // cross check the given referer
260
  check_admin_referer(TR_NONCE);
261
 
@@ -271,11 +273,12 @@ class transposh_plugin_admin {
271
  // i did not describe each callback dedicated, what they do can be easily inspected and compare with the admin page displayed
272
 
273
  function on_sidebox_about_content($data) {
274
- echo '<ul style="list-style-type:disc;margin-left:20px;">';
275
- echo '<li><a href="http://transposh.org/">Plugin Homepage</a></li>';
276
- echo '<li><a href="http://transposh.org/redir/newfeature">Suggest a Feature</a></li>';
 
277
  // support Forum
278
- echo '<li><a href="http://transposh.org/redir/newticket">Report a Bug</a></li>';
279
  // donate with PayPal
280
  echo '</ul>';
281
  }
@@ -286,7 +289,7 @@ class transposh_plugin_admin {
286
 
287
  function on_sidebox_news_content($data) {
288
  echo '<div style="margin:6px">';
289
- wp_widget_rss_output('http://feeds2.feedburner.com/transposh',array('items' => 5));
290
  echo '</div>';
291
  }
292
 
@@ -296,8 +299,8 @@ class transposh_plugin_admin {
296
 
297
  function on_sidebox_translate_content($data) {
298
  echo '<div id="progress_bar_all"></div><div id="tr_translate_title"></div>';
299
- echo '<div id="tr_loading" style="margin: 0 0 10px 0">Translate by clicking the button below</div>';
300
- echo '<a id="transposh-translate" href="' . $this->transposh->post_url . '?translate_all&offset=1" onclick="return false;" class="button">Translate All Now</a><br/>';
301
  //get_posts
302
  }
303
 
@@ -307,9 +310,11 @@ class transposh_plugin_admin {
307
  */
308
  function on_contentbox_languages_content($data) {
309
  // we need some styles
 
 
310
  echo '<style type="text/css">
311
  #sortable { list-style-type: none; margin: 0; padding: 0; }
312
- #sortable li, #default_lang li { margin: 3px 3px 3px 0; padding: 5px; float: left; width: 190px; height: 14px;}
313
  .languages {
314
  -moz-border-radius: 6px;
315
  -khtml-border-radius: 6px;
@@ -344,7 +349,7 @@ class transposh_plugin_admin {
344
  display: none;
345
  }
346
  .logoicon {
347
- float: right;
348
  margin-left:2px;
349
  margin-top:-1px;
350
  }
@@ -352,38 +357,38 @@ class transposh_plugin_admin {
352
 
353
  // this is the default language location
354
  list ($langname, $langorigname, $flag) = explode(",", transposh_consts::$languages[$this->transposh->options->get_default_language()]);
355
- echo '<div id="default_lang" style="overflow:auto;padding-bottom:10px;">Default Language (drag another language here to make it default)';
356
  echo '<ul id="default_list"><li id="' . $this->transposh->options->get_default_language() . '" class="languages">'
357
  . transposh_utils::display_flag("{$this->transposh->transposh_plugin_url}/img/flags", $flag, $langorigname, false/* $this->transposh->options->get_widget_css_flags() */)
358
  . '<input type="hidden" name="languages[]" value="' . $this->transposh->options->get_default_language() . '" />'
359
  . '&nbsp;<span class="langname">' . $langorigname . '</span><span class="langname hidden">' . $langname . '</span></li>';
360
  echo '</ul></div>';
361
  // list of languages
362
- echo '<div style="overflow:auto; clear: both;">Available Languages (Click to toggle language state - Drag to sort in the widget)';
363
  echo '<ul id="sortable">';
364
  foreach ($this->transposh->options->get_sorted_langs() as $langcode => $langrecord) {
365
  list ($langname, $langorigname, $flag) = explode(",", $langrecord);
366
  echo '<li id="' . $langcode . '" class="languages ' . ($this->transposh->options->is_viewable_language($langcode) || $this->transposh->options->is_default_language($langcode) ? "active" : "")
367
- . (!$this->transposh->options->is_viewable_language($langcode) && $this->transposh->options->is_editable_language($langcode) ? "translateable" : "") . '"><div style="float:left">'
368
  . transposh_utils::display_flag("{$this->transposh->transposh_plugin_url}/img/flags", $flag, false /* $langorigname,$this->transposh->options->get_widget_css_flags() */)
369
  . '<input type="hidden" name="languages[]" value="' . $langcode . ($this->transposh->options->is_viewable_language($langcode) ? ",v" : ",") . ($this->transposh->options->is_viewable_language($langcode) ? ",t" : ",") . '" />'
370
  . '&nbsp;<span class="langname">' . $langorigname . '</span><span class="langname hidden">' . $langname . '</span></div>';
371
  if (in_array($langcode, transposh_consts::$google_languages))
372
- echo '<img width="16" height="16" alt="g" class="logoicon" title="Language supported by google translate" src="' . $this->transposh->transposh_plugin_url . '/' . TRANSPOSH_DIR_IMG . '/googleicon.png"/>';
373
  if (in_array($langcode, transposh_consts::$bing_languages))
374
- echo '<img width="16" height="16" alt="b" class="logoicon" title="Language supported by bing translate" src="' . $this->transposh->transposh_plugin_url . '/' . TRANSPOSH_DIR_IMG . '/bingicon.png"/>';
375
  if (in_array($langcode, transposh_consts::$rtl_languages))
376
- echo '<img width="16" height="16" alt="r" class="logoicon" title="Language is written from right to left" src="' . $this->transposh->transposh_plugin_url . '/' . TRANSPOSH_DIR_IMG . '/rtlicon.png"/>';
377
  echo '</li>';
378
  }
379
  echo "</ul></div>";
380
  // options to play with
381
- echo '<div style="clear: both;">Display options:<br/><ul style="list-style-type: disc; margin-left: 20px;font-size:11px">';
382
- echo '<li><a href="#" id="changename">Toggle names of languages between English and Original</a></li>';
383
- echo '<li><a href="#" id="selectall">Make all languages active</a></li>';
384
- echo '<li><a href="#" id="sortname">Sort by language name</a></li>';
385
- echo '<li><a href="#" id="sortiso">Sort by lSO code</a></li></ul>';
386
- echo 'Legend: Green - active, <span id="yellowcolor"' . ($this->transposh->options->get_anonymous_translation() ? ' class ="hidden"' : '') . '>Yellow - translateable (only translators will see this language), </span>blank - inactive';
387
  echo '</div>';
388
  }
389
 
@@ -400,40 +405,49 @@ class transposh_plugin_admin {
400
  /*
401
  * Insert permissions section in the admin page
402
  */
403
- echo '<h4>Who can translate ?</h4>';
404
  //display known roles and their permission to translate
405
  foreach ($GLOBALS['wp_roles']->get_names() as $role_name => $something) {
406
  echo '<input type="checkbox" value="1" name="' . $role_name . '" ' . $this->can_translate($role_name) .
407
- '/> ' . ucfirst($role_name) . '&nbsp;&nbsp;&nbsp;';
408
  }
409
  //Add our own custom role
410
- echo '<input id="tr_anon" type="checkbox" value="1" name="anonymous" ' . $this->can_translate('anonymous') . '/> Anonymous';
411
 
412
  /*
413
  * Insert the option to enable/disable default language translation.
414
  * Disabled by default.
415
  */
416
- echo '<h4>Enable default language translation</h4>';
417
  echo '<input type="checkbox" value="1" name="' . ENABLE_DEFAULT_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_default_translate()) . '/> ' .
418
- 'Allow translation of default language - useful for sites with more than one major language';
419
 
420
  /**
421
  * Insert the option to enable search in translated languages
422
  * Enabled by default.
423
  * @since 0.3.6
424
  */
425
- echo '<h4>Enable search in translated languages</h4>';
426
  echo '<input type="checkbox" value="1" name="' . ENABLE_SEARCH_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_search_translate()) . '/> ' .
427
- 'Allow search of translated languages, in those languages (and the original language)';
428
 
429
  /**
430
  * Insert the option to enable translation of urls
431
  * Disbaled by default.
432
  * @since 0.5.3
433
  */
434
- echo '<h4>Enable url translation (experimental)</h4>';
435
  echo '<input type="checkbox" value="1" name="' . ENABLE_URL_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_url_translate()) . '/> ' .
436
- 'Allow translation of permalinks and urls';
 
 
 
 
 
 
 
 
 
437
  }
438
 
439
  function on_contentbox_auto_translation_content($data) {
@@ -442,26 +456,26 @@ class transposh_plugin_admin {
442
  * Insert the option to enable/disable automatic translation.
443
  * Enabled by default.
444
  */
445
- echo '<h4>Enable automatic translation</h4>';
446
  echo '<input type="checkbox" value="1" name="' . ENABLE_AUTO_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_auto_translate()) . '/> ' .
447
- 'Allow automatic translation of pages';
448
 
449
  /**
450
  * Insert the option to enable/disable automatic translation upon publishing.
451
  * Disabled by default.
452
  * @since 0.3.5 */
453
- echo '<h4>New - Enable automatic translation after posting</h4>';
454
  echo '<input type="checkbox" value="1" name="' . ENABLE_AUTO_POST_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_auto_post_translate()) . '/> ' .
455
- 'Do automatic translation immediately after a post has been published';
456
 
457
  /*
458
  * Choose default translator... TODO (explain better in wiki)
459
  */
460
- echo '<h4>Select preferred auto translation engine</h4>';
461
- echo '<label for="' . PREFERRED_TRANSLATOR . '">Translation engine:' .
462
  '<select name="' . PREFERRED_TRANSLATOR . '">' .
463
- '<option value="1"' . ($this->transposh->options->get_preferred_translator() == 1 ? ' selected="selected"' : '') . '>Google</option>' .
464
- '<option value="2"' . ($this->transposh->options->get_preferred_translator() == 2 ? ' selected="selected"' : '') . '>Bing</option>' .
465
  '</select>' .
466
  '</label>';
467
  }
@@ -471,30 +485,30 @@ class transposh_plugin_admin {
471
  * Insert the option to enable/disable rewrite of perlmalinks.
472
  * When disabled only parameters will be used to identify the current language.
473
  */
474
- echo '<h4>Rewrite URLs</h4>';
475
  echo '<input type="checkbox" value="1" name="' . ENABLE_PERMALINKS . '" ' . $this->checked($this->transposh->options->get_enable_permalinks()) . '/> ' .
476
- 'Rewrite URLs to be search engine friendly, ' .
477
- 'e.g. (http://wordpress.org/<strong>en</strong>). ' .
478
- 'Requires that permalinks will be enabled.';
479
 
480
  /*
481
  * Insert the option to enable/disable pushing of scripts to footer.
482
  * Works on wordpress 2.8 and up
483
  */
484
  if (floatval($GLOBALS['wp_version']) >= 2.8) {
485
- echo '<h4>Add scripts to footer</h4>';
486
  echo '<input type="checkbox" value="1" name="' . ENABLE_FOOTER_SCRIPTS . '" ' . $this->checked($this->transposh->options->get_enable_footer_scripts()) . '/> ' .
487
- 'Push transposh scripts to footer of page instead of header, makes pages load faster. ' .
488
- 'Requires that your theme should have proper footer support.';
489
  }
490
 
491
  /**
492
  * Insert the option to enable/disable language auto-detection
493
  * @since 0.3.8 */
494
- echo '<h4>Auto detect language for users</h4>';
495
  echo '<input type="checkbox" value="1" name="' . ENABLE_DETECT_LANG_AND_REDIRECT . '" ' . $this->checked($this->transposh->options->get_enable_detect_language()) . '/> ' .
496
- 'This enables auto detection of language used by the user as defined in the ACCEPT_LANGUAGES they send. ' .
497
- 'This will redirect the first page accessed in the session to the same page with the detected language.';
498
 
499
  /* WIP2
500
  echo '<a href="http://transposh.org/services/index.php?flags='.$flags.'">Gen sprites</a>'; */
@@ -504,19 +518,20 @@ class transposh_plugin_admin {
504
  /*
505
  * Insert two buttons allowing removal of automated translations from database
506
  */
507
- echo '<div style="margin:10px 0"><a id="transposh-clean-auto" href="#" nonce="'. wp_create_nonce('transposh-clean').'" class="button">Clean all automated translations</a></div>';
508
- echo '<div style="margin:10px 0"><a id="transposh-clean-auto14" href="#" nonce="'. wp_create_nonce('transposh-clean').'" class="button">Clean automated translations older than 14 days</a></div>';
509
  }
510
 
511
  function on_contentbox_community_content($data) {
512
- echo '<h4>Backup service for human translation</h4>';
513
- echo '<input type="radio" value="1" name="' . TRANSPOSH_BACKUP_SCHEDULE . '" ' . $this->checked($this->transposh->options->get_transposh_backup_schedule() == 1) . '/>Enable daily backup<br/>';
514
- echo '<input type="radio" value="2" name="' . TRANSPOSH_BACKUP_SCHEDULE . '" ' . $this->checked($this->transposh->options->get_transposh_backup_schedule() == 2) . '/>Enable live backup<br/>';
515
- echo '<input type="radio" value="0" name="' . TRANSPOSH_BACKUP_SCHEDULE . '" ' . $this->checked($this->transposh->options->get_transposh_backup_schedule() == 0) . '/>Disable backup (Can be run manually by clicking the button below)<br/>';
516
- echo 'Service Key: <input type="text" size="32" class="regular-text" value="' . $this->transposh->options->get_transposh_key() . '" id="' . TRANSPOSH_KEY . '" name="' . TRANSPOSH_KEY . '"/> <a target="_blank" href="http://transposh.org/faq/#restore">How to restore?</a><br/>';
517
  echo '<div id="backup_result"></div>';
518
- echo '<div style="margin:10px 0"><a id="transposh-backup" href="#" class="button">Do Backup Now</a></div>';
519
  }
520
 
521
  }
 
522
  ?>
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /*
111
  $this->transposh->options->set_enable_default_translate($_POST[ENABLE_DEFAULT_TRANSLATE]);
112
  $this->transposh->options->set_enable_search_translate($_POST[ENABLE_SEARCH_TRANSLATE]);
113
  $this->transposh->options->set_enable_url_translate($_POST[ENABLE_URL_TRANSLATE]);
114
+ $this->transposh->options->set_transposh_gettext_integration($_POST[TRANSPOSH_GETTEXT_INTEGRATION]);
115
  $this->transposh->options->set_preferred_translator($_POST[PREFERRED_TRANSLATOR]);
116
  $this->transposh->options->set_transposh_key($_POST[TRANSPOSH_KEY]);
117
 
137
  //add some help
138
  function on_contextual_help($filterVal, $screen) {
139
  if ($screen == 'settings_page_transposh') {
140
+ $filterVal['settings_page_transposh'] = '<p>' . __('Transposh makes your blog translatable', TRANSPOSH_TEXT_DOMAIN) . '</p>' .
141
+ '<a href="http://transposh.org/">' . __('Plugin homepage', TRANSPOSH_TEXT_DOMAIN) . '</a><br/>' .
142
+ '<a href="http://transposh.org/faq/">' . __('Frequently asked questions', TRANSPOSH_TEXT_DOMAIN) . '</a>';
143
  }
144
  return $filterVal;
145
  }
147
  // extend the admin menu
148
  function on_admin_menu() {
149
  //add our own option page, you can also add it to different sections or use your own one
150
+ $this->pagehook = add_options_page(__('Transposh control center', TRANSPOSH_TEXT_DOMAIN), __('Transposh', TRANSPOSH_TEXT_DOMAIN), 'manage_options', TRANSPOSH_ADMIN_PAGE_NAME, array(&$this, 'on_show_page'));
151
  // register callback gets call prior your own page gets rendered
152
  add_action('load-' . $this->pagehook, array(&$this, 'on_load_page'));
153
  }
187
 
188
 
189
  //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
190
+ add_meta_box('transposh-sidebox-about', __('About this plugin', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_sidebox_about_content'), $this->pagehook, 'side', 'core');
191
+ add_meta_box('transposh-sidebox-widget', __('Widget settings', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_sidebox_widget_content'), $this->pagehook, 'side', 'core');
192
+ add_meta_box('transposh-sidebox-news', __('Plugin news', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_sidebox_news_content'), $this->pagehook, 'side', 'core');
193
+ add_meta_box('transposh-sidebox-stats', __('Plugin stats', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_sidebox_stats_content'), $this->pagehook, 'side', 'core');
194
+ add_meta_box('transposh-sidebox-translate', __('Translate all', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_sidebox_translate_content'), $this->pagehook, 'side', 'core');
195
+ add_meta_box('transposh-contentbox-languages', __('Supported languages', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_contentbox_languages_content'), $this->pagehook, 'normal', 'core');
196
+ add_meta_box('transposh-contentbox-translation', __('Translation settings', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_contentbox_translation_content'), $this->pagehook, 'normal', 'core');
197
+ add_meta_box('transposh-contentbox-autotranslation', __('Automatic translation settings', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_contentbox_auto_translation_content'), $this->pagehook, 'normal', 'core');
198
+ add_meta_box('transposh-contentbox-general', __('Generic settings', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_contentbox_generic_content'), $this->pagehook, 'normal', 'core');
199
+ add_meta_box('transposh-contentbox-database', __('Database maintenance', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_contentbox_database_content'), $this->pagehook, 'normal', 'core');
200
  }
201
 
202
  //executed to show the plugins complete admin page
205
  //global $screen_layout_columns;
206
  //add a 3rd content box now for demonstration purpose, boxes added at start of page rendering can't be switched on/off,
207
  //may be needed to ensure that a special box is always available
208
+ add_meta_box('transposh-contentbox-community', __('Transposh community features', TRANSPOSH_TEXT_DOMAIN), array(&$this, 'on_contentbox_community_content'), $this->pagehook, 'normal', 'core');
209
  //define some data can be given to each metabox during rendering - not used now
210
  //$data = array('My Data 1', 'My Data 2', 'Available Data 1');
211
 
212
  echo '<div id="transposh-general" class="wrap">';
213
  screen_icon('options-general');
214
 
215
+ echo '<h2>' . __('Transposh', TRANSPOSH_TEXT_DOMAIN) . '</h2>' .
216
  '<form action="admin-post.php" method="post">';
217
 
218
  wp_nonce_field(TR_NONCE);
233
  //do_meta_boxes($this->pagehook, 'additional', $data);
234
 
235
  echo '<p>' .
236
+ '<input type="submit" value="' . __('Save Changes') . '" class="button-primary" name="Submit"/>' .
237
  '</p>' .
238
  '</div>' .
239
  '</div>' .
256
  // executed if the post arrives initiated by pressing the submit button of form
257
  function on_save_changes() {
258
  //user permission check
259
+ if (!current_user_can('manage_options'))
260
+ wp_die(__('Problems?', TRANSPOSH_TEXT_DOMAIN));
261
  // cross check the given referer
262
  check_admin_referer(TR_NONCE);
263
 
273
  // i did not describe each callback dedicated, what they do can be easily inspected and compare with the admin page displayed
274
 
275
  function on_sidebox_about_content($data) {
276
+ global $wp_locale;
277
+ echo '<ul style="list-style-type:disc;margin-' . ($wp_locale->text_direction == 'rtl' ? 'right' : 'left') . ':20px;">';
278
+ echo '<li><a href="http://transposh.org/">' . __('Plugin Homepage', TRANSPOSH_TEXT_DOMAIN) . '</a></li>';
279
+ echo '<li><a href="http://transposh.org/redir/newfeature">' . __('Suggest a Feature', TRANSPOSH_TEXT_DOMAIN) . '</a></li>';
280
  // support Forum
281
+ echo '<li><a href="http://transposh.org/redir/newticket">' . __('Report a Bug', TRANSPOSH_TEXT_DOMAIN) . '</a></li>';
282
  // donate with PayPal
283
  echo '</ul>';
284
  }
289
 
290
  function on_sidebox_news_content($data) {
291
  echo '<div style="margin:6px">';
292
+ wp_widget_rss_output('http://feeds2.feedburner.com/transposh', array('items' => 5));
293
  echo '</div>';
294
  }
295
 
299
 
300
  function on_sidebox_translate_content($data) {
301
  echo '<div id="progress_bar_all"></div><div id="tr_translate_title"></div>';
302
+ echo '<div id="tr_loading" style="margin: 0 0 10px 0">' . __('Translate by clicking the button below', TRANSPOSH_TEXT_DOMAIN) . '</div>';
303
+ echo '<a id="transposh-translate" href="' . $this->transposh->post_url . '?translate_all&offset=1" onclick="return false;" class="button">' . __('Translate All Now', TRANSPOSH_TEXT_DOMAIN) . '</a><br/>';
304
  //get_posts
305
  }
306
 
310
  */
311
  function on_contentbox_languages_content($data) {
312
  // we need some styles
313
+ global $wp_locale;
314
+
315
  echo '<style type="text/css">
316
  #sortable { list-style-type: none; margin: 0; padding: 0; }
317
+ #sortable li, #default_lang li { margin: 3px 3px 3px 0; padding: 5px; float: ' . ($wp_locale->text_direction == 'rtl' ? 'right' : 'left') . '; width: 190px; height: 14px;}
318
  .languages {
319
  -moz-border-radius: 6px;
320
  -khtml-border-radius: 6px;
349
  display: none;
350
  }
351
  .logoicon {
352
+ float:' . ($wp_locale->text_direction == 'rtl' ? 'left' : 'right') . ';
353
  margin-left:2px;
354
  margin-top:-1px;
355
  }
357
 
358
  // this is the default language location
359
  list ($langname, $langorigname, $flag) = explode(",", transposh_consts::$languages[$this->transposh->options->get_default_language()]);
360
+ echo '<div id="default_lang" style="overflow:auto;padding-bottom:10px;">' . __('Default Language (drag another language here to make it default)', TRANSPOSH_TEXT_DOMAIN);
361
  echo '<ul id="default_list"><li id="' . $this->transposh->options->get_default_language() . '" class="languages">'
362
  . transposh_utils::display_flag("{$this->transposh->transposh_plugin_url}/img/flags", $flag, $langorigname, false/* $this->transposh->options->get_widget_css_flags() */)
363
  . '<input type="hidden" name="languages[]" value="' . $this->transposh->options->get_default_language() . '" />'
364
  . '&nbsp;<span class="langname">' . $langorigname . '</span><span class="langname hidden">' . $langname . '</span></li>';
365
  echo '</ul></div>';
366
  // list of languages
367
+ echo '<div style="overflow:auto; clear: both;">' . __('Available Languages (Click to toggle language state - Drag to sort in the widget)', TRANSPOSH_TEXT_DOMAIN);
368
  echo '<ul id="sortable">';
369
  foreach ($this->transposh->options->get_sorted_langs() as $langcode => $langrecord) {
370
  list ($langname, $langorigname, $flag) = explode(",", $langrecord);
371
  echo '<li id="' . $langcode . '" class="languages ' . ($this->transposh->options->is_viewable_language($langcode) || $this->transposh->options->is_default_language($langcode) ? "active" : "")
372
+ . (!$this->transposh->options->is_viewable_language($langcode) && $this->transposh->options->is_editable_language($langcode) ? "translateable" : "") . '"><div style="float:' . ($wp_locale->text_direction == 'rtl' ? 'right' : 'left') . '">'
373
  . transposh_utils::display_flag("{$this->transposh->transposh_plugin_url}/img/flags", $flag, false /* $langorigname,$this->transposh->options->get_widget_css_flags() */)
374
  . '<input type="hidden" name="languages[]" value="' . $langcode . ($this->transposh->options->is_viewable_language($langcode) ? ",v" : ",") . ($this->transposh->options->is_viewable_language($langcode) ? ",t" : ",") . '" />'
375
  . '&nbsp;<span class="langname">' . $langorigname . '</span><span class="langname hidden">' . $langname . '</span></div>';
376
  if (in_array($langcode, transposh_consts::$google_languages))
377
+ echo '<img width="16" height="16" alt="g" class="logoicon" title="' . esc_attr__('Language supported by google translate', TRANSPOSH_TEXT_DOMAIN) . '" src="' . $this->transposh->transposh_plugin_url . '/' . TRANSPOSH_DIR_IMG . '/googleicon.png"/>';
378
  if (in_array($langcode, transposh_consts::$bing_languages))
379
+ echo '<img width="16" height="16" alt="b" class="logoicon" title="' . esc_attr__('Language supported by bing translate', TRANSPOSH_TEXT_DOMAIN) . '" src="' . $this->transposh->transposh_plugin_url . '/' . TRANSPOSH_DIR_IMG . '/bingicon.png"/>';
380
  if (in_array($langcode, transposh_consts::$rtl_languages))
381
+ echo '<img width="16" height="16" alt="r" class="logoicon" title="' . esc_attr__('Language is written from right to left', TRANSPOSH_TEXT_DOMAIN) . '" src="' . $this->transposh->transposh_plugin_url . '/' . TRANSPOSH_DIR_IMG . '/rtlicon.png"/>';
382
  echo '</li>';
383
  }
384
  echo "</ul></div>";
385
  // options to play with
386
+ echo '<div style="clear: both;">' . __('Display options:', TRANSPOSH_TEXT_DOMAIN) . '<br/><ul style="list-style-type: disc; margin-' . ($wp_locale->text_direction == 'rtl' ? 'right' : 'left') . ':20px;font-size:11px">';
387
+ echo '<li><a href="#" id="changename">' . __('Toggle names of languages between English and Original', TRANSPOSH_TEXT_DOMAIN) . '</a></li>';
388
+ echo '<li><a href="#" id="selectall">' . __('Make all languages active', TRANSPOSH_TEXT_DOMAIN) . '</a></li>';
389
+ echo '<li><a href="#" id="sortname">' . __('Sort by language name', TRANSPOSH_TEXT_DOMAIN) . '</a></li>';
390
+ echo '<li><a href="#" id="sortiso">' . __('Sort by lSO code', TRANSPOSH_TEXT_DOMAIN) . '</a></li></ul>';
391
+ echo __('Legend:', TRANSPOSH_TEXT_DOMAIN) . ' ' . __('Green - active', TRANSPOSH_TEXT_DOMAIN) . ', <span id="yellowcolor"' . ($this->transposh->options->get_anonymous_translation() ? ' class ="hidden"' : '') . '>' . __('Yellow - translateable (only translators will see this language)', TRANSPOSH_TEXT_DOMAIN) . ', </span>' . __('blank - inactive', TRANSPOSH_TEXT_DOMAIN);
392
  echo '</div>';
393
  }
394
 
405
  /*
406
  * Insert permissions section in the admin page
407
  */
408
+ echo '<h4>' . __('Who can translate ?', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
409
  //display known roles and their permission to translate
410
  foreach ($GLOBALS['wp_roles']->get_names() as $role_name => $something) {
411
  echo '<input type="checkbox" value="1" name="' . $role_name . '" ' . $this->can_translate($role_name) .
412
+ '/> ' . _x(ucfirst($role_name), 'User role') . '&nbsp;&nbsp;&nbsp;';
413
  }
414
  //Add our own custom role
415
+ echo '<input id="tr_anon" type="checkbox" value="1" name="anonymous" ' . $this->can_translate('anonymous') . '/> ' . __('Anonymous', TRANSPOSH_TEXT_DOMAIN);
416
 
417
  /*
418
  * Insert the option to enable/disable default language translation.
419
  * Disabled by default.
420
  */
421
+ echo '<h4>' . __('Enable default language translation', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
422
  echo '<input type="checkbox" value="1" name="' . ENABLE_DEFAULT_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_default_translate()) . '/> ' .
423
+ __('Allow translation of default language - useful for sites with more than one major language', TRANSPOSH_TEXT_DOMAIN);
424
 
425
  /**
426
  * Insert the option to enable search in translated languages
427
  * Enabled by default.
428
  * @since 0.3.6
429
  */
430
+ echo '<h4>' . __('Enable search in translated languages', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
431
  echo '<input type="checkbox" value="1" name="' . ENABLE_SEARCH_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_search_translate()) . '/> ' .
432
+ __('Allow search of translated languages, in those languages (and the original language)', TRANSPOSH_TEXT_DOMAIN);
433
 
434
  /**
435
  * Insert the option to enable translation of urls
436
  * Disbaled by default.
437
  * @since 0.5.3
438
  */
439
+ echo '<h4>' . __('Enable url translation', TRANSPOSH_TEXT_DOMAIN) . ' (' . __('experimental', TRANSPOSH_TEXT_DOMAIN) . ')</h4>';
440
  echo '<input type="checkbox" value="1" name="' . ENABLE_URL_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_url_translate()) . '/> ' .
441
+ __('Allow translation of permalinks and urls', TRANSPOSH_TEXT_DOMAIN);
442
+
443
+ /**
444
+ * Insert the option to enable gettext integration
445
+ * Enabled by default.
446
+ * @since 0.6.4
447
+ */
448
+ echo '<h4>' . __('Enable gettext integration', TRANSPOSH_TEXT_DOMAIN) . ' (' . __('experimental', TRANSPOSH_TEXT_DOMAIN) . ')</h4>';
449
+ echo '<input type="checkbox" value="1" name="' . TRANSPOSH_GETTEXT_INTEGRATION . '" ' . $this->checked($this->transposh->options->get_transposh_gettext_integration()) . '/> ' .
450
+ __('Enable integration of Transposh with existing gettext interface (.po/.mo files)', TRANSPOSH_TEXT_DOMAIN);
451
  }
452
 
453
  function on_contentbox_auto_translation_content($data) {
456
  * Insert the option to enable/disable automatic translation.
457
  * Enabled by default.
458
  */
459
+ echo '<h4>' . __('Enable automatic translation', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
460
  echo '<input type="checkbox" value="1" name="' . ENABLE_AUTO_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_auto_translate()) . '/> ' .
461
+ __('Allow automatic translation of pages', TRANSPOSH_TEXT_DOMAIN);
462
 
463
  /**
464
  * Insert the option to enable/disable automatic translation upon publishing.
465
  * Disabled by default.
466
  * @since 0.3.5 */
467
+ echo '<h4>' . __('Enable automatic translation after posting', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
468
  echo '<input type="checkbox" value="1" name="' . ENABLE_AUTO_POST_TRANSLATE . '" ' . $this->checked($this->transposh->options->get_enable_auto_post_translate()) . '/> ' .
469
+ __('Do automatic translation immediately after a post has been published', TRANSPOSH_TEXT_DOMAIN);
470
 
471
  /*
472
  * Choose default translator... TODO (explain better in wiki)
473
  */
474
+ echo '<h4>' . __('Select preferred auto translation engine', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
475
+ echo '<label for="' . PREFERRED_TRANSLATOR . '">' . __('Translation engine:', TRANSPOSH_TEXT_DOMAIN) .
476
  '<select name="' . PREFERRED_TRANSLATOR . '">' .
477
+ '<option value="1"' . ($this->transposh->options->get_preferred_translator() == 1 ? ' selected="selected"' : '') . '>' . __('Google', TRANSPOSH_TEXT_DOMAIN) . '</option>' .
478
+ '<option value="2"' . ($this->transposh->options->get_preferred_translator() == 2 ? ' selected="selected"' : '') . '>' . __('Bing', TRANSPOSH_TEXT_DOMAIN) . '</option>' .
479
  '</select>' .
480
  '</label>';
481
  }
485
  * Insert the option to enable/disable rewrite of perlmalinks.
486
  * When disabled only parameters will be used to identify the current language.
487
  */
488
+ echo '<h4>' . __('Rewrite URLs', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
489
  echo '<input type="checkbox" value="1" name="' . ENABLE_PERMALINKS . '" ' . $this->checked($this->transposh->options->get_enable_permalinks()) . '/> ' .
490
+ __('Rewrite URLs to be search engine friendly, ' .
491
+ 'e.g. (http://transposh.org/<strong>en</strong>). ' .
492
+ 'Requires that permalinks will be enabled.', TRANSPOSH_TEXT_DOMAIN);
493
 
494
  /*
495
  * Insert the option to enable/disable pushing of scripts to footer.
496
  * Works on wordpress 2.8 and up
497
  */
498
  if (floatval($GLOBALS['wp_version']) >= 2.8) {
499
+ echo '<h4>' . __('Add scripts to footer', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
500
  echo '<input type="checkbox" value="1" name="' . ENABLE_FOOTER_SCRIPTS . '" ' . $this->checked($this->transposh->options->get_enable_footer_scripts()) . '/> ' .
501
+ __('Push transposh scripts to footer of page instead of header, makes pages load faster. ' .
502
+ 'Requires that your theme should have proper footer support.', TRANSPOSH_TEXT_DOMAIN);
503
  }
504
 
505
  /**
506
  * Insert the option to enable/disable language auto-detection
507
  * @since 0.3.8 */
508
+ echo '<h4>' . __('Auto detect language for users', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
509
  echo '<input type="checkbox" value="1" name="' . ENABLE_DETECT_LANG_AND_REDIRECT . '" ' . $this->checked($this->transposh->options->get_enable_detect_language()) . '/> ' .
510
+ __('This enables auto detection of language used by the user as defined in the ACCEPT_LANGUAGES they send. ' .
511
+ 'This will redirect the first page accessed in the session to the same page with the detected language.', TRANSPOSH_TEXT_DOMAIN);
512
 
513
  /* WIP2
514
  echo '<a href="http://transposh.org/services/index.php?flags='.$flags.'">Gen sprites</a>'; */
518
  /*
519
  * Insert two buttons allowing removal of automated translations from database
520
  */
521
+ echo '<div style="margin:10px 0"><a id="transposh-clean-auto" href="#" nonce="' . wp_create_nonce('transposh-clean') . '" class="button">' . __('Delete all automated translations', TRANSPOSH_TEXT_DOMAIN) . '</a></div>';
522
+ echo '<div style="margin:10px 0"><a id="transposh-clean-auto14" href="#" nonce="' . wp_create_nonce('transposh-clean') . '" class="button">' . __('Delete automated translations older than 14 days', TRANSPOSH_TEXT_DOMAIN) . '</a></div>';
523
  }
524
 
525
  function on_contentbox_community_content($data) {
526
+ echo '<h4>' . __('Backup service for human translation', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
527
+ echo '<input type="radio" value="1" name="' . TRANSPOSH_BACKUP_SCHEDULE . '" ' . $this->checked($this->transposh->options->get_transposh_backup_schedule() == 1) . '/>' . __('Enable daily backup', TRANSPOSH_TEXT_DOMAIN) . '<br/>';
528
+ echo '<input type="radio" value="2" name="' . TRANSPOSH_BACKUP_SCHEDULE . '" ' . $this->checked($this->transposh->options->get_transposh_backup_schedule() == 2) . '/>' . __('Enable live backup', TRANSPOSH_TEXT_DOMAIN) . '<br/>';
529
+ echo '<input type="radio" value="0" name="' . TRANSPOSH_BACKUP_SCHEDULE . '" ' . $this->checked($this->transposh->options->get_transposh_backup_schedule() == 0) . '/>' . __('Disable backup (Can be run manually by clicking the button below)', TRANSPOSH_TEXT_DOMAIN) . '<br/>';
530
+ echo __('Service Key:', TRANSPOSH_TEXT_DOMAIN) . ' <input type="text" size="32" class="regular-text" value="' . $this->transposh->options->get_transposh_key() . '" id="' . TRANSPOSH_KEY . '" name="' . TRANSPOSH_KEY . '"/> <a target="_blank" href="http://transposh.org/faq/#restore">' . __('How to restore?', TRANSPOSH_TEXT_DOMAIN) . '</a><br/>';
531
  echo '<div id="backup_result"></div>';
532
+ echo '<div style="margin:10px 0"><a id="transposh-backup" href="#" class="button">' . __('Do Backup Now', TRANSPOSH_TEXT_DOMAIN) . '</a></div>';
533
  }
534
 
535
  }
536
+
537
  ?>
wp/transposh_ajax.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /*
wp/transposh_backup.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /*
wp/transposh_db.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Thu, 02 Sep 2010 00:39:59 +0300
12
  */
13
 
14
  /**
@@ -522,29 +522,27 @@ class transposh_database {
522
  * Provides some stats about our database
523
  */
524
  function db_stats() {
525
- echo "<h4>Database stats</h4>";
526
  $query = "SELECT count(*) as count FROM `{$this->translation_table}`";
527
  $rows = $GLOBALS['wpdb']->get_results($query);
528
  foreach ($rows as $row) {
529
  if ($row->count)
530
- echo "<p>Total of <strong style=\"color:red\">{$row->count}</strong> translated phrases.</p>";
531
  }
532
 
533
  $query = "SELECT count(*) as count,lang FROM `{$this->translation_table}` WHERE source='0' GROUP BY `lang` ORDER BY `count` DESC LIMIT 3";
534
  $rows = $GLOBALS['wpdb']->get_results($query);
535
  foreach ($rows as $row) {
536
  if ($row->count)
537
- echo "<p><strong>{$row->lang}</strong> has <strong style=\"color:red\">{$row->count}</strong> human translated phrases.</p>";
538
  }
539
 
540
- echo "<h4>Recent activity</h4>";
541
  $query = "SELECT * FROM `{$this->translation_log_table}` WHERE source='0' ORDER BY `timestamp` DESC LIMIT 3";
542
  $rows = $GLOBALS['wpdb']->get_results($query);
543
  foreach ($rows as $row) {
544
  $td = mysql2date(get_option('date_format') . ' ' . get_option('time_format'), $row->timestamp);
545
- echo "<p>On <strong>{$td}</strong><br/>user <strong>{$row->translated_by}</strong> translated<br/>" .
546
- "\"<strong>{$row->original}</strong>\"<br/>to " .
547
- "<strong style=\"color:red\">{$row->lang}</strong><br/>\"<strong>{$row->translated}</strong>\"</p>";
548
  }
549
  }
550
 
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /**
522
  * Provides some stats about our database
523
  */
524
  function db_stats() {
525
+ echo '<h4>' . __('Database stats', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
526
  $query = "SELECT count(*) as count FROM `{$this->translation_table}`";
527
  $rows = $GLOBALS['wpdb']->get_results($query);
528
  foreach ($rows as $row) {
529
  if ($row->count)
530
+ printf('<p>' . __('Total of <strong style="color:red">%s</strong> translated phrases.', TRANSPOSH_TEXT_DOMAIN) . '</p>', $row->count);
531
  }
532
 
533
  $query = "SELECT count(*) as count,lang FROM `{$this->translation_table}` WHERE source='0' GROUP BY `lang` ORDER BY `count` DESC LIMIT 3";
534
  $rows = $GLOBALS['wpdb']->get_results($query);
535
  foreach ($rows as $row) {
536
  if ($row->count)
537
+ printf('<p>' . __('<strong>%1s</strong> has <strong style="color:red">%2s</strong> human translated phrases.', TRANSPOSH_TEXT_DOMAIN) . '</p>', $row->lang, $row->count);
538
  }
539
 
540
+ echo '<h4>' . __('Recent activity', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
541
  $query = "SELECT * FROM `{$this->translation_log_table}` WHERE source='0' ORDER BY `timestamp` DESC LIMIT 3";
542
  $rows = $GLOBALS['wpdb']->get_results($query);
543
  foreach ($rows as $row) {
544
  $td = mysql2date(get_option('date_format') . ' ' . get_option('time_format'), $row->timestamp);
545
+ printf('<p>' . __('On <strong>%1s</strong><br/>user <strong>%2s</strong> translated<br/>"<strong>%3s</strong>"<br/>to <strong style="color:red">%4s</strong><br/>"<strong>%5s</strong>"', TRANSPOSH_TEXT_DOMAIN) . '</p>', $td, $row->translated_by, $row->original, $row->lang, $row->translated);
 
 
546
  }
547
  }
548
 
wp/transposh_options.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  // OLD Options - To be removed
@@ -66,6 +66,8 @@ define('WIDGET_REMOVE_LOGO_FOR_AD', 'widget_remove_logo');
66
  define('TRANSPOSH_KEY', 'transposh_key');
67
  //Stores the site key to transposh services (backup @since 0.5.0)
68
  define('TRANSPOSH_BACKUP_SCHEDULE', 'transposh_backup_schedule');
 
 
69
 
70
  class transposh_plugin_options {
71
  //constructor of class, PHP4 compatible construction for backward compatibility
@@ -87,6 +89,7 @@ class transposh_plugin_options {
87
  $this->set_default_option_value(ENABLE_SEARCH_TRANSLATE, 1);
88
  $this->set_default_option_value(ENABLE_AUTO_TRANSLATE, 1);
89
  $this->set_default_option_value(PREFERRED_TRANSLATOR, 1);
 
90
  $this->set_default_option_value(VIEWABLE_LANGS);
91
  $this->set_default_option_value(EDITABLE_LANGS);
92
  //$this->set_default_option_value(SORTED_LANGS);
@@ -240,6 +243,10 @@ class transposh_plugin_options {
240
  return $this->options[TRANSPOSH_BACKUP_SCHEDULE];
241
  }
242
 
 
 
 
 
243
  /**
244
  * Sets a value at the options array
245
  * @param mixed $val
@@ -357,6 +364,11 @@ class transposh_plugin_options {
357
  $this->set_value($val, $this->options[TRANSPOSH_BACKUP_SCHEDULE]);
358
  }
359
 
 
 
 
 
 
360
  /**
361
  * Updates options at the wordpress options table if there was a change
362
  */
@@ -397,4 +409,5 @@ class transposh_plugin_options {
397
  }
398
 
399
  }
 
400
  ?>
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  // OLD Options - To be removed
66
  define('TRANSPOSH_KEY', 'transposh_key');
67
  //Stores the site key to transposh services (backup @since 0.5.0)
68
  define('TRANSPOSH_BACKUP_SCHEDULE', 'transposh_backup_schedule');
69
+ //Make the gettext interface optional (@since 0.6.4)
70
+ define('TRANSPOSH_GETTEXT_INTEGRATION', 'transposh_gettext_integration');
71
 
72
  class transposh_plugin_options {
73
  //constructor of class, PHP4 compatible construction for backward compatibility
89
  $this->set_default_option_value(ENABLE_SEARCH_TRANSLATE, 1);
90
  $this->set_default_option_value(ENABLE_AUTO_TRANSLATE, 1);
91
  $this->set_default_option_value(PREFERRED_TRANSLATOR, 1);
92
+ $this->set_default_option_value(TRANSPOSH_GETTEXT_INTEGRATION, 1);
93
  $this->set_default_option_value(VIEWABLE_LANGS);
94
  $this->set_default_option_value(EDITABLE_LANGS);
95
  //$this->set_default_option_value(SORTED_LANGS);
243
  return $this->options[TRANSPOSH_BACKUP_SCHEDULE];
244
  }
245
 
246
+ function get_transposh_gettext_integration() {
247
+ return $this->options[TRANSPOSH_GETTEXT_INTEGRATION];
248
+ }
249
+
250
  /**
251
  * Sets a value at the options array
252
  * @param mixed $val
364
  $this->set_value($val, $this->options[TRANSPOSH_BACKUP_SCHEDULE]);
365
  }
366
 
367
+ function set_transposh_gettext_integration($val) {
368
+ $val = ($val) ? 1 : 0;
369
+ $this->set_value($val, $this->options[TRANSPOSH_GETTEXT_INTEGRATION]);
370
+ }
371
+
372
  /**
373
  * Updates options at the wordpress options table if there was a change
374
  */
409
  }
410
 
411
  }
412
+
413
  ?>
wp/transposh_postpublish.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /*
wp/transposh_widget.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.6.3
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Wed, 01 Sep 2010 13:15:09 +0300
12
  */
13
 
14
  /*
@@ -85,10 +85,10 @@ class transposh_plugin_widget {
85
  }
86
 
87
  // Register widget
88
- wp_register_sidebar_widget('Transposh','Transposh', array(&$this, 'transposh_widget'), array( 'description' => __('Transposh language selection widget') ));
89
 
90
  // Register widget control
91
- wp_register_widget_control('Transposh','Transposh', array(&$this, 'transposh_widget_control'));
92
 
93
  // Register callback for widget's css and js
94
  add_action('wp_print_styles', array(&$this, 'add_transposh_widget_css'));
@@ -205,7 +205,7 @@ class transposh_plugin_widget {
205
 
206
 
207
  // widget default title
208
- echo $before_widget . $before_title . __('Translation') . $after_title;
209
 
210
  // the widget is inside a form used for posting a language change or edit request
211
  echo '<form id="tp_form" action="' . $clean_page_url . '" method="post">';
@@ -218,7 +218,7 @@ class transposh_plugin_widget {
218
  // this is the set default language line
219
  if ($this->transposh->options->get_widget_allow_set_default_language()) {
220
  If ((isset($_COOKIE['TR_LNG']) && $_COOKIE['TR_LNG'] != $this->transposh->target_language) || (!isset($_COOKIE['TR_LNG']) && !$this->transposh->options->is_default_language($this->transposh->target_language))) {
221
- echo '<a id="' . SPAN_PREFIX . 'setdeflang" onClick="return false;" href="' . $this->transposh->post_url . '?tr_cookie_bck">Set as default language</a><br/>';
222
  }
223
  }
224
  // add the edit checkbox only for translators for languages marked as editable
@@ -250,7 +250,7 @@ class transposh_plugin_widget {
250
  echo '<div id="' . SPAN_PREFIX . 'credit">';
251
  if (!$this->transposh->options->get_widget_remove_logo()) {
252
  echo 'by <a href="http://tran' . 'sposh.org"><img class="' . NO_TRANSLATE_CLASS . '" height="16" width="16" src="' .
253
- $plugpath . '/img/tplog' . 'o.png" style="padding:1px;border:0px" title="Transposh" alt="Transposh"/></a>';
254
  }
255
  echo '</div>';
256
  echo $after_widget;
@@ -329,7 +329,7 @@ class transposh_plugin_widget {
329
 
330
  $widgets = $this->get_widgets();
331
 
332
- echo '<p><label for="' . WIDGET_FILE . '">Style:<br />' .
333
  '<select id="transposh-style" name="' . WIDGET_FILE . '">';
334
  foreach ($widgets as $file => $widget) {
335
 
@@ -338,13 +338,13 @@ class transposh_plugin_widget {
338
  }
339
  echo '</select>' .
340
  '</label></p>' .
341
- '<p><label for="transposh-progress">Effects:</label><br/>' .
342
  '<input type="checkbox" id="' . WIDGET_PROGRESSBAR . '" name="' . WIDGET_PROGRESSBAR . '"' . ($this->transposh->options->get_widget_progressbar() ? ' checked="checked"' : '') . '/>' .
343
- '<span style="border-bottom: 1px dotted #333; cursor: help; margin-left: 4px" title="Show progress bar when a client triggers automatic translation">Show progress bar</span><br/>' .
344
  '<input type="checkbox" id="' . WIDGET_ALLOW_SET_DEFLANG . '" name="' . WIDGET_ALLOW_SET_DEFLANG . '"' . ($this->transposh->options->get_widget_allow_set_default_language() ? ' checked="checked"' : '') . '/>' .
345
- '<span style="border-bottom: 1px dotted #333; cursor: help; margin-left: 4px" title="Widget will allow setting this language as user default.">Allow user to set current language as default</span><br/>' .
346
  '<input type="checkbox" id="' . WIDGET_REMOVE_LOGO_FOR_AD . '" name="' . WIDGET_REMOVE_LOGO_FOR_AD . '"' . ($this->transposh->options->get_widget_remove_logo() ? ' checked="checked"' : '') . '/>' .
347
- '<span style="border-bottom: 1px dotted #333; cursor: help; margin-left: 4px" title="Transposh logo will be eliminated from widget.">Remove transposh logo (see <a href="http://transposh.org/logoterms">terms</a>)</span><br/>' .
348
  '</p>' .
349
  '<input type="hidden" name="transposh-submit" id="transposh-submit" value="1"/>';
350
  }
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.6.4
5
  * http://transposh.org/
6
  *
7
  * Copyright 2010, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Wed, 13 Oct 2010 12:32:54 +0200
12
  */
13
 
14
  /*
85
  }
86
 
87
  // Register widget
88
+ wp_register_sidebar_widget('Transposh',__('Transposh',TRANSPOSH_TEXT_DOMAIN), array(&$this, 'transposh_widget'), array( 'description' => __('Transposh language selection widget', TRANSPOSH_TEXT_DOMAIN) ));
89
 
90
  // Register widget control
91
+ wp_register_widget_control('Transposh',__('Transposh',TRANSPOSH_TEXT_DOMAIN), array(&$this, 'transposh_widget_control'));
92
 
93
  // Register callback for widget's css and js
94
  add_action('wp_print_styles', array(&$this, 'add_transposh_widget_css'));
205
 
206
 
207
  // widget default title
208
+ echo $before_widget . $before_title . __('Translation',TRANSPOSH_TEXT_DOMAIN) . $after_title;
209
 
210
  // the widget is inside a form used for posting a language change or edit request
211
  echo '<form id="tp_form" action="' . $clean_page_url . '" method="post">';
218
  // this is the set default language line
219
  if ($this->transposh->options->get_widget_allow_set_default_language()) {
220
  If ((isset($_COOKIE['TR_LNG']) && $_COOKIE['TR_LNG'] != $this->transposh->target_language) || (!isset($_COOKIE['TR_LNG']) && !$this->transposh->options->is_default_language($this->transposh->target_language))) {
221
+ echo '<a id="' . SPAN_PREFIX . 'setdeflang" onClick="return false;" href="' . $this->transposh->post_url . '?tr_cookie_bck">'.__('Set as default language',TRANSPOSH_TEXT_DOMAIN).'</a><br/>';
222
  }
223
  }
224
  // add the edit checkbox only for translators for languages marked as editable
250
  echo '<div id="' . SPAN_PREFIX . 'credit">';
251
  if (!$this->transposh->options->get_widget_remove_logo()) {
252
  echo 'by <a href="http://tran' . 'sposh.org"><img class="' . NO_TRANSLATE_CLASS . '" height="16" width="16" src="' .
253
+ $plugpath . '/img/tplog' . 'o.png" style="padding:1px;border:0px" title="'.esc_attr__('Transposh',TRANSPOSH_TEXT_DOMAIN).'" alt="'.esc_attr__('Transposh',TRANSPOSH_TEXT_DOMAIN).'"/></a>';
254
  }
255
  echo '</div>';
256
  echo $after_widget;
329
 
330
  $widgets = $this->get_widgets();
331
 
332
+ echo '<p><label for="' . WIDGET_FILE . '">'.__('Style:',TRANSPOSH_TEXT_DOMAIN).'<br/>' .
333
  '<select id="transposh-style" name="' . WIDGET_FILE . '">';
334
  foreach ($widgets as $file => $widget) {
335
 
338
  }
339
  echo '</select>' .
340
  '</label></p>' .
341
+ '<p><label for="transposh-progress">'.__('Effects:',TRANSPOSH_TEXT_DOMAIN).'</label><br/>' .
342
  '<input type="checkbox" id="' . WIDGET_PROGRESSBAR . '" name="' . WIDGET_PROGRESSBAR . '"' . ($this->transposh->options->get_widget_progressbar() ? ' checked="checked"' : '') . '/>' .
343
+ '<span style="border-bottom: 1px dotted #333; cursor: help; margin-left: 4px" title="'.esc_attr__('Show progress bar when a client triggers automatic translation',TRANSPOSH_TEXT_DOMAIN).'">'.__('Show progress bar',TRANSPOSH_TEXT_DOMAIN).'</span><br/>' .
344
  '<input type="checkbox" id="' . WIDGET_ALLOW_SET_DEFLANG . '" name="' . WIDGET_ALLOW_SET_DEFLANG . '"' . ($this->transposh->options->get_widget_allow_set_default_language() ? ' checked="checked"' : '') . '/>' .
345
+ '<span style="border-bottom: 1px dotted #333; cursor: help; margin-left: 4px" title="'.esc_attr__('Widget will allow setting this language as user default',TRANSPOSH_TEXT_DOMAIN).'">'.__('Allow user to set current language as default',TRANSPOSH_TEXT_DOMAIN).'</span><br/>' .
346
  '<input type="checkbox" id="' . WIDGET_REMOVE_LOGO_FOR_AD . '" name="' . WIDGET_REMOVE_LOGO_FOR_AD . '"' . ($this->transposh->options->get_widget_remove_logo() ? ' checked="checked"' : '') . '/>' .
347
+ '<span style="border-bottom: 1px dotted #333; cursor: help; margin-left: 4px" title="'.esc_attr__('Transposh logo will not appear on widget',TRANSPOSH_TEXT_DOMAIN).'">'.__('Remove transposh logo (see <a href="http://transposh.org/logoterms">terms</a>)',TRANSPOSH_TEXT_DOMAIN).'</span><br/>' .
348
  '</p>' .
349
  '<input type="hidden" name="transposh-submit" id="transposh-submit" value="1"/>';
350
  }