Transposh WordPress Translation - Version 0.7.1

Version Description

= 0.7.0 = New edit interface, tons of other fixes = 0.6.6 = Fixed two XSS vulnerabilities = 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.7.1
Comparing to
See all releases

Code changes from version 0.7.0 to 0.7.1

core/constants.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  //Language indicator in URL. i.e. lang=en
@@ -127,7 +127,7 @@ class transposh_consts {
127
  define('TRANSLATOR', 'translator');
128
 
129
  //Define for transposh plugin version
130
- define('TRANSPOSH_PLUGIN_VER', '0.7.0');
131
 
132
  //Define segment id prefix, will be included in span tag. also used as class identifier
133
  define('SPAN_PREFIX', 'tr_');
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  //Language indicator in URL. i.e. lang=en
127
  define('TRANSLATOR', 'translator');
128
 
129
  //Define for transposh plugin version
130
+ define('TRANSPOSH_PLUGIN_VER', '0.7.1');
131
 
132
  //Define segment id prefix, will be included in span tag. also used as class identifier
133
  define('SPAN_PREFIX', 'tr_');
core/parser.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  require_once("shd/simple_html_dom.php");
@@ -86,9 +86,11 @@ class parserstats {
86
  */
87
  class parser {
88
 
 
89
  public $url_rewrite_func = null;
90
  public $fetch_translate_func = null;
91
  public $prefetch_translate_func = null;
 
92
  /** @var int stores the number of the last used span_id */
93
  private $span_id = 0;
94
  /** @var simple_html_dom_node Contains the current node */
@@ -101,7 +103,7 @@ class parser {
101
  public $lang;
102
  /** @var boolean Contains the fact that this language is the default one (only parse other lanaguage spans) */
103
  public $default_lang = false;
104
- /** @var string Contains the iso of the source language - if a lang attribute is found */
105
  public $srclang;
106
  private $inbody = false;
107
  /** @var hold fact that we are in select or other similar elements */
@@ -122,6 +124,10 @@ class parser {
122
  private $in_get_text_inner = false;
123
  /** @var string Additional header information */
124
  public $added_header;
 
 
 
 
125
 
126
  /**
127
  * Determine if the current position in buffer is a white space.
@@ -486,15 +492,11 @@ class parser {
486
  }
487
  // for anchors we will rewrite urls if we can
488
  elseif ($node->tag == 'a') {
489
- if ($this->url_rewrite_func != null) {
490
- $node->href = call_user_func_array($this->url_rewrite_func, array($node->href));
491
- }
492
  }
493
  // same for options, although normally not required (ticket #34)
494
  elseif ($node->tag == 'option') {
495
- if ($this->url_rewrite_func != null) {
496
- $node->value = call_user_func_array($this->url_rewrite_func, array($node->value));
497
- }
498
  }
499
  // in submit type inputs, we want to translate the value
500
  elseif ($node->tag == 'input' && $node->type == 'submit') {
@@ -647,6 +649,7 @@ class parser {
647
  }
648
 
649
  // try some prefetching... (//todo - maybe move directly to the phrase create)
 
650
  if ($this->prefetch_translate_func != null) {
651
  foreach ($this->html->find('text') as $e) {
652
  foreach ($e->nodes as $ep) {
@@ -665,9 +668,30 @@ class parser {
665
  if ($ep->phrase) $originals[$ep->phrase] = true;
666
  }
667
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
668
  call_user_func_array($this->prefetch_translate_func, array($originals, $this->lang));
669
  }
670
 
 
 
 
 
 
 
 
 
671
  // this is used to reserve spans we cannot add directly (out of body, metas, etc)
672
  $hiddenspans = '';
673
  $savedspan = '';
@@ -704,7 +728,7 @@ class parser {
704
  }
705
 
706
  // this adds saved spans to the first not in select element which is in the body
707
- if (!$ep->inselect && $savedspan && $ep->inbody) {
708
  $e->outertext = $savedspan . $e->outertext;
709
  $savedspan = '';
710
  }
@@ -790,7 +814,7 @@ class parser {
790
  $e->content = $right;
791
  }
792
  if ($this->is_edit_mode) {
793
- $hiddenspans .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);
794
  }
795
  if (!$translated_text && $this->is_auto_translate && !$this->is_edit_mode) {
796
 
@@ -836,7 +860,7 @@ class parser {
836
  function get_phrases_list($string) {
837
  $result = array();
838
  // create our dom
839
- $this->html = str_get_html($string);
840
  // mark translateable elements
841
  $this->translate_tagging($this->html->root);
842
  foreach ($this->html->nodes as $ep) {
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 15:50:49 +0200
12
  */
13
 
14
  require_once("shd/simple_html_dom.php");
86
  */
87
  class parser {
88
 
89
+ // funnctions that need to be defined... //
90
  public $url_rewrite_func = null;
91
  public $fetch_translate_func = null;
92
  public $prefetch_translate_func = null;
93
+ public $split_url_func = null;
94
  /** @var int stores the number of the last used span_id */
95
  private $span_id = 0;
96
  /** @var simple_html_dom_node Contains the current node */
103
  public $lang;
104
  /** @var boolean Contains the fact that this language is the default one (only parse other lanaguage spans) */
105
  public $default_lang = false;
106
+ /** @var string Contains the iso of the source language - if a lang attribute is found, assumed to be en by default */
107
  public $srclang;
108
  private $inbody = false;
109
  /** @var hold fact that we are in select or other similar elements */
124
  private $in_get_text_inner = false;
125
  /** @var string Additional header information */
126
  public $added_header;
127
+ /** @var array Contains reference to changable a tags */
128
+ private $atags = array();
129
+ /** @var array Contains reference to changable option values */
130
+ private $otags = array();
131
 
132
  /**
133
  * Determine if the current position in buffer is a white space.
492
  }
493
  // for anchors we will rewrite urls if we can
494
  elseif ($node->tag == 'a') {
495
+ array_push($this->atags, $node);
 
 
496
  }
497
  // same for options, although normally not required (ticket #34)
498
  elseif ($node->tag == 'option') {
499
+ array_push($this->otags, $node);
 
 
500
  }
501
  // in submit type inputs, we want to translate the value
502
  elseif ($node->tag == 'input' && $node->type == 'submit') {
649
  }
650
 
651
  // try some prefetching... (//todo - maybe move directly to the phrase create)
652
+ $originals = array();
653
  if ($this->prefetch_translate_func != null) {
654
  foreach ($this->html->find('text') as $e) {
655
  foreach ($e->nodes as $ep) {
668
  if ($ep->phrase) $originals[$ep->phrase] = true;
669
  }
670
  }
671
+ // if we should split, we will split some urls for translation prefetching
672
+ if ($this->split_url_func != null) {
673
+ foreach ($this->atags as $e) {
674
+ foreach (call_user_func_array($this->split_url_func, array($e->href)) as $part) {
675
+ $originals[$part] = true;
676
+ }
677
+ }
678
+ foreach ($this->otags as $e) {
679
+ foreach (call_user_func_array($this->split_url_func, array($e->value)) as $part) {
680
+ $originals[$part] = true;
681
+ }
682
+ }
683
+ }
684
  call_user_func_array($this->prefetch_translate_func, array($originals, $this->lang));
685
  }
686
 
687
+ // fix urls...
688
+ foreach ($this->atags as $e) {
689
+ $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));
690
+ }
691
+ foreach ($this->otags as $e) {
692
+ $e->value = call_user_func_array($this->url_rewrite_func, array($e->value));
693
+ }
694
+
695
  // this is used to reserve spans we cannot add directly (out of body, metas, etc)
696
  $hiddenspans = '';
697
  $savedspan = '';
728
  }
729
 
730
  // this adds saved spans to the first not in select element which is in the body
731
+ if (!$ep->inselect && $savedspan && $ep->inbody) { // (TODO: might not be...?)
732
  $e->outertext = $savedspan . $e->outertext;
733
  $savedspan = '';
734
  }
814
  $e->content = $right;
815
  }
816
  if ($this->is_edit_mode) {
817
+ $hiddenspans .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);
818
  }
819
  if (!$translated_text && $this->is_auto_translate && !$this->is_edit_mode) {
820
 
860
  function get_phrases_list($string) {
861
  $result = array();
862
  // create our dom
863
+ $this->html = str_get_html('<span lang="xx">' . $string . '<span>');
864
  // mark translateable elements
865
  $this->translate_tagging($this->html->root);
866
  foreach ($this->html->nodes as $ep) {
core/utils.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /**
@@ -264,7 +264,12 @@ class transposh_utils {
264
  public static function translate_url($href, $home_url, $target_language, $fetch_translation_func) {
265
  $url = '';
266
  $querypart = '';
267
- // todo - check query part... sanitize
 
 
 
 
 
268
  if (strpos($href, '?') !== false) {
269
  list ($href, $querypart) = explode('?', $href);
270
  $querypart = '?' . $querypart;
@@ -273,7 +278,11 @@ class transposh_utils {
273
  $parts = explode('/', $href);
274
  foreach ($parts as $part) {
275
  if (!$part) continue;
276
- list($source, $translated_text) = call_user_func_array($fetch_translation_func, array($part, $target_language));
 
 
 
 
277
  if ($translated_text)
278
  $url .= '/' . str_replace(' ', '-', $translated_text);
279
  else {
@@ -286,7 +295,7 @@ class transposh_utils {
286
  }
287
  }
288
  if (substr($href, strlen($href) - 1) == '/') $url.='/';
289
- return $home_url . $url . $querypart;
290
  }
291
 
292
  /**
@@ -335,6 +344,16 @@ class transposh_utils {
335
  return $home_url . $url2;
336
  }
337
 
 
 
 
 
 
 
 
 
 
 
338
  /**
339
  * Function to display a flag
340
  * @param string $path path to flag images
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /**
264
  public static function translate_url($href, $home_url, $target_language, $fetch_translation_func) {
265
  $url = '';
266
  $querypart = '';
267
+ $fragment = '';
268
+ // todo - check query part/fragment... sanitize
269
+ if (strpos($href, '#') !== false) {
270
+ list ($href, $fragment) = explode('#', $href);
271
+ $fragment = '#' . $fragment;
272
+ }
273
  if (strpos($href, '?') !== false) {
274
  list ($href, $querypart) = explode('?', $href);
275
  $querypart = '?' . $querypart;
278
  $parts = explode('/', $href);
279
  foreach ($parts as $part) {
280
  if (!$part) continue;
281
+ if (is_numeric($part)) {
282
+ $translated_text = $part;
283
+ } else {
284
+ list($source, $translated_text) = call_user_func_array($fetch_translation_func, array($part, $target_language));
285
+ }
286
  if ($translated_text)
287
  $url .= '/' . str_replace(' ', '-', $translated_text);
288
  else {
295
  }
296
  }
297
  if (substr($href, strlen($href) - 1) == '/') $url.='/';
298
+ return $home_url . $url . $querypart . $fragment;
299
  }
300
 
301
  /**
344
  return $home_url . $url2;
345
  }
346
 
347
+ /**
348
+ * Checks that we may perform a rewrite on said url
349
+ * @param url to be checked $url
350
+ * @param the base url of the site $home_url
351
+ * @return boolean if this is rewritable
352
+ */
353
+ public static function is_rewriteable_url($url, $home_url) {
354
+ return (stripos($url, $home_url) !== FALSE);
355
+ }
356
+
357
  /**
358
  * Function to display a flag
359
  * @param string $path path to flag images
js/l/es.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.7.0
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Cerrar sin guardar?","You have made a change to the translation. Are you sure you want to discard it?":"Has cambiado la traducion. Estas seguro que lo quieres eliminar?",History:"Historia","Loading...":"Cargando...",Translated:"Traducido",By:"Por",At:"En",google:"google",bing:"bing",apertium:"apertium","manual translation":"traducci\u00f3n manual","bing suggest":"sugerencia de bing","google suggest":"sugerencia de google","apertium suggest":"sugerencia de apertium",
12
  "Edit Translation":"Editar traducci\u00f3n","Original text":"Texto original","read alternate translations":"lee traducci\u00f3nes alternativas","previous translation":"traducci\u00f3n anterior","find on page":"encuentra en la pagina","next translation":"siguiente traducci\u00f3n","Translate to":"Traducir a","view translation log":"muestra diario de traducion","virtual keyboard":"teclado virtual","approve translation":"aprueba traducion","delete":"eliminar",Discard:"Descartar",Cancel:"Cancelar"};
1
  /*
2
+ * Transposh v0.7.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
10
  */
11
  t_jp.l={"Close without saving?":"Cerrar sin guardar?","You have made a change to the translation. Are you sure you want to discard it?":"Has cambiado la traducion. Estas seguro que lo quieres eliminar?",History:"Historia","Loading...":"Cargando...",Translated:"Traducido",By:"Por",At:"En",google:"google",bing:"bing",apertium:"apertium","manual translation":"traducci\u00f3n manual","bing suggest":"sugerencia de bing","google suggest":"sugerencia de google","apertium suggest":"sugerencia de apertium",
12
  "Edit Translation":"Editar traducci\u00f3n","Original text":"Texto original","read alternate translations":"lee traducci\u00f3nes alternativas","previous translation":"traducci\u00f3n anterior","find on page":"encuentra en la pagina","next translation":"siguiente traducci\u00f3n","Translate to":"Traducir a","view translation log":"muestra diario de traducion","virtual keyboard":"teclado virtual","approve translation":"aprueba traducion","delete":"eliminar",Discard:"Descartar",Cancel:"Cancelar"};
js/l/he.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.7.0
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u05dc\u05e1\u05d2\u05d5\u05e8 \u05d1\u05dc\u05d9 \u05dc\u05e9\u05de\u05d5\u05e8?","You have made a change to the translation. Are you sure you want to discard it?":"\u05d1\u05d9\u05e6\u05e2\u05ea \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d1\u05ea\u05e8\u05d2\u05d5\u05dd, \u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05d1\u05d8\u05d5\u05d7 \u05e9\u05d0\u05ea\u05d4 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d5\u05d5\u05ea\u05e8 \u05e2\u05dc\u05d9\u05d5?",History:"\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4",
12
  "Loading...":"\u05d8\u05d5\u05e2\u05df...",Translated:"\u05ea\u05d5\u05e8\u05d2\u05dd",By:"\u05e2\u05dc \u05d9\u05d3\u05d9",At:"\u05d1",google:"\u05d2\u05d5\u05d2\u05dc",bing:"\u05d1\u05d9\u05e0\u05d2",apertium:"\u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd","manual translation":"\u05ea\u05e8\u05d2\u05d5\u05dd \u05d9\u05d3\u05e0\u05d9","bing suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d1\u05d9\u05e0\u05d2","google suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d2\u05d5\u05d2\u05dc","apertium suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd",
1
  /*
2
+ * Transposh v0.7.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
10
  */
11
  t_jp.l={"Close without saving?":"\u05dc\u05e1\u05d2\u05d5\u05e8 \u05d1\u05dc\u05d9 \u05dc\u05e9\u05de\u05d5\u05e8?","You have made a change to the translation. Are you sure you want to discard it?":"\u05d1\u05d9\u05e6\u05e2\u05ea \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d1\u05ea\u05e8\u05d2\u05d5\u05dd, \u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05d1\u05d8\u05d5\u05d7 \u05e9\u05d0\u05ea\u05d4 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d5\u05d5\u05ea\u05e8 \u05e2\u05dc\u05d9\u05d5?",History:"\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4",
12
  "Loading...":"\u05d8\u05d5\u05e2\u05df...",Translated:"\u05ea\u05d5\u05e8\u05d2\u05dd",By:"\u05e2\u05dc \u05d9\u05d3\u05d9",At:"\u05d1",google:"\u05d2\u05d5\u05d2\u05dc",bing:"\u05d1\u05d9\u05e0\u05d2",apertium:"\u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd","manual translation":"\u05ea\u05e8\u05d2\u05d5\u05dd \u05d9\u05d3\u05e0\u05d9","bing suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d1\u05d9\u05e0\u05d2","google suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d2\u05d5\u05d2\u05dc","apertium suggest":"\u05d4\u05e6\u05e2\u05d5\u05ea \u05d0\u05e4\u05e8\u05d8\u05d9\u05d5\u05dd",
js/l/newlang.js.pot ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * To add a language to the front end interface this file should be edited and be renamed to the two letter iso code of the language it is destined for
3
+ * For each original phrase just write the translation between the '' following it
4
+ */
5
+
6
+ t_jp.l = {
7
+ 'Close without saving?': '',
8
+ 'You have made a change to the translation. Are you sure you want to discard it?': '',
9
+ 'History': '',
10
+ 'Loading...': '',
11
+ 'Translated': '',
12
+ 'By': '',
13
+ 'At': '',
14
+ 'google': '',
15
+ 'bing': '',
16
+ 'apertium': '',
17
+ 'manual translation': '',
18
+ 'bing suggest': '',
19
+ 'google suggest': '',
20
+ 'apertium suggest': '',
21
+ 'Edit Translation': '',
22
+ 'Original text': '',
23
+ 'read alternate translations': '',
24
+ 'previous translation': '',
25
+ 'find on page': '',
26
+ 'next translation': '',
27
+ 'Translate to': '',
28
+ 'view translation log': '',
29
+ 'virtual keyboard': '',
30
+ 'approve translation': '',
31
+ 'delete': '',
32
+ 'Discard': '',
33
+ 'Cancel': ''
34
+
35
+ };
js/l/nl.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Transposh v0.7.1
3
+ * http://transposh.org/
4
+ *
5
+ * Copyright 2011, Team Transposh
6
+ * Licensed under the GPL Version 2 or higher.
7
+ * http://transposh.org/license
8
+ *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
10
+ */
11
+ t_jp.l={"Close without saving?":"Sluiten zonder op te slaan?","You have made a change to the translation. Are you sure you want to discard it?":"Je hebt de vertaling aangepast. Weet je zeker dat je dat wilt annuleren?",History:"Geschiedenis","Loading...":"Aan het laden...",Translated:"Vertaald",By:"Door",At:"Op",google:"google",bing:"bing",apertium:"apertium","manual translation":"eigen vertaling","bing suggest":"bing suggestie","google suggest":"google suggestie","apertium suggest":"apertium suggestie",
12
+ "Edit Translation":"Vertaling aanpassen","Original text":"Oorspronkelijke tekst","read alternate translations":"bekijk alternatieve vertaling","previous translation":"vorige","find on page":"laat op de pagina zien","next translation":"volgende","Translate to":"Vertaal naar","view translation log":"Bekijk vertaallog","virtual keyboard":"virtueel toetsenbord","approve translation":"vertaling goedkeuren","delete":"verwijder",Discard:"weggooien",Cancel:"Annuleren"};
js/transposh.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.7.0
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
10
  */
11
  (function(a){function v(b,e){if(a.trim(e).length!==0){var c=function(){var d=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),f=a("#"+h+"img_"+d);a("#"+h+d).attr("data-source",1);f.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-yellow")};a("*[data-token='"+b+"'][data-hidden!='y']").html(e).each(c);a("*[data-token='"+b+"'][data-hidden='y']").attr("data-trans",e).each(c)}}function w(b,e){clearTimeout(p);i.push(b);n.push(e);v(b,e);p=setTimeout(function(){var c=
12
  {ln0:t_jp.lang,sr0:o,translation_posted:"2",items:i.length},d;for(d=0;d<i.length;d+=1){c["tk"+d]=i[d];c["tr"+d]=n[d];q+=a("*[data-token='"+i[d]+"']").size()}a.ajax({type:"POST",url:t_jp.post_url,data:c,success:function(){var f=q/k*100;t_jp.progress&&a("#"+l).progressbar("value",f)}});n=[];i=[]},200)}function j(b,e){w(b,a("<div>"+a.trim(e)+"</div>").text());var c=(k-a("."+h+'[data-source=""]').size())/k*100;t_jp.progress&&a("#"+m).progressbar("value",c)}function x(b,e,c){var d="",f="";a(b).each(function(g){d+=
@@ -14,6 +14,6 @@
14
  function y(b,e){var c="[";a(b).each(function(d){c+='"'+encodeURIComponent(b[d])+'",'});c=c.slice(0,-1)+"]";a.ajax({url:"http://api.microsofttranslator.com/V2/Ajax.svc/TranslateArray?appId="+t_jp.MSN_APPID+"&to="+t_jp.binglang+"&texts="+c,dataType:"jsonp",jsonp:"oncomplete",success:e})}function z(b,e){o=2;y(e,function(c){a(c).each(function(d){j(b[d],this.TranslatedText)})})}function A(b,e){a.getJSON(t_jp.post_url+"?tgp="+e+"&tgl="+t_jp.lang,function(c){c.sentences!==undefined&&c.sentences[0].trans&&
15
  j(b,c.sentences[0].trans)})}function B(b,e){var c="";a(b).each(function(d){c+="&q="+encodeURIComponent(b[d])});a.ajax({url:"http://api.apertium.org/json/translate?"+c+"&langpair="+t_jp.olang+"%7C"+t_jp.lang+"&markUnknown=no",dataType:"jsonp",success:e})}function C(b,e){o=3;B(e,function(c){if(c.responseStatus>=200&&c.responseStatus<300)c.responseData.translatedText!==undefined?j(b[0],c.responseData.translatedText):a(c.responseData).each(function(d){this.responseStatus===200&&j(b[d],this.responseData.translatedText)})})}
16
  function s(b,e){if(t_jp.msn&&t_jp.preferred==="2")z(b,e);else if(t_jp.apertium&&(t_jp.olang==="en"||t_jp.olang==="es"))C(b,e);else if(t_jp.tgp)e[0]&&A(b[0],e[0]);else r(b,e,false)}function t(){var b=[],e=0,c=[],d=[];if(t_jp.tgp)u=0;a("."+h+'[data-source=""]').each(function(){var f=a(this).attr("data-token"),g=a(this).attr("data-orig");if(g===undefined)g=a(this).html();if(b[g]!==1){b[g]=1;if(e+g.length>u){s(d,c);e=0;c=[];d=[]}e+=g.length;d.push(f);c.push(g)}});s(d,c)}var u=128,k,h=t_jp.prefix,m=h+
17
- "pbar",l=m+"_s",o=1,q=0,p,i=[],n=[];t_jp.MSN_APPID="FACA8E2DF8DCCECE0DC311C6E57DA98EFEFA9BC6";t_jp.jQueryUI="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/";a(document).ready(function(){if(t_jp.msn){t_jp.binglang=t_jp.lang;if(t_jp.binglang==="zh")t_jp.binglang="zh-chs";else if(t_jp.binglang==="zh-tw")t_jp.binglang="zh-cht"}a("#"+h+"setdeflang").click(function(){a.get(t_jp.post_url+"?tr_cookie="+Math.random());a(this).hide("slow");return false});k=a("."+h+'[data-source=""]').size();a.ajaxSetup({cache:true});
18
  if(k&&!t_jp.noauto&&(t_jp.google||t_jp.msn||t_jp.apertium||t_jp.tgp))if(t_jp.progress){var b=function(){a.xLazyLoader({js:t_jp.jQueryUI+"jquery-ui.min.js",css:t_jp.jQueryUI+"themes/"+t_jp.theme+"/jquery-ui.css",success:function(){a("#"+h+"credit").css({overflow:"auto"}).append('<div style="float: left;width: 90%;height: 10px" id="'+m+'"/><div style="margin-bottom:10px;float:left;width: 90%;height: 10px" id="'+l+'"/>');a("#"+m).progressbar({value:0});a("#"+l).progressbar({value:0});a("#"+l+" > div").css({background:"#28F828",
19
  border:"#08A908 1px solid"});t()}})};typeof a.xLazyLoader==="function"?b():a.getScript(t_jp.plugin_url+"/js/lazy.js",b)}else t();t_jp.edit&&a.getScript(t_jp.plugin_url+"/js/transposhedit.js")})})(jQuery);
1
  /*
2
+ * Transposh v0.7.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
10
  */
11
  (function(a){function v(b,e){if(a.trim(e).length!==0){var c=function(){var d=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),f=a("#"+h+"img_"+d);a("#"+h+d).attr("data-source",1);f.removeClass("tr-icon-yellow").removeClass("tr-icon-green").addClass("tr-icon-yellow")};a("*[data-token='"+b+"'][data-hidden!='y']").html(e).each(c);a("*[data-token='"+b+"'][data-hidden='y']").attr("data-trans",e).each(c)}}function w(b,e){clearTimeout(p);i.push(b);n.push(e);v(b,e);p=setTimeout(function(){var c=
12
  {ln0:t_jp.lang,sr0:o,translation_posted:"2",items:i.length},d;for(d=0;d<i.length;d+=1){c["tk"+d]=i[d];c["tr"+d]=n[d];q+=a("*[data-token='"+i[d]+"']").size()}a.ajax({type:"POST",url:t_jp.post_url,data:c,success:function(){var f=q/k*100;t_jp.progress&&a("#"+l).progressbar("value",f)}});n=[];i=[]},200)}function j(b,e){w(b,a("<div>"+a.trim(e)+"</div>").text());var c=(k-a("."+h+'[data-source=""]').size())/k*100;t_jp.progress&&a("#"+m).progressbar("value",c)}function x(b,e,c){var d="",f="";a(b).each(function(g){d+=
14
  function y(b,e){var c="[";a(b).each(function(d){c+='"'+encodeURIComponent(b[d])+'",'});c=c.slice(0,-1)+"]";a.ajax({url:"http://api.microsofttranslator.com/V2/Ajax.svc/TranslateArray?appId="+t_jp.MSN_APPID+"&to="+t_jp.binglang+"&texts="+c,dataType:"jsonp",jsonp:"oncomplete",success:e})}function z(b,e){o=2;y(e,function(c){a(c).each(function(d){j(b[d],this.TranslatedText)})})}function A(b,e){a.getJSON(t_jp.post_url+"?tgp="+e+"&tgl="+t_jp.lang,function(c){c.sentences!==undefined&&c.sentences[0].trans&&
15
  j(b,c.sentences[0].trans)})}function B(b,e){var c="";a(b).each(function(d){c+="&q="+encodeURIComponent(b[d])});a.ajax({url:"http://api.apertium.org/json/translate?"+c+"&langpair="+t_jp.olang+"%7C"+t_jp.lang+"&markUnknown=no",dataType:"jsonp",success:e})}function C(b,e){o=3;B(e,function(c){if(c.responseStatus>=200&&c.responseStatus<300)c.responseData.translatedText!==undefined?j(b[0],c.responseData.translatedText):a(c.responseData).each(function(d){this.responseStatus===200&&j(b[d],this.responseData.translatedText)})})}
16
  function s(b,e){if(t_jp.msn&&t_jp.preferred==="2")z(b,e);else if(t_jp.apertium&&(t_jp.olang==="en"||t_jp.olang==="es"))C(b,e);else if(t_jp.tgp)e[0]&&A(b[0],e[0]);else r(b,e,false)}function t(){var b=[],e=0,c=[],d=[];if(t_jp.tgp)u=0;a("."+h+'[data-source=""]').each(function(){var f=a(this).attr("data-token"),g=a(this).attr("data-orig");if(g===undefined)g=a(this).html();if(b[g]!==1){b[g]=1;if(e+g.length>u){s(d,c);e=0;c=[];d=[]}e+=g.length;d.push(f);c.push(g)}});s(d,c)}var u=128,k,h=t_jp.prefix,m=h+
17
+ "pbar",l=m+"_s",o=1,q=0,p,i=[],n=[];t_jp.MSN_APPID="FACA8E2DF8DCCECE0DC311C6E57DA98EFEFA9BC6";t_jp.jQueryUI="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/";a(document).ready(function(){if(t_jp.msn){t_jp.binglang=t_jp.lang;if(t_jp.binglang==="zh")t_jp.binglang="zh-chs";else if(t_jp.binglang==="zh-tw")t_jp.binglang="zh-cht"}a("#"+h+"setdeflang").click(function(){a.get(t_jp.post_url+"?tr_cookie="+Math.random());a(this).hide("slow");return false});k=a("."+h+'[data-source=""]').size();a.ajaxSetup({cache:true});
18
  if(k&&!t_jp.noauto&&(t_jp.google||t_jp.msn||t_jp.apertium||t_jp.tgp))if(t_jp.progress){var b=function(){a.xLazyLoader({js:t_jp.jQueryUI+"jquery-ui.min.js",css:t_jp.jQueryUI+"themes/"+t_jp.theme+"/jquery-ui.css",success:function(){a("#"+h+"credit").css({overflow:"auto"}).append('<div style="float: left;width: 90%;height: 10px" id="'+m+'"/><div style="margin-bottom:10px;float:left;width: 90%;height: 10px" id="'+l+'"/>');a("#"+m).progressbar({value:0});a("#"+l).progressbar({value:0});a("#"+l+" > div").css({background:"#28F828",
19
  border:"#08A908 1px solid"});t()}})};typeof a.xLazyLoader==="function"?b():a.getScript(t_jp.plugin_url+"/js/lazy.js",b)}else t();t_jp.edit&&a.getScript(t_jp.plugin_url+"/js/transposhedit.js")})})(jQuery);
js/transposhadmin.js CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
- * Transposh v0.7.0
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Tue, 11 Jan 2011 15:24:55 +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",
1
  /*
2
+ * Transposh v0.7.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +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.7.0
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Tue, 11 Jan 2011 15:24:55 +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");
1
  /*
2
+ * Transposh v0.7.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +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,12 +1,12 @@
1
  /*
2
- * Transposh v0.7.0
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
10
  */
11
  (function(a){function f(c){var d;if(typeof t_jp.l==="object"&&(d=t_jp.l[c]))return d;return c}function t(c,d,j){if(a.trim(d).length===0)d=a("[data-token='"+c+"']").attr("data-orig");var h=function(){var g=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),m=a(b+"img_"+g);a(b+g).attr("data-source",j);m.removeClass("tr-icon-yellow").removeClass("tr-icon-green");if(j==0)m.addClass("tr-icon-green");else j&&m.addClass("tr-icon-yellow")};a("*[data-token='"+c+"'][data-hidden!='y']").html(d).each(h);
12
  a("*[data-token='"+c+"'][data-hidden='y']").attr("data-trans",d).each(h);a(b+"translation").data("origval",d);a(b+"translation").keyup()}function w(c,d){t(c,d,0);a.ajax({type:"POST",url:t_jp.post_url,data:{ln0:t_jp.lang,sr0:0,translation_posted:"2",items:1,tk0:c,tr0:d},success:function(){},error:function(j){alert("Error !!! failed to translate.\n\nServer's message: "+j.statusText)}})}function x(c,d){a.ajax({url:"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q="+encodeURIComponent(c)+
1
  /*
2
+ * Transposh v0.7.1
3
  * http://transposh.org/
4
  *
5
  * Copyright 2011, Team Transposh
6
  * Licensed under the GPL Version 2 or higher.
7
  * http://transposh.org/license
8
  *
9
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
10
  */
11
  (function(a){function f(c){var d;if(typeof t_jp.l==="object"&&(d=t_jp.l[c]))return d;return c}function t(c,d,j){if(a.trim(d).length===0)d=a("[data-token='"+c+"']").attr("data-orig");var h=function(){var g=a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),m=a(b+"img_"+g);a(b+g).attr("data-source",j);m.removeClass("tr-icon-yellow").removeClass("tr-icon-green");if(j==0)m.addClass("tr-icon-green");else j&&m.addClass("tr-icon-yellow")};a("*[data-token='"+c+"'][data-hidden!='y']").html(d).each(h);
12
  a("*[data-token='"+c+"'][data-hidden='y']").attr("data-trans",d).each(h);a(b+"translation").data("origval",d);a(b+"translation").keyup()}function w(c,d){t(c,d,0);a.ajax({type:"POST",url:t_jp.post_url,data:{ln0:t_jp.lang,sr0:0,translation_posted:"2",items:1,tk0:c,tr0:d},success:function(){},error:function(j){alert("Error !!! failed to translate.\n\nServer's message: "+j.statusText)}})}function x(c,d){a.ajax({url:"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q="+encodeURIComponent(c)+
langs/transposh-nl_NL.mo ADDED
Binary file
langs/transposh-nl_NL.po ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/transposh-translation-filter-for-wordpress\n"
5
+ "POT-Creation-Date: 2011-01-16 21:56:35+00:00\n"
6
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
7
+ "Last-Translator: Roland Nieuwendijk <blog@imagitect.nl>\n"
8
+ "Language-Team: Dutch <LL@li.org>\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: \n"
14
+ "X-Poedit-Country: \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_db.php:640
23
+ #@ transposh
24
+ msgid "Database stats"
25
+ msgstr "Database statistieken"
26
+
27
+ #: wp/transposh_db.php:645
28
+ #, php-format
29
+ #@ transposh
30
+ msgid "Total of <strong style=\"color:red\">%s</strong> translated phrases."
31
+ msgstr "Totaal van <strong style=\"color:red\">%s</strong> vertaalde zinsneden."
32
+
33
+ #: wp/transposh_db.php:652
34
+ #, php-format
35
+ #@ transposh
36
+ msgid "<strong>%1s</strong> has <strong style=\"color:red\">%2s</strong> human translated phrases."
37
+ msgstr "<strong>%1s</strong> heeft <strong style=\"color:red\">%2s</strong> aangepaste vertalingen."
38
+
39
+ #: wp/transposh_db.php:655
40
+ #@ transposh
41
+ msgid "Recent activity"
42
+ msgstr "Recente activiteiten"
43
+
44
+ #: wp/transposh_db.php:660
45
+ #, php-format
46
+ #@ transposh
47
+ 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>\""
48
+ msgstr "Op <strong>%1s</strong><br/>vertaalde user <strong>%2s</strong><br/>\"<strong>%3s</strong>\"<br/>naar <strong style=\"color:red\">%4s</strong><br/>\"<strong>%5s</strong>\""
49
+
50
+ #: wp/transposh_3rdparty.php:148
51
+ #, php-format
52
+ #@ buddypress
53
+ msgid "%s translated a phrase to %s with transposh:"
54
+ msgstr "%s vertaalde een zinsnede naar %s met transposh:"
55
+
56
+ #: wp/transposh_admin.php:150
57
+ #: wp/transposh_admin.php:215
58
+ #: wp/transposh_postpublish.php:49
59
+ #: wp/transposh_postpublish.php:50
60
+ #: wp/transposh_widget.php:88
61
+ #: wp/transposh_widget.php:91
62
+ #: wp/transposh_widget.php:252
63
+ #@ transposh
64
+ msgid "Transposh"
65
+ msgstr "Transposh"
66
+
67
+ #: wp/transposh_admin.php:140
68
+ #@ transposh
69
+ msgid "Transposh makes your blog translatable"
70
+ msgstr "Transposh maakt je blog vertaalbaar"
71
+
72
+ #: wp/transposh_admin.php:141
73
+ #@ transposh
74
+ msgid "Plugin homepage"
75
+ msgstr "Plugin homepage"
76
+
77
+ #: wp/transposh_admin.php:142
78
+ #@ transposh
79
+ msgid "Frequently asked questions"
80
+ msgstr "Vaak gestelde vragen"
81
+
82
+ #: wp/transposh_admin.php:150
83
+ #@ transposh
84
+ msgid "Transposh control center"
85
+ msgstr "Transposh controle centrum"
86
+
87
+ #: wp/transposh_admin.php:190
88
+ #@ transposh
89
+ msgid "About this plugin"
90
+ msgstr "Over deze plugin"
91
+
92
+ #: wp/transposh_admin.php:191
93
+ #@ transposh
94
+ msgid "Widget settings"
95
+ msgstr "Widget instellingen"
96
+
97
+ #: wp/transposh_admin.php:192
98
+ #@ transposh
99
+ msgid "Plugin news"
100
+ msgstr "Plugin nieuws"
101
+
102
+ #: wp/transposh_admin.php:193
103
+ #@ transposh
104
+ msgid "Plugin stats"
105
+ msgstr "Plugin stats"
106
+
107
+ #: wp/transposh_admin.php:194
108
+ #@ transposh
109
+ msgid "Translate all"
110
+ msgstr "Vertaal alles"
111
+
112
+ #: wp/transposh_admin.php:195
113
+ #@ transposh
114
+ msgid "Supported languages"
115
+ msgstr "Ondersteunde talen"
116
+
117
+ #: wp/transposh_admin.php:196
118
+ #@ transposh
119
+ msgid "Translation settings"
120
+ msgstr "Vertaalinstellingen"
121
+
122
+ #: wp/transposh_admin.php:197
123
+ #@ transposh
124
+ msgid "Automatic translation settings"
125
+ msgstr "Automatische vertaalinstellingen"
126
+
127
+ #: wp/transposh_admin.php:198
128
+ #@ transposh
129
+ msgid "Generic settings"
130
+ msgstr "Algemene instellingen"
131
+
132
+ #: wp/transposh_admin.php:199
133
+ #@ transposh
134
+ msgid "Database maintenance"
135
+ msgstr "Database onderhoud"
136
+
137
+ #: wp/transposh_admin.php:208
138
+ #@ transposh
139
+ msgid "Transposh community features"
140
+ msgstr "Transposh community functies"
141
+
142
+ #: wp/transposh_admin.php:236
143
+ #@ default
144
+ msgid "Save Changes"
145
+ msgstr "Bewaar aanpassingen"
146
+
147
+ #: wp/transposh_admin.php:260
148
+ #@ transposh
149
+ msgid "Problems?"
150
+ msgstr "Problemen?"
151
+
152
+ #: wp/transposh_admin.php:278
153
+ #@ transposh
154
+ msgid "Plugin Homepage"
155
+ msgstr "Plugin Homepage"
156
+
157
+ #: wp/transposh_admin.php:279
158
+ #@ transposh
159
+ msgid "Suggest a Feature"
160
+ msgstr "Suggereer nieuwe Functie"
161
+
162
+ #: wp/transposh_admin.php:281
163
+ #@ transposh
164
+ msgid "Report a Bug"
165
+ msgstr "Meld een Bug"
166
+
167
+ #: wp/transposh_admin.php:302
168
+ #@ transposh
169
+ msgid "Translate by clicking the button below"
170
+ msgstr "Klik onderstaande buttons om te vertalen"
171
+
172
+ #: wp/transposh_admin.php:303
173
+ #@ transposh
174
+ msgid "Translate All Now"
175
+ msgstr "Vertaal nu alles"
176
+
177
+ #: wp/transposh_admin.php:360
178
+ #@ transposh
179
+ msgid "Default Language (drag another language here to make it default)"
180
+ msgstr "Standaardtaal (sleep andere taal hierheen om standaard te maken)"
181
+
182
+ #: wp/transposh_admin.php:367
183
+ #@ transposh
184
+ msgid "Available Languages (Click to toggle language state - Drag to sort in the widget)"
185
+ msgstr "Beschikbare Talen (Click om aan-uit te zetten - Sleep voor volgorde in de widget)"
186
+
187
+ #: wp/transposh_admin.php:377
188
+ #@ transposh
189
+ msgid "Language supported by google translate"
190
+ msgstr "Taal ondersteund door google translate"
191
+
192
+ #: wp/transposh_admin.php:379
193
+ #@ transposh
194
+ msgid "Language supported by bing translate"
195
+ msgstr "Taal ondersteund door bing translate"
196
+
197
+ #: wp/transposh_admin.php:381
198
+ #@ transposh
199
+ msgid "Language supported by apertium translate"
200
+ msgstr "Taal ondersteund door apertium translate"
201
+
202
+ #: wp/transposh_admin.php:383
203
+ #@ transposh
204
+ msgid "Language is written from right to left"
205
+ msgstr "Taal wordt van rechts naar links geschreven"
206
+
207
+ #: wp/transposh_admin.php:388
208
+ #@ transposh
209
+ msgid "Display options:"
210
+ msgstr "Display opties:"
211
+
212
+ #: wp/transposh_admin.php:389
213
+ #@ transposh
214
+ msgid "Toggle names of languages between English and Original"
215
+ msgstr "Wissel taalnamen tussen Engels en Orgineel"
216
+
217
+ #: wp/transposh_admin.php:390
218
+ #@ transposh
219
+ msgid "Make all languages active"
220
+ msgstr "Ze alle talen actief"
221
+
222
+ #: wp/transposh_admin.php:391
223
+ #@ transposh
224
+ msgid "Sort by language name"
225
+ msgstr "Sorteer op taalnaam"
226
+
227
+ #: wp/transposh_admin.php:392
228
+ #@ transposh
229
+ msgid "Sort by lSO code"
230
+ msgstr "Sorteer op lSO code"
231
+
232
+ #: wp/transposh_admin.php:393
233
+ #@ transposh
234
+ msgid "Legend:"
235
+ msgstr "Legenda:"
236
+
237
+ #: wp/transposh_admin.php:393
238
+ #@ transposh
239
+ msgid "Green - active"
240
+ msgstr "Groen - actief"
241
+
242
+ #: wp/transposh_admin.php:393
243
+ #@ transposh
244
+ msgid "Yellow - translateable (only translators will see this language)"
245
+ msgstr "Geel - vertaalbaar (alleen vertalers zien deze taal)"
246
+
247
+ #: wp/transposh_admin.php:393
248
+ #@ transposh
249
+ msgid "blank - inactive"
250
+ msgstr "Wit - niet actief"
251
+
252
+ #: wp/transposh_admin.php:410
253
+ #@ transposh
254
+ msgid "Who can translate ?"
255
+ msgstr "Wie kan er vertalen?"
256
+
257
+ #: wp/transposh_admin.php:417
258
+ #@ transposh
259
+ msgid "Anonymous"
260
+ msgstr "Anonymous"
261
+
262
+ #: wp/transposh_admin.php:423
263
+ #@ transposh
264
+ msgid "Enable default language translation"
265
+ msgstr "Vertaal de standaard taal"
266
+
267
+ #: wp/transposh_admin.php:425
268
+ #@ transposh
269
+ msgid "Allow translation of default language - useful for sites with more than one major language"
270
+ msgstr "Vertaal de standaard taal - handig voor blogs met meerdere hoofdtalen"
271
+
272
+ #: wp/transposh_admin.php:432
273
+ #@ transposh
274
+ msgid "Enable search in translated languages"
275
+ msgstr "Sta zoeken in vertalingen toe"
276
+
277
+ #: wp/transposh_admin.php:434
278
+ #@ transposh
279
+ msgid "Allow search of translated languages, in those languages (and the original language)"
280
+ msgstr "Sta zoeken in vertalingen toe, in taal van de vertaling (en de oorspronkelijke taal)"
281
+
282
+ #: wp/transposh_admin.php:441
283
+ #@ transposh
284
+ msgid "Enable url translation"
285
+ msgstr "Activeer omzetten url"
286
+
287
+ #: wp/transposh_admin.php:441
288
+ #: wp/transposh_admin.php:450
289
+ #@ transposh
290
+ msgid "experimental"
291
+ msgstr "experimenteel"
292
+
293
+ #: wp/transposh_admin.php:443
294
+ #@ transposh
295
+ msgid "Allow translation of permalinks and urls"
296
+ msgstr "Activeer vertaling van permalinks en urls"
297
+
298
+ #: wp/transposh_admin.php:450
299
+ #@ transposh
300
+ msgid "Enable gettext integration"
301
+ msgstr "Activeer gettext integratie"
302
+
303
+ #: wp/transposh_admin.php:452
304
+ #@ transposh
305
+ msgid "Enable integration of Transposh with existing gettext interface (.po/.mo files)"
306
+ msgstr "Activeer integratie van Transposh met bestaande gettext interface (.po/.mo bestanden)"
307
+
308
+ #: wp/transposh_admin.php:461
309
+ #@ transposh
310
+ msgid "Enable automatic translation"
311
+ msgstr "Activeer automatische vertaling"
312
+
313
+ #: wp/transposh_admin.php:463
314
+ #@ transposh
315
+ msgid "Allow automatic translation of pages"
316
+ msgstr "Activeer automatische vertaling van pagina's"
317
+
318
+ #: wp/transposh_admin.php:469
319
+ #@ transposh
320
+ msgid "Enable automatic translation after posting"
321
+ msgstr "Activeer automatische vertaling na het posten"
322
+
323
+ #: wp/transposh_admin.php:471
324
+ #@ transposh
325
+ msgid "Do automatic translation immediately after a post has been published"
326
+ msgstr "Activeer automatische vertaling onmiddellijk na het publiceren van een post"
327
+
328
+ #: wp/transposh_admin.php:476
329
+ #@ transposh
330
+ msgid "Select preferred auto translation engine"
331
+ msgstr "Selecteer favoriete automatische vertalingsengine"
332
+
333
+ #: wp/transposh_admin.php:477
334
+ #@ transposh
335
+ msgid "Translation engine:"
336
+ msgstr "Vertalingsengine:"
337
+
338
+ #: wp/transposh_admin.php:479
339
+ #@ transposh
340
+ msgid "Google"
341
+ msgstr "Google"
342
+
343
+ #: wp/transposh_admin.php:480
344
+ #@ transposh
345
+ msgid "Bing"
346
+ msgstr "Bing"
347
+
348
+ #: wp/transposh_admin.php:490
349
+ #@ transposh
350
+ msgid "Rewrite URLs"
351
+ msgstr "Herschrijf URLs"
352
+
353
+ #: wp/transposh_admin.php:501
354
+ #@ transposh
355
+ msgid "Add scripts to footer"
356
+ msgstr "Voeg scripts toe aan de footer"
357
+
358
+ #: wp/transposh_admin.php:510
359
+ #@ transposh
360
+ msgid "Auto detect language for users"
361
+ msgstr "Detecteer taal van gebruiker"
362
+
363
+ #: wp/transposh_admin.php:523
364
+ #@ transposh
365
+ msgid "Delete all automated translations"
366
+ msgstr "Verwijder alle automatische vertalingen"
367
+
368
+ #: wp/transposh_admin.php:524
369
+ #@ transposh
370
+ msgid "Delete automated translations older than 14 days"
371
+ msgstr "Verwijder automatische vertalingen ouder dan 14 dagen"
372
+
373
+ #: wp/transposh_admin.php:525
374
+ #@ transposh
375
+ msgid "Attempt to fix errors caused by previous versions - please backup first"
376
+ msgstr "Probeer fouten te herstellen ontstaan door eerdere versies - maak eerst een backup"
377
+
378
+ #: wp/transposh_admin.php:529
379
+ #@ transposh
380
+ msgid "Backup service for human translation"
381
+ msgstr "Backup service voor eigen vertalingen"
382
+
383
+ #: wp/transposh_admin.php:530
384
+ #@ transposh
385
+ msgid "Enable daily backup"
386
+ msgstr "Activeer dagelijkse backup"
387
+
388
+ #: wp/transposh_admin.php:531
389
+ #@ transposh
390
+ msgid "Enable live backup"
391
+ msgstr "Activeer onmiddellijke backup"
392
+
393
+ #: wp/transposh_admin.php:532
394
+ #@ transposh
395
+ msgid "Disable backup (Can be run manually by clicking the button below)"
396
+ msgstr "Zet backupfuncties uit (Kan met de hand gedaan worden door het klikken van onderstaande button)"
397
+
398
+ #: wp/transposh_admin.php:533
399
+ #@ transposh
400
+ msgid "Service Key:"
401
+ msgstr "Service Key:"
402
+
403
+ #: wp/transposh_admin.php:533
404
+ #@ transposh
405
+ msgid "How to restore?"
406
+ msgstr "Een backup terugzetten?"
407
+
408
+ #: wp/transposh_admin.php:535
409
+ #@ transposh
410
+ msgid "Do Backup Now"
411
+ msgstr "Maak nu Backup"
412
+
413
+ #: wp/transposh_widget.php:88
414
+ #@ transposh
415
+ msgid "Transposh language selection widget"
416
+ msgstr "Transposh taalkeuze widget"
417
+
418
+ #: wp/transposh_widget.php:209
419
+ #@ transposh
420
+ msgid "Translation"
421
+ msgstr "Vertaling"
422
+
423
+ #: wp/transposh_widget.php:222
424
+ #@ transposh
425
+ msgid "Set as default language"
426
+ msgstr "Maak dit de standaardtaal"
427
+
428
+ #: wp/transposh_widget.php:255
429
+ #@ transposh
430
+ msgid "translation plugin for wordpress"
431
+ msgstr "Vertaalplugin voor Wordpress"
432
+
433
+ #: wp/transposh_widget.php:258
434
+ #@ transposh
435
+ msgid "wordpress translation plugin"
436
+ msgstr "Wordpress Vertaalplugin"
437
+
438
+ #: wp/transposh_widget.php:261
439
+ #@ transposh
440
+ msgid "translate your blog to 60+ languages"
441
+ msgstr "vertaal je blog in 60+ talen"
442
+
443
+ #: wp/transposh_widget.php:264
444
+ #@ transposh
445
+ msgid "website crowdsourcing translation plugin"
446
+ msgstr "website crowdsourcing vertaalplugin"
447
+
448
+ #: wp/transposh_widget.php:267
449
+ #@ transposh
450
+ msgid "google translate and bing translate plugin for wordpress"
451
+ msgstr "google translate en bing translate plugin voor wordpress"
452
+
453
+ #: wp/transposh_widget.php:363
454
+ #@ transposh
455
+ msgid "Style:"
456
+ msgstr "Stijl:"
457
+
458
+ #: wp/transposh_widget.php:372
459
+ #@ transposh
460
+ msgid "Effects:"
461
+ msgstr "Effecten:"
462
+
463
+ #: wp/transposh_widget.php:374
464
+ #@ transposh
465
+ msgid "Show progress bar when a client triggers automatic translation"
466
+ msgstr "Laat de voortgangsbalk zien als de gebruiker een automatische vertaling activeert"
467
+
468
+ #: wp/transposh_widget.php:374
469
+ #@ transposh
470
+ msgid "Show progress bar"
471
+ msgstr "Laat voortgangsbalk zien"
472
+
473
+ #: wp/transposh_widget.php:376
474
+ #@ transposh
475
+ msgid "Widget will allow setting this language as user default"
476
+ msgstr "Widget staat toe om dit als standaardtaal in te stellen"
477
+
478
+ #: wp/transposh_widget.php:376
479
+ #@ transposh
480
+ msgid "Allow user to set current language as default"
481
+ msgstr "Sta gebruiker toe om huidige taal als standaard in te stellen"
482
+
483
+ #: wp/transposh_widget.php:378
484
+ #@ transposh
485
+ msgid "Transposh logo will not appear on widget"
486
+ msgstr "Transposh logo niet zichtbaar bij de widget"
487
+
488
+ #: wp/transposh_widget.php:378
489
+ #@ transposh
490
+ msgid "Remove transposh logo (see <a href=\"http://transposh.org/logoterms\">terms</a>)"
491
+ msgstr "Verwijder transposh logo (zie <a href=\"http://transposh.org/logoterms\">voorwaarden</a>)"
492
+
493
+ #: wp/transposh_widget.php:381
494
+ #@ transposh
495
+ msgid "Edit interface (and progress bar) theme:"
496
+ msgstr "Kies interface (en voortgangsbalk) thema:"
497
+
498
+ #. translators: plugin header field 'Name'
499
+ #: transposh.php:0
500
+ #@ transposh
501
+ msgid "Transposh Translation Filter"
502
+ msgstr ""
503
+
504
+ #. translators: plugin header field 'PluginURI'
505
+ #. translators: plugin header field 'AuthorURI'
506
+ #: transposh.php:0
507
+ #@ transposh
508
+ msgid "http://transposh.org/"
509
+ msgstr ""
510
+
511
+ #. translators: plugin header field 'Description'
512
+ #: transposh.php:0
513
+ #@ transposh
514
+ 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>."
515
+ msgstr ""
516
+
517
+ #. translators: plugin header field 'Author'
518
+ #: transposh.php:0
519
+ #@ transposh
520
+ msgid "Team Transposh"
521
+ msgstr ""
522
+
523
+ #. translators: plugin header field 'Version'
524
+ #: transposh.php:0
525
+ #, php-format
526
+ #@ transposh
527
+ msgid "%VERSION%"
528
+ msgstr ""
529
+
530
+ #: transposh.php:836
531
+ #@ default
532
+ msgid "Settings"
533
+ msgstr ""
534
+
535
+ #: wp/transposh_admin.php:494
536
+ #@ transposh
537
+ msgid "Rewrite URLs to be search engine friendly, e.g. (http://transposh.org/<strong>en</strong>). Requires that permalinks will be enabled."
538
+ msgstr ""
539
+
540
+ #: wp/transposh_admin.php:504
541
+ #@ transposh
542
+ msgid "Push transposh scripts to footer of page instead of header, makes pages load faster. Requires that your theme should have proper footer support."
543
+ msgstr ""
544
+
545
+ #: wp/transposh_admin.php:513
546
+ #@ transposh
547
+ 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."
548
+ msgstr ""
549
+
langs/transposh-ru_RU.mo ADDED
Binary file
langs/transposh-ru_RU.po ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/transposh-translation-filter-for-wordpress\n"
5
+ "POT-Creation-Date: 2010-10-13 10:21+0000\n"
6
+ "PO-Revision-Date: 2011-01-29 17:12+0200\n"
7
+ "Last-Translator: Janis <lv111@inbox.lv>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\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: \n"
14
+ "X-Poedit-Country: \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
+ #: transposh.php:840
23
+ #@ default
24
+ msgid "Settings"
25
+ msgstr "Настройки"
26
+
27
+ #: wp/transposh_3rdparty.php:148
28
+ #, php-format
29
+ #@ buddypress
30
+ msgid "%s translated a phrase to %s with transposh:"
31
+ msgstr "%s перевёл фразу на %s используя transposh:"
32
+
33
+ #: wp/transposh_admin.php:140
34
+ #@ transposh
35
+ msgid "Transposh makes your blog translatable"
36
+ msgstr "Transposh делает ваш блог переводимым"
37
+
38
+ #: wp/transposh_admin.php:141
39
+ #@ transposh
40
+ msgid "Plugin homepage"
41
+ msgstr "Домашняя страница плагина"
42
+
43
+ #: wp/transposh_admin.php:142
44
+ #@ transposh
45
+ msgid "Frequently asked questions"
46
+ msgstr "Часто задаваемые вопросы"
47
+
48
+ #: wp/transposh_admin.php:150
49
+ #@ transposh
50
+ msgid "Transposh control center"
51
+ msgstr "Контрольный центр Transposh"
52
+
53
+ #: wp/transposh_admin.php:150
54
+ #: wp/transposh_admin.php:215
55
+ #: wp/transposh_postpublish.php:49
56
+ #: wp/transposh_postpublish.php:50
57
+ #: wp/transposh_widget.php:88
58
+ #: wp/transposh_widget.php:91
59
+ #: wp/transposh_widget.php:252
60
+ #@ transposh
61
+ msgid "Transposh"
62
+ msgstr "Transposh"
63
+
64
+ #: wp/transposh_admin.php:190
65
+ #@ transposh
66
+ msgid "About this plugin"
67
+ msgstr "О плагине"
68
+
69
+ #: wp/transposh_admin.php:191
70
+ #@ transposh
71
+ msgid "Widget settings"
72
+ msgstr "Настройки виджета"
73
+
74
+ #: wp/transposh_admin.php:192
75
+ #@ transposh
76
+ msgid "Plugin news"
77
+ msgstr "Новости плагина"
78
+
79
+ #: wp/transposh_admin.php:193
80
+ #@ transposh
81
+ msgid "Plugin stats"
82
+ msgstr "Статистика плагина"
83
+
84
+ #: wp/transposh_admin.php:194
85
+ #@ transposh
86
+ msgid "Translate all"
87
+ msgstr "Перевести всё"
88
+
89
+ #: wp/transposh_admin.php:195
90
+ #@ transposh
91
+ msgid "Supported languages"
92
+ msgstr "Поддерживаемые языки"
93
+
94
+ #: wp/transposh_admin.php:196
95
+ #@ transposh
96
+ msgid "Translation settings"
97
+ msgstr "Настройки перевода"
98
+
99
+ #: wp/transposh_admin.php:197
100
+ #@ transposh
101
+ msgid "Automatic translation settings"
102
+ msgstr "Настройки автоматического перевода"
103
+
104
+ #: wp/transposh_admin.php:198
105
+ #@ transposh
106
+ msgid "Generic settings"
107
+ msgstr "Общие настройки"
108
+
109
+ #: wp/transposh_admin.php:199
110
+ #@ transposh
111
+ msgid "Database maintenance"
112
+ msgstr "Управление базой данных"
113
+
114
+ #: wp/transposh_admin.php:208
115
+ #@ transposh
116
+ msgid "Transposh community features"
117
+ msgstr "Возможности сообщества Transposh"
118
+
119
+ #: wp/transposh_admin.php:236
120
+ #@ default
121
+ msgid "Save Changes"
122
+ msgstr "Сохранить Изменения"
123
+
124
+ #: wp/transposh_admin.php:260
125
+ #@ transposh
126
+ msgid "Problems?"
127
+ msgstr "Проблемы?"
128
+
129
+ #: wp/transposh_admin.php:278
130
+ #@ transposh
131
+ msgid "Plugin Homepage"
132
+ msgstr "Домашняя страница плагина"
133
+
134
+ #: wp/transposh_admin.php:279
135
+ #@ transposh
136
+ msgid "Suggest a Feature"
137
+ msgstr "Предложить функцию"
138
+
139
+ #: wp/transposh_admin.php:281
140
+ #@ transposh
141
+ msgid "Report a Bug"
142
+ msgstr "Сообщить об ошибке"
143
+
144
+ #: wp/transposh_admin.php:302
145
+ #@ transposh
146
+ msgid "Translate by clicking the button below"
147
+ msgstr "Переведите, нажав кнопку ниже"
148
+
149
+ #: wp/transposh_admin.php:303
150
+ #@ transposh
151
+ msgid "Translate All Now"
152
+ msgstr "Перевести всё сейчас"
153
+
154
+ #: wp/transposh_admin.php:360
155
+ #@ transposh
156
+ msgid "Default Language (drag another language here to make it default)"
157
+ msgstr "Основной язык (перетащите сюда другой язык, чтобы сделать его основным)"
158
+
159
+ #: wp/transposh_admin.php:367
160
+ #@ transposh
161
+ msgid "Available Languages (Click to toggle language state - Drag to sort in the widget)"
162
+ msgstr "Доступные языки (Нажмите для переключения состояния языка - Перетащите, чтобы сортировать в виджете)"
163
+
164
+ #: wp/transposh_admin.php:377
165
+ #@ transposh
166
+ msgid "Language supported by google translate"
167
+ msgstr "Язык, поддерживаемый переводчиком google"
168
+
169
+ #: wp/transposh_admin.php:379
170
+ #@ transposh
171
+ msgid "Language supported by bing translate"
172
+ msgstr "Язык, поддерживаемый переводчиком bing"
173
+
174
+ #: wp/transposh_admin.php:383
175
+ #@ transposh
176
+ msgid "Language is written from right to left"
177
+ msgstr "Язык написан справа налево"
178
+
179
+ #: wp/transposh_admin.php:388
180
+ #@ transposh
181
+ msgid "Display options:"
182
+ msgstr "Опции отображения:"
183
+
184
+ #: wp/transposh_admin.php:389
185
+ #@ transposh
186
+ msgid "Toggle names of languages between English and Original"
187
+ msgstr "Переключить названия языков с английского на оригинал"
188
+
189
+ #: wp/transposh_admin.php:390
190
+ #@ transposh
191
+ msgid "Make all languages active"
192
+ msgstr "Сделать все языки активными"
193
+
194
+ #: wp/transposh_admin.php:391
195
+ #@ transposh
196
+ msgid "Sort by language name"
197
+ msgstr "Сортировать по названию языка"
198
+
199
+ #: wp/transposh_admin.php:392
200
+ #@ transposh
201
+ msgid "Sort by lSO code"
202
+ msgstr "Сортировать по коду lSO"
203
+
204
+ #: wp/transposh_admin.php:393
205
+ #@ transposh
206
+ msgid "Legend:"
207
+ msgstr "Обозначения:"
208
+
209
+ #: wp/transposh_admin.php:393
210
+ #@ transposh
211
+ msgid "Green - active"
212
+ msgstr "Зеленый - активный"
213
+
214
+ #: wp/transposh_admin.php:393
215
+ #@ transposh
216
+ msgid "Yellow - translateable (only translators will see this language)"
217
+ msgstr "Желтый - переводимый (только переводчики увидят этот язык)"
218
+
219
+ #: wp/transposh_admin.php:393
220
+ #@ transposh
221
+ msgid "blank - inactive"
222
+ msgstr "пустой - неактивный"
223
+
224
+ #: wp/transposh_admin.php:410
225
+ #@ transposh
226
+ msgid "Who can translate ?"
227
+ msgstr "Кто может переводить?"
228
+
229
+ #: wp/transposh_admin.php:417
230
+ #@ transposh
231
+ msgid "Anonymous"
232
+ msgstr "Аноним"
233
+
234
+ #: wp/transposh_admin.php:423
235
+ #@ transposh
236
+ msgid "Enable default language translation"
237
+ msgstr "Включить возможность перевода основного языка"
238
+
239
+ #: wp/transposh_admin.php:425
240
+ #@ transposh
241
+ msgid "Allow translation of default language - useful for sites with more than one major language"
242
+ msgstr "Разрешить возможность перевода основного языка - полезно для сайтов с двумя и более основными языками"
243
+
244
+ #: wp/transposh_admin.php:432
245
+ #@ transposh
246
+ msgid "Enable search in translated languages"
247
+ msgstr "Включить поиск на переведенных языках"
248
+
249
+ #: wp/transposh_admin.php:434
250
+ #@ transposh
251
+ msgid "Allow search of translated languages, in those languages (and the original language)"
252
+ msgstr "Включить поиск на переведенных языках, на этих языках (и языке-оригинале)"
253
+
254
+ #: wp/transposh_admin.php:441
255
+ #@ transposh
256
+ msgid "Enable url translation"
257
+ msgstr "Включить перевод url"
258
+
259
+ #: wp/transposh_admin.php:441
260
+ #: wp/transposh_admin.php:450
261
+ #@ transposh
262
+ msgid "experimental"
263
+ msgstr "экспериментальный"
264
+
265
+ #: wp/transposh_admin.php:443
266
+ #@ transposh
267
+ msgid "Allow translation of permalinks and urls"
268
+ msgstr "Разрешить перевод пермалинков и URL-адресов"
269
+
270
+ #: wp/transposh_admin.php:450
271
+ #@ transposh
272
+ msgid "Enable gettext integration"
273
+ msgstr "Включить интеграцию gettext"
274
+
275
+ #: wp/transposh_admin.php:452
276
+ #@ transposh
277
+ msgid "Enable integration of Transposh with existing gettext interface (.po/.mo files)"
278
+ msgstr "Включить интеграцию Transposh и существующего интерфейса gettext (файлы .po / .mo)"
279
+
280
+ #: wp/transposh_admin.php:461
281
+ #@ transposh
282
+ msgid "Enable automatic translation"
283
+ msgstr "Включить автоматический перевод"
284
+
285
+ #: wp/transposh_admin.php:463
286
+ #@ transposh
287
+ msgid "Allow automatic translation of pages"
288
+ msgstr "Разрешить автоматический перевод страниц"
289
+
290
+ #: wp/transposh_admin.php:469
291
+ #@ transposh
292
+ msgid "Enable automatic translation after posting"
293
+ msgstr "Включение автоматического перевода после публикации"
294
+
295
+ #: wp/transposh_admin.php:471
296
+ #@ transposh
297
+ msgid "Do automatic translation immediately after a post has been published"
298
+ msgstr "Производить автоматический перевод при публикации"
299
+
300
+ #: wp/transposh_admin.php:476
301
+ #@ transposh
302
+ msgid "Select preferred auto translation engine"
303
+ msgstr "Выбрать предпочтительный двигатель авто перевода"
304
+
305
+ #: wp/transposh_admin.php:477
306
+ #@ transposh
307
+ msgid "Translation engine:"
308
+ msgstr "Двигатель перевода:"
309
+
310
+ #: wp/transposh_admin.php:479
311
+ #@ transposh
312
+ msgid "Google"
313
+ msgstr "Google"
314
+
315
+ #: wp/transposh_admin.php:480
316
+ #@ transposh
317
+ msgid "Bing"
318
+ msgstr "Bing"
319
+
320
+ #: wp/transposh_admin.php:490
321
+ #@ transposh
322
+ msgid "Rewrite URLs"
323
+ msgstr "Переписать URL-адреса"
324
+
325
+ #: wp/transposh_admin.php:501
326
+ #@ transposh
327
+ msgid "Add scripts to footer"
328
+ msgstr "Добавить коды в дно сайта"
329
+
330
+ #: wp/transposh_admin.php:510
331
+ #@ transposh
332
+ msgid "Auto detect language for users"
333
+ msgstr "Автоматическое определение языка для пользователей"
334
+
335
+ #: wp/transposh_admin.php:523
336
+ #@ transposh
337
+ msgid "Delete all automated translations"
338
+ msgstr "Удалить все автоматизированные переводы"
339
+
340
+ #: wp/transposh_admin.php:524
341
+ #@ transposh
342
+ msgid "Delete automated translations older than 14 days"
343
+ msgstr "Удалить автоматизированные переводы старше 14 дней"
344
+
345
+ #: wp/transposh_admin.php:529
346
+ #@ transposh
347
+ msgid "Backup service for human translation"
348
+ msgstr "Сервис резервных копий для человеческого перевода"
349
+
350
+ #: wp/transposh_admin.php:530
351
+ #@ transposh
352
+ msgid "Enable daily backup"
353
+ msgstr "Включить ежедневное резервное копирование"
354
+
355
+ #: wp/transposh_admin.php:531
356
+ #@ transposh
357
+ msgid "Enable live backup"
358
+ msgstr "Включить живое резервное копирование"
359
+
360
+ #: wp/transposh_admin.php:532
361
+ #@ transposh
362
+ msgid "Disable backup (Can be run manually by clicking the button below)"
363
+ msgstr "Отключение резервного копирования (может быть запущен вручную, нажав кнопку ниже)"
364
+
365
+ #: wp/transposh_admin.php:533
366
+ #@ transposh
367
+ msgid "Service Key:"
368
+ msgstr "Сервис-ключ:"
369
+
370
+ #: wp/transposh_admin.php:533
371
+ #@ transposh
372
+ msgid "How to restore?"
373
+ msgstr "Как восстановить?"
374
+
375
+ #: wp/transposh_admin.php:535
376
+ #@ transposh
377
+ msgid "Do Backup Now"
378
+ msgstr "Сделать резервную копию сейчас"
379
+
380
+ #: wp/transposh_db.php:640
381
+ #@ transposh
382
+ msgid "Database stats"
383
+ msgstr "Статистика базы данных"
384
+
385
+ #: wp/transposh_db.php:645
386
+ #, php-format
387
+ #@ transposh
388
+ msgid "Total of <strong style=\"color:red\">%s</strong> translated phrases."
389
+ msgstr "Сумма переведенных фраз <strong style=\"color:red\">%s</strong>."
390
+
391
+ #: wp/transposh_db.php:652
392
+ #, php-format
393
+ #@ transposh
394
+ msgid "<strong>%1s</strong> has <strong style=\"color:red\">%2s</strong> human translated phrases."
395
+ msgstr "<strong>%1s</strong> насчитывает <strong style=\"color:red\">%2s</strong> фраз человеческого перевода."
396
+
397
+ #: wp/transposh_db.php:655
398
+ #@ transposh
399
+ msgid "Recent activity"
400
+ msgstr "Последние действия"
401
+
402
+ #: wp/transposh_db.php:660
403
+ #, php-format
404
+ #@ transposh
405
+ 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>\""
406
+ msgstr "<strong>%1s</strong><br/>пользователь <strong>%2s</strong> перевел<br/>\"<strong>%3s</strong>\"<br/>на <strong style=\"color:red\">%4s</strong><br/>\"<strong>%5s</strong>\""
407
+
408
+ #: wp/transposh_widget.php:88
409
+ #@ transposh
410
+ msgid "Transposh language selection widget"
411
+ msgstr "виджет выбора языка Transposh"
412
+
413
+ #: wp/transposh_widget.php:209
414
+ #@ transposh
415
+ msgid "Translation"
416
+ msgstr "Перевод"
417
+
418
+ #: wp/transposh_widget.php:222
419
+ #@ transposh
420
+ msgid "Set as default language"
421
+ msgstr "Сделать основным языком"
422
+
423
+ #: wp/transposh_widget.php:363
424
+ #@ transposh
425
+ msgid "Style:"
426
+ msgstr "Стиль:"
427
+
428
+ #: wp/transposh_widget.php:372
429
+ #@ transposh
430
+ msgid "Effects:"
431
+ msgstr "Эффекты:"
432
+
433
+ #: wp/transposh_widget.php:374
434
+ #@ transposh
435
+ msgid "Show progress bar when a client triggers automatic translation"
436
+ msgstr "Показать индикатор продвижения, когда пользователь вызывает автоматический перевод"
437
+
438
+ #: wp/transposh_widget.php:374
439
+ #@ transposh
440
+ msgid "Show progress bar"
441
+ msgstr "Показать индикатор продвижения"
442
+
443
+ #: wp/transposh_widget.php:376
444
+ #@ transposh
445
+ msgid "Widget will allow setting this language as user default"
446
+ msgstr "Виджет позволит установить пользователю язык по умолчанию"
447
+
448
+ #: wp/transposh_widget.php:376
449
+ #@ transposh
450
+ msgid "Allow user to set current language as default"
451
+ msgstr "Разрешить пользователю установить текущий язык основным"
452
+
453
+ #: wp/transposh_widget.php:378
454
+ #@ transposh
455
+ msgid "Transposh logo will not appear on widget"
456
+ msgstr "логотип Transposh не будет отображаться в виджете"
457
+
458
+ #: wp/transposh_widget.php:378
459
+ #@ transposh
460
+ msgid "Remove transposh logo (see <a href=\"http://transposh.org/logoterms\">terms</a>)"
461
+ msgstr "Убрать логотип Transposh (смотрите <a href=\"http://transposh.org/logoterms\">условия</a>)"
462
+
463
+ #. translators: plugin header field 'Name'
464
+ #: transposh.php:0
465
+ #@ transposh
466
+ msgid "Transposh Translation Filter"
467
+ msgstr ""
468
+
469
+ #. translators: plugin header field 'PluginURI'
470
+ #. translators: plugin header field 'AuthorURI'
471
+ #: transposh.php:0
472
+ #@ transposh
473
+ msgid "http://transposh.org/"
474
+ msgstr ""
475
+
476
+ #. translators: plugin header field 'Description'
477
+ #: transposh.php:0
478
+ #@ transposh
479
+ 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>."
480
+ msgstr ""
481
+
482
+ #. translators: plugin header field 'Author'
483
+ #: transposh.php:0
484
+ #@ transposh
485
+ msgid "Team Transposh"
486
+ msgstr ""
487
+
488
+ #. translators: plugin header field 'Version'
489
+ #: transposh.php:0
490
+ #, php-format
491
+ #@ transposh
492
+ msgid "%VERSION%"
493
+ msgstr ""
494
+
495
+ #: wp/transposh_admin.php:381
496
+ #@ transposh
497
+ msgid "Language supported by apertium translate"
498
+ msgstr ""
499
+
500
+ #: wp/transposh_admin.php:494
501
+ #@ transposh
502
+ msgid "Rewrite URLs to be search engine friendly, e.g. (http://transposh.org/<strong>en</strong>). Requires that permalinks will be enabled."
503
+ msgstr ""
504
+
505
+ #: wp/transposh_admin.php:504
506
+ #@ transposh
507
+ msgid "Push transposh scripts to footer of page instead of header, makes pages load faster. Requires that your theme should have proper footer support."
508
+ msgstr ""
509
+
510
+ #: wp/transposh_admin.php:513
511
+ #@ transposh
512
+ 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."
513
+ msgstr ""
514
+
515
+ #: wp/transposh_admin.php:525
516
+ #@ transposh
517
+ msgid "Attempt to fix errors caused by previous versions - please backup first"
518
+ msgstr ""
519
+
520
+ #: wp/transposh_widget.php:255
521
+ #@ transposh
522
+ msgid "translation plugin for wordpress"
523
+ msgstr ""
524
+
525
+ #: wp/transposh_widget.php:258
526
+ #@ transposh
527
+ msgid "wordpress translation plugin"
528
+ msgstr ""
529
+
530
+ #: wp/transposh_widget.php:261
531
+ #@ transposh
532
+ msgid "translate your blog to 60+ languages"
533
+ msgstr ""
534
+
535
+ #: wp/transposh_widget.php:264
536
+ #@ transposh
537
+ msgid "website crowdsourcing translation plugin"
538
+ msgstr ""
539
+
540
+ #: wp/transposh_widget.php:267
541
+ #@ transposh
542
+ msgid "google translate and bing translate plugin for wordpress"
543
+ msgstr ""
544
+
545
+ #: wp/transposh_widget.php:381
546
+ #@ transposh
547
+ msgid "Edit interface (and progress bar) theme:"
548
+ msgstr ""
549
+
langs/transposh.pot CHANGED
@@ -1,54 +1,52 @@
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
@@ -67,12 +65,6 @@ msgstr ""
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 ""
@@ -164,261 +156,253 @@ 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 ""
 
 
 
 
 
 
 
 
 
1
  # Copyright (C) 2010
2
  # This file is distributed under the same license as the package.
 
 
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/transposh-translation-filter-"
7
  "for-wordpress\n"
8
+ "POT-Creation-Date: 2011-01-16 21:56:35+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
15
 
16
+ #: wp/transposh_db.php:638
17
+ msgid "Database stats"
 
18
  msgstr ""
19
 
20
+ #: wp/transposh_db.php:643
21
+ msgid "Total of <strong style=\"color:red\">%s</strong> translated phrases."
 
22
  msgstr ""
23
 
24
+ #: wp/transposh_db.php:650
25
+ msgid ""
26
+ "<strong>%1s</strong> has <strong style=\"color:red\">%2s</strong> human "
27
+ "translated phrases."
28
  msgstr ""
29
 
30
+ #: wp/transposh_db.php:653
31
+ msgid "Recent activity"
 
32
  msgstr ""
33
 
34
+ #: wp/transposh_db.php:658
35
+ msgid ""
36
+ "On <strong>%1s</strong><br/>user <strong>%2s</strong> translated<br/>"
37
+ "\"<strong>%3s</strong>\"<br/>to <strong style=\"color:red\">%4s</strong><br/>"
38
+ "\"<strong>%5s</strong>\""
39
  msgstr ""
40
 
41
+ #: wp/transposh_3rdparty.php:147
42
+ msgid "%s translated a phrase to %s with transposh:"
43
  msgstr ""
44
 
45
+ #: wp/transposh_postpublish.php:49 wp/transposh_postpublish.php:50
46
+ #: wp/transposh_admin.php:150 wp/transposh_admin.php:215
47
+ #: wp/transposh_widget.php:88 wp/transposh_widget.php:91
48
+ #: wp/transposh_widget.php:252
49
+ msgid "Transposh"
50
  msgstr ""
51
 
52
  #: wp/transposh_admin.php:140
65
  msgid "Transposh control center"
66
  msgstr ""
67
 
 
 
 
 
 
 
68
  #: wp/transposh_admin.php:190
69
  msgid "About this plugin"
70
  msgstr ""
156
  msgstr ""
157
 
158
  #: wp/transposh_admin.php:381
159
+ msgid "Language supported by apertium translate"
160
+ msgstr ""
161
+
162
+ #: wp/transposh_admin.php:383
163
  msgid "Language is written from right to left"
164
  msgstr ""
165
 
166
+ #: wp/transposh_admin.php:388
167
  msgid "Display options:"
168
  msgstr ""
169
 
170
+ #: wp/transposh_admin.php:389
171
  msgid "Toggle names of languages between English and Original"
172
  msgstr ""
173
 
174
+ #: wp/transposh_admin.php:390
175
  msgid "Make all languages active"
176
  msgstr ""
177
 
178
+ #: wp/transposh_admin.php:391
179
  msgid "Sort by language name"
180
  msgstr ""
181
 
182
+ #: wp/transposh_admin.php:392
183
  msgid "Sort by lSO code"
184
  msgstr ""
185
 
186
+ #: wp/transposh_admin.php:393
187
  msgid "Legend:"
188
  msgstr ""
189
 
190
+ #: wp/transposh_admin.php:393
191
  msgid "Green - active"
192
  msgstr ""
193
 
194
+ #: wp/transposh_admin.php:393
195
  msgid "Yellow - translateable (only translators will see this language)"
196
  msgstr ""
197
 
198
+ #: wp/transposh_admin.php:393
199
  msgid "blank - inactive"
200
  msgstr ""
201
 
202
+ #: wp/transposh_admin.php:410
203
  msgid "Who can translate ?"
204
  msgstr ""
205
 
206
+ #: wp/transposh_admin.php:417
207
  msgid "Anonymous"
208
  msgstr ""
209
 
210
+ #: wp/transposh_admin.php:423
211
  msgid "Enable default language translation"
212
  msgstr ""
213
 
214
+ #: wp/transposh_admin.php:425
215
  msgid ""
216
  "Allow translation of default language - useful for sites with more than one "
217
  "major language"
218
  msgstr ""
219
 
220
+ #: wp/transposh_admin.php:432
221
  msgid "Enable search in translated languages"
222
  msgstr ""
223
 
224
+ #: wp/transposh_admin.php:434
225
  msgid ""
226
  "Allow search of translated languages, in those languages (and the original "
227
  "language)"
228
  msgstr ""
229
 
230
+ #: wp/transposh_admin.php:441
231
  msgid "Enable url translation"
232
  msgstr ""
233
 
234
+ #: wp/transposh_admin.php:441 wp/transposh_admin.php:450
235
  msgid "experimental"
236
  msgstr ""
237
 
238
+ #: wp/transposh_admin.php:443
239
  msgid "Allow translation of permalinks and urls"
240
  msgstr ""
241
 
242
+ #: wp/transposh_admin.php:450
243
  msgid "Enable gettext integration"
244
  msgstr ""
245
 
246
+ #: wp/transposh_admin.php:452
247
  msgid ""
248
  "Enable integration of Transposh with existing gettext interface (.po/.mo "
249
  "files)"
250
  msgstr ""
251
 
252
+ #: wp/transposh_admin.php:461
253
  msgid "Enable automatic translation"
254
  msgstr ""
255
 
256
+ #: wp/transposh_admin.php:463
257
  msgid "Allow automatic translation of pages"
258
  msgstr ""
259
 
260
+ #: wp/transposh_admin.php:469
261
  msgid "Enable automatic translation after posting"
262
  msgstr ""
263
 
264
+ #: wp/transposh_admin.php:471
265
  msgid "Do automatic translation immediately after a post has been published"
266
  msgstr ""
267
 
268
+ #: wp/transposh_admin.php:476
269
  msgid "Select preferred auto translation engine"
270
  msgstr ""
271
 
272
+ #: wp/transposh_admin.php:477
273
  msgid "Translation engine:"
274
  msgstr ""
275
 
276
+ #: wp/transposh_admin.php:479
277
  msgid "Google"
278
  msgstr ""
279
 
280
+ #: wp/transposh_admin.php:480
281
  msgid "Bing"
282
  msgstr ""
283
 
 
 
 
 
284
  #: wp/transposh_admin.php:490
285
+ msgid "Rewrite URLs"
 
 
 
 
286
  msgstr ""
287
 
288
  #: wp/transposh_admin.php:501
289
+ msgid "Add scripts to footer"
 
 
 
 
 
 
290
  msgstr ""
291
 
292
  #: wp/transposh_admin.php:510
293
+ msgid "Auto detect language for users"
 
 
294
  msgstr ""
295
 
296
+ #: wp/transposh_admin.php:523
297
  msgid "Delete all automated translations"
298
  msgstr ""
299
 
300
+ #: wp/transposh_admin.php:524
301
  msgid "Delete automated translations older than 14 days"
302
  msgstr ""
303
 
304
+ #: wp/transposh_admin.php:525
305
+ msgid "Attempt to fix errors caused by previous versions - please backup first"
306
+ msgstr ""
307
+
308
+ #: wp/transposh_admin.php:529
309
  msgid "Backup service for human translation"
310
  msgstr ""
311
 
312
+ #: wp/transposh_admin.php:530
313
  msgid "Enable daily backup"
314
  msgstr ""
315
 
316
+ #: wp/transposh_admin.php:531
317
  msgid "Enable live backup"
318
  msgstr ""
319
 
320
+ #: wp/transposh_admin.php:532
321
  msgid "Disable backup (Can be run manually by clicking the button below)"
322
  msgstr ""
323
 
324
+ #: wp/transposh_admin.php:533
325
  msgid "Service Key:"
326
  msgstr ""
327
 
328
+ #: wp/transposh_admin.php:533
329
  msgid "How to restore?"
330
  msgstr ""
331
 
332
+ #: wp/transposh_admin.php:535
333
  msgid "Do Backup Now"
334
  msgstr ""
335
 
336
+ #: wp/transposh_widget.php:88
337
+ msgid "Transposh language selection widget"
338
  msgstr ""
339
 
340
+ #: wp/transposh_widget.php:209
341
+ msgid "Translation"
 
342
  msgstr ""
343
 
344
+ #: wp/transposh_widget.php:222
345
+ msgid "Set as default language"
 
 
 
346
  msgstr ""
347
 
348
+ #: wp/transposh_widget.php:255
349
+ msgid "translation plugin for wordpress"
350
  msgstr ""
351
 
352
+ #: wp/transposh_widget.php:258
353
+ msgid "wordpress translation plugin"
 
 
 
 
354
  msgstr ""
355
 
356
+ #: wp/transposh_widget.php:261
357
+ msgid "translate your blog to 60+ languages"
358
  msgstr ""
359
 
360
+ #: wp/transposh_widget.php:264
361
+ msgid "website crowdsourcing translation plugin"
362
  msgstr ""
363
 
364
+ #: wp/transposh_widget.php:267
365
+ msgid "google translate and bing translate plugin for wordpress"
366
  msgstr ""
367
 
368
+ #: wp/transposh_widget.php:363
369
  msgid "Style:"
370
  msgstr ""
371
 
372
+ #: wp/transposh_widget.php:372
373
  msgid "Effects:"
374
  msgstr ""
375
 
376
+ #: wp/transposh_widget.php:374
377
  msgid "Show progress bar when a client triggers automatic translation"
378
  msgstr ""
379
 
380
+ #: wp/transposh_widget.php:374
381
  msgid "Show progress bar"
382
  msgstr ""
383
 
384
+ #: wp/transposh_widget.php:376
385
  msgid "Widget will allow setting this language as user default"
386
  msgstr ""
387
 
388
+ #: wp/transposh_widget.php:376
389
  msgid "Allow user to set current language as default"
390
  msgstr ""
391
 
392
+ #: wp/transposh_widget.php:378
393
  msgid "Transposh logo will not appear on widget"
394
  msgstr ""
395
 
396
+ #: wp/transposh_widget.php:378
397
  msgid ""
398
  "Remove transposh logo (see <a href=\"http://transposh.org/logoterms\">terms</"
399
  "a>)"
400
  msgstr ""
401
+
402
+ #: wp/transposh_widget.php:381
403
+ msgid "Edit interface (and progress bar) theme:"
404
+ msgstr ""
405
+
406
+ #: transposh.php:771
407
+ msgid "Settings"
408
+ 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.1
7
- Stable tag: 0.7.0
8
 
9
  Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
10
 
@@ -198,8 +198,24 @@ This version provides integration with google-sitemaps-xml and wp-super-cache
198
  = 0.3.9 =
199
  This version allows sorting of languages within the widget
200
 
 
 
 
 
 
 
 
201
  == Changelog ==
 
 
 
 
 
 
 
 
202
  = 2011/01/11 - 0.7.0 =
 
203
  * Revamped edit interface
204
  * Allow simple localization of interface
205
  * Go to previous/next translation item
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.1
7
+ Stable tag: 0.7.1
8
 
9
  Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
10
 
198
  = 0.3.9 =
199
  This version allows sorting of languages within the widget
200
 
201
+ == Credits ==
202
+ = Translation credits =
203
+ * Dutch translation by [Roland Nieuwendijk](http://blog.imagitect.nl/)
204
+ * Russian translation by Romans Matusevics
205
+ * Hebrew translation by [Amir](http://colnect.com/he)
206
+ * Frontend Spanish translation by [Ignacio](http://colnect.com/es/collectors/collector/iflvico)
207
+
208
  == Changelog ==
209
+ = 2011/01/30 - 0.7.1 =
210
+ * Fix excerpt for tp_language marked posts
211
+ * Added Dutch translation by [Roland Nieuwendijk](http://blog.imagitect.nl/)
212
+ * Added Russian translation by Romans Matusevics
213
+ * Dramatically reduce number of database queries on translatable urls
214
+ * Fix auto translate with no anonymous translation support for non google engines
215
+ * Fix buddypress (and hopefully other) redirections on single activities
216
+ * Fix regression with after post translation and translate all
217
  = 2011/01/11 - 0.7.0 =
218
+ [youtube http://www.youtube.com/watch?v=ktGtPb6SB34]
219
  * Revamped edit interface
220
  * Allow simple localization of interface
221
  * Go to previous/next translation item
transposh.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: http://transposh.org/
6
  Description: Translation filter for WordPress, After enabling please set languages at the <a href="options-general.php?page=transposh">the options page</a> Want to help? visit our development site at <a href="http://trac.transposh.org/">trac.transposh.org</a>.
7
  Author: Team Transposh
8
- Version: 0.7.0
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
  Text Domain: transposh
@@ -13,14 +13,14 @@
13
  */
14
 
15
  /*
16
- * Transposh v0.7.0
17
  * http://transposh.org/
18
  *
19
  * Copyright 2011, Team Transposh
20
  * Licensed under the GPL Version 2 or higher.
21
  * http://transposh.org/license
22
  *
23
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
24
  */
25
 
26
  //avoid direct calls to this file where wp core files not present
@@ -88,6 +88,8 @@ class transposh_plugin {
88
  private $got_request = false;
89
  /** @var might be that page is json... */
90
  private $attempt_json = false;
 
 
91
 
92
  /**
93
  * class constructor
@@ -144,6 +146,7 @@ class transposh_plugin {
144
  // comment_moderation_text - future filter TODO
145
  // full post wrapping (should happen late)
146
  add_filter('the_content', array(&$this, 'post_content_wrap'), 9999);
 
147
  add_filter('the_title', array(&$this, 'post_wrap'), 9999, 2);
148
  // allow to mark the language?
149
  // add_action('admin_menu', array(&$this, 'transposh_post_language'));
@@ -160,7 +163,7 @@ class transposh_plugin {
160
  }
161
 
162
  // debug function for bad redirects
163
- // add_filter('wp_redirect', array(&$this, 'on_wp_redirect'), 10, 2);
164
  add_filter('redirect_canonical', array(&$this, 'on_redirect_canonical'), 10, 2);
165
  //
166
  // FUTURE add_action('update-custom_transposh', array(&$this, 'update'));
@@ -174,13 +177,36 @@ class transposh_plugin {
174
  register_deactivation_hook(__FILE__, array(&$this, 'plugin_deactivate'));
175
  }
176
 
177
- // function on_wp_redirect($location, $status) {
178
- //
179
- //
180
- // $trace = debug_backtrace();
181
- //
182
- // return $location;
183
- // }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
  /**
186
  * Function to fix canonical redirection for some translated urls (such as tags with params)
@@ -262,9 +288,9 @@ class transposh_plugin {
262
  // the target language, we are able to avoid nasty redirection loops
263
  if (is_404 ()) {
264
  global $wp;
265
- if (file_exists(ABSPATH . $wp->query_vars['pagename'])) {
266
 
267
- wp_redirect('/' . $wp->query_vars['pagename'], 301);
268
  }
269
  }
270
 
@@ -275,6 +301,7 @@ class transposh_plugin {
275
  $parse->fetch_translate_func = array(&$this->database, 'fetch_translation');
276
  $parse->prefetch_translate_func = array(&$this->database, 'prefetch_translations');
277
  $parse->url_rewrite_func = array(&$this, 'rewrite_url');
 
278
  $parse->dir_rtl = (in_array($this->target_language, transposh_consts::$rtl_languages));
279
  $parse->lang = $this->target_language;
280
  $parse->default_lang = $this->options->is_default_language($this->target_language);
@@ -448,7 +475,7 @@ class transposh_plugin {
448
  //TODO - fix wrt translation
449
  $url = transposh_utils::cleanup_url($_SERVER["REQUEST_URI"], $this->home_url);
450
 
451
- wp_redirect($url);
452
  exit;
453
  }
454
  } else {
@@ -460,7 +487,7 @@ class transposh_plugin {
460
  //TODO - fix wrt translation
461
  $url = transposh_utils::cleanup_url($_SERVER['REQUEST_URI'], $this->home_url);
462
 
463
- wp_redirect($url);
464
  exit;
465
  }
466
  }
@@ -476,7 +503,7 @@ class transposh_plugin {
476
  add_action('posts_where_request', array(&$this, 'posts_where_request'));
477
  }
478
  if (transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url) && !transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url)) {
479
- wp_redirect(transposh_utils::rewrite_url_lang_param($_SERVER["REQUEST_URI"], $this->home_url, $this->enable_permalinks_rewrite, transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url), false)); //."&stop=y");
480
  exit;
481
  }
482
  }
@@ -723,6 +750,46 @@ class transposh_plugin {
723
  return $this->options->is_editable_language($this->target_language);
724
  }
725
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
726
  /**
727
  * Callback from parser allowing to overide the global setting of url rewriting using permalinks.
728
  * Some urls should be modified only by adding parameters and should be identified by this
@@ -733,11 +800,11 @@ class transposh_plugin {
733
  function rewrite_url($href) {
734
  $use_params = FALSE;
735
 
736
- // fix what might be messed up
737
  $href = str_replace(array(TP_GTXT_BRK, TP_GTXT_IBRK, TP_GTXT_BRK_CLOSER, TP_GTXT_IBRK_CLOSER), '', $href);
738
 
739
  // Ignore urls not from this site
740
- if (stripos($href, $this->home_url) === FALSE) {
741
  return $href;
742
  }
743
 
@@ -746,7 +813,7 @@ class transposh_plugin {
746
  if (stripos($href, '/wp-admin') !== FALSE ||
747
  stripos($href, WP_CONTENT_URL) !== FALSE ||
748
  stripos($href, '/wp-login') !== FALSE ||
749
- stripos($href, '/.php') !== FALSE) {
750
  return $href;
751
  }
752
  $use_params = !$this->enable_permalinks_rewrite;
@@ -888,6 +955,9 @@ class transposh_plugin {
888
  $comment_lang = get_comment_meta(get_comment_ID(), 'tp_language', true);
889
  if ($comment_lang) {
890
  $text = "<span lang =\"$comment_lang\">" . $text . "</span>";
 
 
 
891
  }
892
 
893
  return $text;
@@ -904,6 +974,9 @@ class transposh_plugin {
904
  $lang = get_post_meta($GLOBALS['id'], 'tp_language', true);
905
  if ($lang) {
906
  $text = "<span lang =\"$lang\">" . $text . "</span>";
 
 
 
907
  }
908
  return $text;
909
  }
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.7.1
9
  Author URI: http://transposh.org/
10
  License: GPL (http://www.gnu.org/licenses/gpl.txt)
11
  Text Domain: transposh
13
  */
14
 
15
  /*
16
+ * Transposh v0.7.1
17
  * http://transposh.org/
18
  *
19
  * Copyright 2011, Team Transposh
20
  * Licensed under the GPL Version 2 or higher.
21
  * http://transposh.org/license
22
  *
23
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
24
  */
25
 
26
  //avoid direct calls to this file where wp core files not present
88
  private $got_request = false;
89
  /** @var might be that page is json... */
90
  private $attempt_json = false;
91
+ /** @var boolean Is the wp_redirect being called by transposh? */
92
+ private $transposh_redirect = false;
93
 
94
  /**
95
  * class constructor
146
  // comment_moderation_text - future filter TODO
147
  // full post wrapping (should happen late)
148
  add_filter('the_content', array(&$this, 'post_content_wrap'), 9999);
149
+ add_filter('the_excerpt', array(&$this, 'post_content_wrap'), 9999);
150
  add_filter('the_title', array(&$this, 'post_wrap'), 9999, 2);
151
  // allow to mark the language?
152
  // add_action('admin_menu', array(&$this, 'transposh_post_language'));
163
  }
164
 
165
  // debug function for bad redirects
166
+ add_filter('wp_redirect', array(&$this, 'on_wp_redirect'), 10, 2);
167
  add_filter('redirect_canonical', array(&$this, 'on_redirect_canonical'), 10, 2);
168
  //
169
  // FUTURE add_action('update-custom_transposh', array(&$this, 'update'));
177
  register_deactivation_hook(__FILE__, array(&$this, 'plugin_deactivate'));
178
  }
179
 
180
+ /**
181
+ * Attempt to fix a wp_redirect being called by someone else to include the language
182
+ * hoping for no cycles
183
+ * @param string $location
184
+ * @param int $status
185
+ * @return string
186
+ */
187
+ function on_wp_redirect($location, $status) {
188
+ // no point in mangling redirection if its our own or its the default language
189
+ if ($this->transposh_redirect) return $location;
190
+ if ($this->options->is_default_language($this->target_language))
191
+ return $location;
192
+
193
+ // $trace = debug_backtrace();
194
+ //
195
+ //
196
+ $location = $this->rewrite_url($location);
197
+ return $location;
198
+ }
199
+
200
+ /**
201
+ * Internally used by transposh redirection, to avoid being rewritten by self
202
+ * assuming we know what we are doing when redirecting
203
+ * @param string $location
204
+ * @param int $status
205
+ */
206
+ function tp_redirect($location, $status = 302) {
207
+ $this->transposh_redirect = true;
208
+ wp_redirect($location, $status);
209
+ }
210
 
211
  /**
212
  * Function to fix canonical redirection for some translated urls (such as tags with params)
288
  // the target language, we are able to avoid nasty redirection loops
289
  if (is_404 ()) {
290
  global $wp;
291
+ if (isset($wp->query_vars['pagename']) && file_exists(ABSPATH . $wp->query_vars['pagename'])) { // Hmm
292
 
293
+ $this->tp_redirect('/' . $wp->query_vars['pagename'], 301);
294
  }
295
  }
296
 
301
  $parse->fetch_translate_func = array(&$this->database, 'fetch_translation');
302
  $parse->prefetch_translate_func = array(&$this->database, 'prefetch_translations');
303
  $parse->url_rewrite_func = array(&$this, 'rewrite_url');
304
+ $parse->split_url_func = array(&$this, 'split_url');
305
  $parse->dir_rtl = (in_array($this->target_language, transposh_consts::$rtl_languages));
306
  $parse->lang = $this->target_language;
307
  $parse->default_lang = $this->options->is_default_language($this->target_language);
475
  //TODO - fix wrt translation
476
  $url = transposh_utils::cleanup_url($_SERVER["REQUEST_URI"], $this->home_url);
477
 
478
+ $this->tp_redirect($url);
479
  exit;
480
  }
481
  } else {
487
  //TODO - fix wrt translation
488
  $url = transposh_utils::cleanup_url($_SERVER['REQUEST_URI'], $this->home_url);
489
 
490
+ $this->tp_redirect($url);
491
  exit;
492
  }
493
  }
503
  add_action('posts_where_request', array(&$this, 'posts_where_request'));
504
  }
505
  if (transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url) && !transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url)) {
506
+ $this->tp_redirect(transposh_utils::rewrite_url_lang_param($_SERVER["REQUEST_URI"], $this->home_url, $this->enable_permalinks_rewrite, transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url), false)); //."&stop=y");
507
  exit;
508
  }
509
  }
750
  return $this->options->is_editable_language($this->target_language);
751
  }
752
 
753
+ /**
754
+ * Splits a url to translatable segments
755
+ * @param string $href
756
+ * @return array parts that may be translated
757
+ */
758
+ function split_url($href) {
759
+ $ret = array();
760
+ // Ignore urls not from this site
761
+ if (!transposh_utils::is_rewriteable_url($href, $this->home_url)) {
762
+ return $ret;
763
+ }
764
+
765
+ // don't fix links pointing to real files as it will cause that the
766
+ // web server will not be able to locate them
767
+ if (stripos($href, '/wp-admin') !== FALSE ||
768
+ stripos($href, WP_CONTENT_URL) !== FALSE ||
769
+ stripos($href, '/wp-login') !== FALSE ||
770
+ stripos($href, '/.php') !== FALSE) /* ??? */ {
771
+ return $ret;
772
+ }
773
+
774
+ // todo - check query part... sanitize
775
+ //if (strpos($href, '?') !== false) {
776
+ // list ($href, $querypart) = explode('?', $href);
777
+ //}
778
+ //$href = substr($href, strlen($this->home_url));
779
+ // this might include the sub directory for non rooted sites, but its not that important to avoid
780
+ $href = parse_url($href, PHP_URL_PATH);
781
+ $parts = explode('/', $href);
782
+ foreach ($parts as $part) {
783
+ if (!$part) continue;
784
+ if (is_numeric($part)) continue;
785
+ $ret[] = $part;
786
+ if ($part != str_replace('-', ' ', $part)) {
787
+ $ret[] = str_replace('-', ' ', $part);
788
+ }
789
+ }
790
+ return $ret;
791
+ }
792
+
793
  /**
794
  * Callback from parser allowing to overide the global setting of url rewriting using permalinks.
795
  * Some urls should be modified only by adding parameters and should be identified by this
800
  function rewrite_url($href) {
801
  $use_params = FALSE;
802
 
803
+ // fix what might be messed up -- TODO
804
  $href = str_replace(array(TP_GTXT_BRK, TP_GTXT_IBRK, TP_GTXT_BRK_CLOSER, TP_GTXT_IBRK_CLOSER), '', $href);
805
 
806
  // Ignore urls not from this site
807
+ if (!transposh_utils::is_rewriteable_url($href, $this->home_url)) {
808
  return $href;
809
  }
810
 
813
  if (stripos($href, '/wp-admin') !== FALSE ||
814
  stripos($href, WP_CONTENT_URL) !== FALSE ||
815
  stripos($href, '/wp-login') !== FALSE ||
816
+ stripos($href, '/.php') !== FALSE) /* ??? */ {
817
  return $href;
818
  }
819
  $use_params = !$this->enable_permalinks_rewrite;
955
  $comment_lang = get_comment_meta(get_comment_ID(), 'tp_language', true);
956
  if ($comment_lang) {
957
  $text = "<span lang =\"$comment_lang\">" . $text . "</span>";
958
+ if (strpos($text, '<a href="' . $this->home_url) !== FALSE) {
959
+ $text = str_replace('<a href="' . $this->home_url, '<a lang="' . $this->options->get_default_language() . '" href="' . $this->home_url, $text);
960
+ }
961
  }
962
 
963
  return $text;
974
  $lang = get_post_meta($GLOBALS['id'], 'tp_language', true);
975
  if ($lang) {
976
  $text = "<span lang =\"$lang\">" . $text . "</span>";
977
+ if (strpos($text, '<a href="' . $this->home_url) !== FALSE) {
978
+ $text = str_replace('<a href="' . $this->home_url, '<a lang="' . $this->options->get_default_language() . '" href="' . $this->home_url, $text);
979
+ }
980
  }
981
  return $text;
982
  }
widgets/default/tpw_default.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.7.0
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
22
  */
23
 
24
  /*
11
  */
12
 
13
  /*
14
+ * Transposh v0.7.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
22
  */
23
 
24
  /*
widgets/dropdown/tpw_image_dropdown.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.7.0
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.7.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
22
  */
23
 
24
  /**
widgets/flags/tpw_flags.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.7.0
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.7.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
22
  */
23
 
24
  /**
widgets/flags/tpw_flags_css.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.7.0
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.7.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
22
  */
23
 
24
  /**
widgets/flagslist/tpw_list_with_flags.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.7.0
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.7.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
22
  */
23
 
24
  /**
widgets/flagslist/tpw_list_with_flags_css.php CHANGED
@@ -11,14 +11,14 @@
11
  */
12
 
13
  /*
14
- * Transposh v0.7.0
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
22
  */
23
 
24
  /**
11
  */
12
 
13
  /*
14
+ * Transposh v0.7.1
15
  * http://transposh.org/
16
  *
17
  * Copyright 2011, Team Transposh
18
  * Licensed under the GPL Version 2 or higher.
19
  * http://transposh.org/license
20
  *
21
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
22
  */
23
 
24
  /**
wp/transposh_3rdparty.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /*
@@ -37,7 +37,8 @@ class transposh_3rdparty {
37
  add_filter('bp_get_activity_content_body', array(&$this, 'bp_get_activity_content_body'), 10, 2);
38
  add_action('bp_activity_after_save', array(&$this, 'bp_activity_after_save'));
39
  add_action('transposh_human_translation', array(&$this, 'transposh_buddypress_stream'), 10, 3);
40
-
 
41
  // google xml sitemaps - with patch
42
  add_action('sm_addurl', array(&$this, 'add_sm_transposh_urls'));
43
  }
@@ -189,4 +190,5 @@ class transposh_3rdparty {
189
  }
190
 
191
  }
 
192
  ?>
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /*
37
  add_filter('bp_get_activity_content_body', array(&$this, 'bp_get_activity_content_body'), 10, 2);
38
  add_action('bp_activity_after_save', array(&$this, 'bp_activity_after_save'));
39
  add_action('transposh_human_translation', array(&$this, 'transposh_buddypress_stream'), 10, 3);
40
+ //bp_activity_permalink_redirect_url (can fit here if generic setting fails)
41
+
42
  // google xml sitemaps - with patch
43
  add_action('sm_addurl', array(&$this, 'add_sm_transposh_urls'));
44
  }
190
  }
191
 
192
  }
193
+
194
  ?>
wp/transposh_admin.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /*
@@ -266,7 +266,7 @@ class transposh_plugin_admin {
266
  $this->update_admin_options();
267
 
268
  // lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
269
- wp_redirect($_POST['_wp_http_referer']);
270
  }
271
 
272
  // below you will find for each registered metabox the callback method, that produces the content inside the boxes
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /*
266
  $this->update_admin_options();
267
 
268
  // lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
269
+ $this->transposh->tp_redirect($_POST['_wp_http_referer']);
270
  }
271
 
272
  // below you will find for each registered metabox the callback method, that produces the content inside the boxes
wp/transposh_ajax.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /*
@@ -67,9 +67,9 @@ elseif (isset($_GET['tr_cookie'])) {
67
  elseif (isset($_GET['tr_cookie_bck'])) {
68
  setcookie('TR_LNG', transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $my_transposh_plugin->home_url), time() + 90 * 24 * 60 * 60, COOKIEPATH, COOKIE_DOMAIN);
69
  if ($_SERVER['HTTP_REFERER']) {
70
- wp_redirect($_SERVER['HTTP_REFERER']);
71
  } else {
72
- wp_redirect($my_transposh_plugin->home_url);
73
  }
74
  }
75
  // Start full translation
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /*
67
  elseif (isset($_GET['tr_cookie_bck'])) {
68
  setcookie('TR_LNG', transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $my_transposh_plugin->home_url), time() + 90 * 24 * 60 * 60, COOKIEPATH, COOKIE_DOMAIN);
69
  if ($_SERVER['HTTP_REFERER']) {
70
+ $this->transposh->tp_redirect($_SERVER['HTTP_REFERER']);
71
  } else {
72
+ $this->transposh->tp_redirect($my_transposh_plugin->home_url);
73
  }
74
  }
75
  // Start full translation
wp/transposh_backup.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /*
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /*
wp/transposh_db.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /**
@@ -167,7 +167,9 @@ class transposh_database {
167
  if (empty($rows)) return;
168
  // we are saving in the array and not directly to cache, because cache might not exist...
169
  foreach ($rows as $row) {
170
- $this->translations[$row['original']] = array($row['source'], stripslashes($row['translated']));
 
 
171
  }
172
 
173
  }
@@ -289,7 +291,7 @@ class transposh_database {
289
  }
290
  }
291
  if (!($all_editable &&
292
- ($this->transposh->is_translator() || ($source == 1 && $this->transposh->options->get_enable_auto_translate())))) {
293
 
294
  header("HTTP/1.0 401 Unauthorized translation");
295
  exit;
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /**
167
  if (empty($rows)) return;
168
  // we are saving in the array and not directly to cache, because cache might not exist...
169
  foreach ($rows as $row) {
170
+ // we are making sure to use the escaped version, because that is what we'll ask about
171
+ $ro = $GLOBALS['wpdb']->escape(html_entity_decode($row['original'], ENT_NOQUOTES, 'UTF-8'));
172
+ $this->translations[$ro] = array($row['source'], stripslashes($row['translated']));
173
  }
174
 
175
  }
291
  }
292
  }
293
  if (!($all_editable &&
294
+ ($this->transposh->is_translator() || ($source > 0 && $this->transposh->options->get_enable_auto_translate())))) {
295
 
296
  header("HTTP/1.0 401 Unauthorized translation");
297
  exit;
wp/transposh_options.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  // OLD Options - To be removed
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  // OLD Options - To be removed
wp/transposh_postpublish.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /*
@@ -104,17 +104,22 @@ class transposh_postpublish {
104
  // Display filters
105
  $title = apply_filters('the_title', $post->post_title);
106
  $content = apply_filters('the_content', $post->post_content);
107
- // TODO - grab phrases from rss excerpt
108
- //$output = get_the_excerpt();
109
- // echo apply_filters('the_excerpt_rss', $output);
 
110
  //TODO - get comments text
111
 
112
  $parser = new parser();
113
  $phrases = $parser->get_phrases_list($content);
114
  $phrases2 = $parser->get_phrases_list($title);
 
 
 
115
 
116
  // Merge the two arrays for traversing
117
- $phrases = array_merge($phrases, $phrases2);
 
118
 
119
  // Add phrases from permalink
120
  if ($this->transposh->options->get_enable_url_translate()) {
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /*
104
  // Display filters
105
  $title = apply_filters('the_title', $post->post_title);
106
  $content = apply_filters('the_content', $post->post_content);
107
+ $the_content_feed = apply_filters('the_content_feed', $content);
108
+ $excerpt = apply_filters('get_the_excerpt', $post->post_excerpt);
109
+ $excerpt_rss = apply_filters('the_excerpt_rss', $excerpt);
110
+
111
  //TODO - get comments text
112
 
113
  $parser = new parser();
114
  $phrases = $parser->get_phrases_list($content);
115
  $phrases2 = $parser->get_phrases_list($title);
116
+ $phrases3 = $parser->get_phrases_list($the_content_feed);
117
+ $phrases4 = $parser->get_phrases_list($excerpt);
118
+ $phrases5 = $parser->get_phrases_list($excerpt_rss);
119
 
120
  // Merge the two arrays for traversing
121
+ $phrases = array_merge($phrases, $phrases2, $phrases3, $phrases4, $phrases5);
122
+
123
 
124
  // Add phrases from permalink
125
  if ($this->transposh->options->get_enable_url_translate()) {
wp/transposh_widget.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
  /*
4
- * Transposh v0.7.0
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
- * Date: Tue, 11 Jan 2011 15:24:55 +0200
12
  */
13
 
14
  /*
@@ -70,7 +70,7 @@ class transposh_plugin_widget {
70
 
71
 
72
 
73
- wp_redirect($ref);
74
  exit;
75
  }
76
  }
@@ -270,13 +270,13 @@ class transposh_plugin_widget {
270
 
271
  $extralang = '';
272
  if ($this->transposh->target_language != 'en') {
273
- $extralang = $this->transposh->target_language;
274
  }
275
  }
276
 
277
  echo '<div id="' . SPAN_PREFIX . 'credit">';
278
  if (!$this->transposh->options->get_widget_remove_logo()) {
279
- echo 'by <a href="http://tran' . 'sposh.org/' . $extralang . '"><img class="' . NO_TRANSLATE_CLASS . '" height="16" width="16" src="' .
280
  $plugpath . '/img/tplog' . 'o.png" style="padding:1px;border:0px" title="' . $tagline . '" alt="' . $tagline . '"/></a>';
281
  }
282
  echo '</div>';
1
  <?php
2
 
3
  /*
4
+ * Transposh v0.7.1
5
  * http://transposh.org/
6
  *
7
  * Copyright 2011, Team Transposh
8
  * Licensed under the GPL Version 2 or higher.
9
  * http://transposh.org/license
10
  *
11
+ * Date: Sun, 30 Jan 2011 12:58:12 +0200
12
  */
13
 
14
  /*
70
 
71
 
72
 
73
+ $this->transposh->tp_redirect($ref);
74
  exit;
75
  }
76
  }
270
 
271
  $extralang = '';
272
  if ($this->transposh->target_language != 'en') {
273
+ $extralang = $this->transposh->target_language . '/';
274
  }
275
  }
276
 
277
  echo '<div id="' . SPAN_PREFIX . 'credit">';
278
  if (!$this->transposh->options->get_widget_remove_logo()) {
279
+ echo 'by <a href="http://tran' . 'sposh.org/' . $extralang . '"><img height="16" width="16" src="' .
280
  $plugpath . '/img/tplog' . 'o.png" style="padding:1px;border:0px" title="' . $tagline . '" alt="' . $tagline . '"/></a>';
281
  }
282
  echo '</div>';