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
Release Info
Developer | oferwald |
Plugin | Transposh WordPress Translation |
Version | 0.7.5 |
Comparing to | |
See all releases |
Code changes from version 0.7.4 to 0.7.5
- core/constants.php +11 -8
- core/parser.php +2 -2
- core/utils.php +2 -2
- img/flags65.png +0 -0
- js/l/de.js +2 -2
- js/l/es.js +2 -2
- js/l/fa.js +2 -2
- js/l/he.js +2 -2
- js/l/it.js +2 -2
- js/l/nl.js +2 -2
- js/l/ru.js +2 -2
- js/transposh.js +2 -2
- js/transposhadmin.js +2 -2
- js/transposhcontrol.js +2 -2
- js/transposhedit.js +29 -29
- readme.txt +6 -2
- transposh.php +16 -11
- widgets/default/tpw_default.php +2 -2
- widgets/dropdown/tpw_image_dropdown.php +2 -2
- widgets/flags/flags58.png +0 -0
- widgets/flags/flags59.png +0 -0
- widgets/flags/flags60.png +0 -0
- widgets/flags/flags65.png +0 -0
- widgets/flags/tpw_flags.php +2 -2
- widgets/flags/tpw_flags_css.css +55 -53
- widgets/flags/tpw_flags_css.php +2 -2
- widgets/flagslist/tpw_list_with_flags.php +2 -2
- widgets/flagslist/tpw_list_with_flags_css.php +2 -2
- wp/transposh_3rdparty.php +2 -2
- wp/transposh_admin.php +12 -2
- wp/transposh_ajax.php +2 -2
- wp/transposh_backup.php +2 -2
- wp/transposh_db.php +2 -2
- wp/transposh_options.php +16 -4
- wp/transposh_postpublish.php +2 -2
- wp/transposh_widget.php +2 -2
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
//Language indicator in URL. i.e. lang=en
|
@@ -49,6 +49,7 @@ class transposh_consts {
|
|
49 |
'az' => 'Azerbaijani,azərbaycan dili,az,',
|
50 |
'eu' => 'Basque,Euskara,basque,',
|
51 |
'be' => 'Belarusian,Беларуская,by,',
|
|
|
52 |
'bg' => 'Bulgarian,Български,bg,bg_BG',
|
53 |
'ca' => 'Catalan,Català,catalonia,',
|
54 |
'zh' => 'Chinese (Simplified),中文(简体),cn,zh_CN',
|
@@ -65,6 +66,7 @@ class transposh_consts {
|
|
65 |
'ka' => 'Georgian,ქართული,ge,ka_GE',
|
66 |
'de' => 'German,Deutsch,de,de_DE',
|
67 |
'el' => 'Greek,Ελληνικά,gr,',
|
|
|
68 |
'ht' => 'Haitian,Kreyòl ayisyen,ht,',
|
69 |
'he' => 'Hebrew,עברית,il,he_IL',
|
70 |
'hi' => 'Hindi,हिन्दी; हिंदी,in,hi_IN',
|
@@ -74,6 +76,7 @@ class transposh_consts {
|
|
74 |
'ga' => 'Irish,Gaeilge,ie,',
|
75 |
'it' => 'Italian,Italiano,it,it_IT',
|
76 |
'ja' => 'Japanese,日本語,jp,',
|
|
|
77 |
'ko' => 'Korean,우리말,kr,ko_KR',
|
78 |
'la' => 'Latin,Latīna,va,',
|
79 |
'lv' => 'Latvian,Latviešu valoda,lv,',
|
@@ -94,6 +97,8 @@ class transposh_consts {
|
|
94 |
'sw' => 'Swahili,Kiswahili,ke,',
|
95 |
'sv' => 'Swedish,Svenska,se,sv_SE',
|
96 |
'tl' => 'Tagalog,Tagalog,ph,', // fhilipino
|
|
|
|
|
97 |
'th' => 'Thai,ภาษาไทย,th,',
|
98 |
'tr' => 'Turkish,Türkçe,tr,tr_TR',
|
99 |
'uk' => 'Ukrainian,Українська,ua,',
|
@@ -109,7 +114,7 @@ class transposh_consts {
|
|
109 |
// @updated 2010-Oct-01 (hy,az,eu,ka,la,ur)
|
110 |
// $google_languages = array('en', 'af', 'sq', 'ar', 'hy', 'az', 'eu', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'ka', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'ur', 'vi', 'cy', 'yi');
|
111 |
public static $google_languages = array('en', 'af', 'sq', 'ar', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'vi', 'cy', 'yi');
|
112 |
-
public static $google_proxied_languages = array('hy', 'az', 'eu', 'ka', 'la', 'ur');
|
113 |
// Bing supported languages
|
114 |
// (got this using Microsoft.Translator.GetLanguages() - fixed to match our codes)
|
115 |
// @updated 2010-Jun-30
|
@@ -118,7 +123,7 @@ class transposh_consts {
|
|
118 |
// a bit tricky, but we'll see - starting with just esperanto
|
119 |
public static $apertium_languages = array('eo');
|
120 |
|
121 |
-
// Array for holding po domains we have problems with
|
122 |
public static $ignored_po_domains = array('MailPress');
|
123 |
|
124 |
}
|
@@ -127,7 +132,7 @@ class transposh_consts {
|
|
127 |
define('TRANSLATOR', 'translator');
|
128 |
|
129 |
//Define for transposh plugin version
|
130 |
-
define('TRANSPOSH_PLUGIN_VER', '0.7.
|
131 |
|
132 |
//Define segment id prefix, will be included in span tag. also used as class identifier
|
133 |
define('SPAN_PREFIX', 'tr_');
|
@@ -337,8 +342,7 @@ define('TRANSPOSH_DIR_WIDGETS', 'widgets');
|
|
337 |
|
338 |
*/
|
339 |
|
340 |
-
/* List of unused wordpress locales (
|
341 |
-
# bn_BD/ Bengali
|
342 |
# bs_BA/ Bosnian
|
343 |
# ckb/ Kurdish
|
344 |
# cpp/ ??
|
@@ -353,7 +357,6 @@ define('TRANSPOSH_DIR_WIDGETS', 'widgets');
|
|
353 |
# jv_ID/
|
354 |
# /
|
355 |
# kea/ ??
|
356 |
-
# kn/
|
357 |
# /
|
358 |
# ky_KY/
|
359 |
# ml_IN/
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
//Language indicator in URL. i.e. lang=en
|
49 |
'az' => 'Azerbaijani,azərbaycan dili,az,',
|
50 |
'eu' => 'Basque,Euskara,basque,',
|
51 |
'be' => 'Belarusian,Беларуская,by,',
|
52 |
+
'bn' => 'Bengali,বাংলা,bd,bn_BD',
|
53 |
'bg' => 'Bulgarian,Български,bg,bg_BG',
|
54 |
'ca' => 'Catalan,Català,catalonia,',
|
55 |
'zh' => 'Chinese (Simplified),中文(简体),cn,zh_CN',
|
66 |
'ka' => 'Georgian,ქართული,ge,ka_GE',
|
67 |
'de' => 'German,Deutsch,de,de_DE',
|
68 |
'el' => 'Greek,Ελληνικά,gr,',
|
69 |
+
'gu' => 'Gujarati,ગુજરાતી,in,',
|
70 |
'ht' => 'Haitian,Kreyòl ayisyen,ht,',
|
71 |
'he' => 'Hebrew,עברית,il,he_IL',
|
72 |
'hi' => 'Hindi,हिन्दी; हिंदी,in,hi_IN',
|
76 |
'ga' => 'Irish,Gaeilge,ie,',
|
77 |
'it' => 'Italian,Italiano,it,it_IT',
|
78 |
'ja' => 'Japanese,日本語,jp,',
|
79 |
+
'kn' => 'Kannada,ಕನ್ನಡ,in,',
|
80 |
'ko' => 'Korean,우리말,kr,ko_KR',
|
81 |
'la' => 'Latin,Latīna,va,',
|
82 |
'lv' => 'Latvian,Latviešu valoda,lv,',
|
97 |
'sw' => 'Swahili,Kiswahili,ke,',
|
98 |
'sv' => 'Swedish,Svenska,se,sv_SE',
|
99 |
'tl' => 'Tagalog,Tagalog,ph,', // fhilipino
|
100 |
+
'ta' => 'Tamil,தமிழ்,lk,ta_LK',
|
101 |
+
'te' => 'Telugu,తెలుగు,in,',
|
102 |
'th' => 'Thai,ภาษาไทย,th,',
|
103 |
'tr' => 'Turkish,Türkçe,tr,tr_TR',
|
104 |
'uk' => 'Ukrainian,Українська,ua,',
|
114 |
// @updated 2010-Oct-01 (hy,az,eu,ka,la,ur)
|
115 |
// $google_languages = array('en', 'af', 'sq', 'ar', 'hy', 'az', 'eu', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'ka', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'ur', 'vi', 'cy', 'yi');
|
116 |
public static $google_languages = array('en', 'af', 'sq', 'ar', 'be', 'bg', 'ca', 'zh', 'zh-tw', 'hr', 'cs', 'da', 'nl', 'et', 'fi', 'fr', 'gl', 'de', 'el', 'ht', 'he', 'hi', 'hu', 'id', 'it', 'is', 'ga', 'ja', 'ko', 'lv', 'lt', 'mk', 'ms', 'mt', 'no', 'fa', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sw', 'sv', 'tl', 'th', 'tr', 'uk', 'vi', 'cy', 'yi');
|
117 |
+
public static $google_proxied_languages = array('hy', 'az', 'eu', 'ka', 'la', 'ur', 'ta', 'te', 'kn', 'bn', 'gu');
|
118 |
// Bing supported languages
|
119 |
// (got this using Microsoft.Translator.GetLanguages() - fixed to match our codes)
|
120 |
// @updated 2010-Jun-30
|
123 |
// a bit tricky, but we'll see - starting with just esperanto
|
124 |
public static $apertium_languages = array('eo');
|
125 |
|
126 |
+
// Array for holding po domains we have problems with
|
127 |
public static $ignored_po_domains = array('MailPress');
|
128 |
|
129 |
}
|
132 |
define('TRANSLATOR', 'translator');
|
133 |
|
134 |
//Define for transposh plugin version
|
135 |
+
define('TRANSPOSH_PLUGIN_VER', '0.7.5');
|
136 |
|
137 |
//Define segment id prefix, will be included in span tag. also used as class identifier
|
138 |
define('SPAN_PREFIX', 'tr_');
|
342 |
|
343 |
*/
|
344 |
|
345 |
+
/* List of unused wordpress locales (22-Jun-2011)
|
|
|
346 |
# bs_BA/ Bosnian
|
347 |
# ckb/ Kurdish
|
348 |
# cpp/ ??
|
357 |
# jv_ID/
|
358 |
# /
|
359 |
# kea/ ??
|
|
|
360 |
# /
|
361 |
# ky_KY/
|
362 |
# ml_IN/
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
require_once("shd/simple_html_dom.php");
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
require_once("shd/simple_html_dom.php");
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/**
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/**
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"Schlie\u00dfen ohne Speichern?","You have made a change to the translation. Are you sure you want to discard it?":"Sie haben die \u00dcbersetzung bearbeitet. Sind Sie sicher, dass Sie abbrechen wollen?",History:"Verlauf","Loading...":"Laden...",Translated:"\u00dcbersetzt",By:"von",At:"\u00fcber",google:"Google",bing:"Bing",apertium:"Apertium","manual translation":"manuelle \u00dcbersetzung","bing suggest":"Bing Suggest","google suggest":"Google Suggest","apertium suggest":"Apertium Suggest",
|
12 |
"Edit Translation":"\u00dcbersetzung bearbeiten","Original text":"Originaltext","read alternate translations":"alternative \u00dcbersetzung lesen","previous translation":"Vorherige","find on page":"Auf Seite suchen","next translation":"N\u00e4chste","Translate to":"\u00dcbersetzen nach","view translation log":"\u00dcbersetzungsprotokoll anzeigen","virtual keyboard":"virtuelle Tastatur","approve translation":"\u00dcbersetzung genehmigen","delete":"L\u00f6schen",Discard:"Verwerfen",Cancel:"Abbrechen"};
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"Schlie\u00dfen ohne Speichern?","You have made a change to the translation. Are you sure you want to discard it?":"Sie haben die \u00dcbersetzung bearbeitet. Sind Sie sicher, dass Sie abbrechen wollen?",History:"Verlauf","Loading...":"Laden...",Translated:"\u00dcbersetzt",By:"von",At:"\u00fcber",google:"Google",bing:"Bing",apertium:"Apertium","manual translation":"manuelle \u00dcbersetzung","bing suggest":"Bing Suggest","google suggest":"Google Suggest","apertium suggest":"Apertium Suggest",
|
12 |
"Edit Translation":"\u00dcbersetzung bearbeiten","Original text":"Originaltext","read alternate translations":"alternative \u00dcbersetzung lesen","previous translation":"Vorherige","find on page":"Auf Seite suchen","next translation":"N\u00e4chste","Translate to":"\u00dcbersetzen nach","view translation log":"\u00dcbersetzungsprotokoll anzeigen","virtual keyboard":"virtuelle Tastatur","approve translation":"\u00dcbersetzung genehmigen","delete":"L\u00f6schen",Discard:"Verwerfen",Cancel:"Abbrechen"};
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
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.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
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,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"\u0628\u062f\u0648\u0646 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc \u0628\u0628\u0646\u062f\u06cc\u0645\u061f","You have made a change to the translation. Are you sure you want to discard it?":"\u0634\u0645\u0627 \u062f\u0631 \u062a\u0631\u062c\u0645\u0647 \u06cc\u06a9 \u062f\u06af\u0631\u06af\u0648\u0646\u06cc \u0633\u0627\u062e\u062a\u0647 \u0627\u06cc\u062f \u0622\u06cc\u0627 \u0622\u06af\u0627\u0647\u0627\u0646\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0648\u0631 \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f\u061f ",
|
12 |
History:"\u067e\u06cc\u0634\u06cc\u0646\u0647","Loading...":"\u0628\u0627\u0631\u06af\u06cc\u0631\u06cc...",Translated:"\u062a\u0631\u062c\u0645\u0647 \u0634\u062f\u0647",By:"\u0628\u0627",At:"\u062f\u0631",google:"\u06af\u0648\u06af\u0644",bing:"\u0628\u06cc\u0646\u06af",apertium:"\u0627\u0650\u06cc \u067e\u0650\u0631\u0634\u0650\u0645","manual translation":"\u062a\u0631\u062c\u0645\u0647 \u06cc \u062f\u0633\u062a\u06cc","bing suggest":"\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0628\u06cc\u0646\u06af",
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"\u0628\u062f\u0648\u0646 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc \u0628\u0628\u0646\u062f\u06cc\u0645\u061f","You have made a change to the translation. Are you sure you want to discard it?":"\u0634\u0645\u0627 \u062f\u0631 \u062a\u0631\u062c\u0645\u0647 \u06cc\u06a9 \u062f\u06af\u0631\u06af\u0648\u0646\u06cc \u0633\u0627\u062e\u062a\u0647 \u0627\u06cc\u062f \u0622\u06cc\u0627 \u0622\u06af\u0627\u0647\u0627\u0646\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0648\u0631 \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f\u061f ",
|
12 |
History:"\u067e\u06cc\u0634\u06cc\u0646\u0647","Loading...":"\u0628\u0627\u0631\u06af\u06cc\u0631\u06cc...",Translated:"\u062a\u0631\u062c\u0645\u0647 \u0634\u062f\u0647",By:"\u0628\u0627",At:"\u062f\u0631",google:"\u06af\u0648\u06af\u0644",bing:"\u0628\u06cc\u0646\u06af",apertium:"\u0627\u0650\u06cc \u067e\u0650\u0631\u0634\u0650\u0645","manual translation":"\u062a\u0631\u062c\u0645\u0647 \u06cc \u062f\u0633\u062a\u06cc","bing suggest":"\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0628\u06cc\u0646\u06af",
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
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.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
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,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"Chiudere senza salvare?","You have made a change to the translation. Are you sure you want to discard it?":"È stata fatta una modifica alla traduzione. Si è sicuri di volerla scartare?",History:"Storia","Loading...":"Caricamento...",Translated:"Tradotto",By:"Da",At:"A",google:"google",bing:"bing",apertium:"apertium","manual translation":"traduzione manuale","bing suggest":"bing suggerisce","google suggest":"google suggerisce","apertium suggest":"apertium suggerisce",
|
12 |
"Edit Translation":"Modifica Traduzione","Original text":"Testo Originale","read alternate translations":"leggi le traduzioni alternative","previous translation":"traduzione precedente","find on page":"trova nella pagina","next translation":"prossima traduzione","Translate to":"Tradotto in","view translation log":"guarda il log delle traduzioni","virtual keyboard":"tastiera virtuale","approve translation":"approva traduzione","delete":"cancella",Discard:"Scarta",Cancel:"Cancella"};
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"Chiudere senza salvare?","You have made a change to the translation. Are you sure you want to discard it?":"È stata fatta una modifica alla traduzione. Si è sicuri di volerla scartare?",History:"Storia","Loading...":"Caricamento...",Translated:"Tradotto",By:"Da",At:"A",google:"google",bing:"bing",apertium:"apertium","manual translation":"traduzione manuale","bing suggest":"bing suggerisce","google suggest":"google suggerisce","apertium suggest":"apertium suggerisce",
|
12 |
"Edit Translation":"Modifica Traduzione","Original text":"Testo Originale","read alternate translations":"leggi le traduzioni alternative","previous translation":"traduzione precedente","find on page":"trova nella pagina","next translation":"prossima traduzione","Translate to":"Tradotto in","view translation log":"guarda il log delle traduzioni","virtual keyboard":"tastiera virtuale","approve translation":"approva traduzione","delete":"cancella",Discard:"Scarta",Cancel:"Cancella"};
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"Sluiten zonder op te slaan?","You have made a change to the translation. Are you sure you want to discard it?":"Je hebt de vertaling aangepast. Weet je zeker dat je dat wilt annuleren?",History:"Geschiedenis","Loading...":"Aan het laden...",Translated:"Vertaald",By:"Door",At:"Op",google:"google",bing:"bing",apertium:"apertium","manual translation":"eigen vertaling","bing suggest":"bing suggestie","google suggest":"google suggestie","apertium suggest":"apertium suggestie",
|
12 |
"Edit Translation":"Vertaling aanpassen","Original text":"Oorspronkelijke tekst","read alternate translations":"bekijk alternatieve vertaling","previous translation":"vorige","find on page":"laat op de pagina zien","next translation":"volgende","Translate to":"Vertaal naar","view translation log":"Bekijk vertaallog","virtual keyboard":"virtueel toetsenbord","approve translation":"vertaling goedkeuren","delete":"verwijder",Discard:"weggooien",Cancel:"Annuleren"};
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"Sluiten zonder op te slaan?","You have made a change to the translation. Are you sure you want to discard it?":"Je hebt de vertaling aangepast. Weet je zeker dat je dat wilt annuleren?",History:"Geschiedenis","Loading...":"Aan het laden...",Translated:"Vertaald",By:"Door",At:"Op",google:"google",bing:"bing",apertium:"apertium","manual translation":"eigen vertaling","bing suggest":"bing suggestie","google suggest":"google suggestie","apertium suggest":"apertium suggestie",
|
12 |
"Edit Translation":"Vertaling aanpassen","Original text":"Oorspronkelijke tekst","read alternate translations":"bekijk alternatieve vertaling","previous translation":"vorige","find on page":"laat op de pagina zien","next translation":"volgende","Translate to":"Vertaal naar","view translation log":"Bekijk vertaallog","virtual keyboard":"virtueel toetsenbord","approve translation":"vertaling goedkeuren","delete":"verwijder",Discard:"weggooien",Cancel:"Annuleren"};
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0431\u0435\u0437 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f?","You have made a change to the translation. Are you sure you want to discard it?":"\u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u044d\u0442\u043e?",
|
12 |
History:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f","Loading...":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...",Translated:"\u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043e",By:"",At:"\u0412",google:"",bing:"",apertium:"","manual translation":"\u0440\u0443\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434","bing suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 bing","google suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 google",
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
t_jp.l={"Close without saving?":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0431\u0435\u0437 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f?","You have made a change to the translation. Are you sure you want to discard it?":"\u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u044d\u0442\u043e?",
|
12 |
History:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f","Loading...":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...",Translated:"\u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043e",By:"",At:"\u0412",google:"",bing:"",apertium:"","manual translation":"\u0440\u0443\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434","bing suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 bing","google suggest":"\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 google",
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
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+=
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
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+=
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
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.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
var timer,items=0,translations=[],tokens=[],langs=[],sources=[],BATCH_SIZE=128,pair_count=0,curr_pair=0;t_jp.MSN_APPID="FACA8E2DF8DCCECE0DC311C6E57DA98EFEFA9BC6";function make_progress(e,b){curr_pair+=1;jQuery("#progress_bar").progressbar("value",curr_pair/pair_count*100);jQuery("#p").text("("+b+") "+e);curr_pair===pair_count&&jQuery("#tr_loading").data("done",true)}
|
12 |
function ajax_translate_me(e,b,c,d){b=jQuery("<div>"+jQuery.trim(b)+"</div>").text();make_progress(b,c);clearTimeout(timer);items+=1;tokens.push(e);translations.push(b);langs.push(c);sources.push(d);timer=setTimeout(function(){var f={translation_posted:"2",items:items},a;for(a=0;a<items;a+=1){if(tokens[a]!==tokens[a-1])f["tk"+a]=tokens[a];if(langs[a]!==langs[a-1])f["ln"+a]=langs[a];if(translations[a]!==translations[a-1])f["tr"+a]=translations[a];if(sources[a]!==sources[a-1])f["sr"+a]=sources[a]}jQuery.ajax({type:"POST",
|
@@ -1,12 +1,12 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
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.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
10 |
*/
|
11 |
jQuery(function(){jQuery("#tr_anon").click(function(){if(jQuery("#tr_anon").attr("checked")){jQuery(".translateable").addClass("active").removeClass("translateable");jQuery("#sortable .active").each(function(){jQuery("input",this).val(jQuery(this).attr("id")+",v,t")})}jQuery("#yellowcolor").toggleClass("hidden")});jQuery("#sortable").sortable({placeholder:"highlight",update:function(b,a){a.item.unbind("click");a.item.one("click",function(c){c.stopImmediatePropagation();jQuery(this).click(clickfunction)})}});
|
12 |
jQuery("#sortable").disableSelection();jQuery("#changename").click(function(){jQuery(".langname").toggleClass("hidden");return false});jQuery("#selectall").click(function(){jQuery("#sortable .languages").addClass("active").removeClass("translateable");jQuery("#sortable .active").each(function(){jQuery("input",this).val(jQuery(this).attr("id")+",v,t")});return false});clickfunction=function(){if(jQuery(this).attr("id")!=jQuery("#default_list li").attr("id")){if(jQuery("#tr_anon").attr("checked"))jQuery(this).toggleClass("active");
|
@@ -1,38 +1,38 @@
|
|
1 |
/*
|
2 |
-
* Transposh v0.7.
|
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:
|
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
|
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
|
13 |
-
|
14 |
-
a.trim(c)+"</div>").text()).keyup()})}function
|
15 |
-
c=a(c).dialog("widget").find(".ui-dialog-titlebar-close");
|
16 |
e+'cancel">'+f("Cancel")+'</button><button id="'+e+'discard">'+f("Discard")+"</button></span>"+ +"</div>").appendTo("body").dialog({resizable:false,modal:true,minHeight:50,overlay:{backgroundColor:"#000",opacity:0.5}});a(b+"cancel").button({icons:{primary:"ui-icon-closethick"},text:false}).click(function(){a(c).dialog("close")});a(b+"discard").button({icons:{primary:"ui-icon-check"},text:false}).click(function(){a(b+"translation").data("changed",false);a(c).dialog("close");a(b+"dialog").dialog("close")});
|
17 |
-
a(b+"dcbar").css({"float":
|
18 |
-
data:{tr_token_hist:a(b+c).attr("data-token"),lang:t_jp.lang},dataType:"json",cache:false,success:function(
|
19 |
-
default:h="ui-icon-person";g=f("manual translation")}if(
|
20 |
-
" tbody").append("<tr><td>"+
|
21 |
-
timestamp:a(this).parents("tr").children(":last").text(),action:"delete",lang:t_jp.lang},dataType:"json",cache:false,success:function(
|
22 |
-
|
23 |
-
|
24 |
-
'</
|
25 |
-
"
|
26 |
-
|
27 |
-
|
28 |
-
"
|
29 |
-
|
30 |
-
"
|
31 |
-
|
32 |
-
|
33 |
-
var
|
34 |
-
fr:"Fran\u00e7ais",gl:"Galego",ka:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",de:"Deutsch",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",ht:"Krey\u00f2l ayisyen",he:"\u05e2\u05d1\u05e8\u05d9\u05ea",hi:"\u0939\u093f\u0928\u094d\u0926\u0940; \u0939\u093f\u0902\u0926\u0940",
|
35 |
-
|
36 |
-
vi:"Ti\u1ebfng Vi\u1ec7t",cy:"Cymraeg",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},e=t_jp.prefix,b="#"+e,
|
37 |
-
"function"||typeof a.fn.dialog!=="function"){a.ajaxSetup({cache:true});a.getScript(t_jp.plugin_url+"/js/lazy.js",function(){a.xLazyLoader({js:t_jp.jQueryUI+"jquery-ui.min.js",css:t_jp.jQueryUI+"themes/"+t_jp.theme+"/jquery-ui.css",success:function(){t_jp.locale?
|
38 |
-
margin:"1px",padding:"0px"});if(a(this).attr("data-source")==="0")d.addClass("tr-icon-green");else a(this).attr("data-source")&&d.addClass("tr-icon-yellow");a(this).attr("data-hidden")==="y"&&d.css({opacity:"0.6"})})})(jQuery);
|
1 |
/*
|
2 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
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 v(c,d,i){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),j=a(b+"img_"+g);a(b+g).attr("data-source",i);j.removeClass("tr-icon-yellow").removeClass("tr-icon-green");if(i==0)j.addClass("tr-icon-green");else i&&j.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 s(c,d){v(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},error:function(i){alert("Error !!! failed to translate.\n\nServer's message: "+i.statusText)}})}function y(c,d){a.ajax({url:"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q="+encodeURIComponent(c)+"&langpair=%7C"+
|
13 |
+
t_jp.lang,dataType:"jsonp",success:d})}function z(){y(a(b+"original").val(),function(c){c.responseStatus===200&&a(b+"translation").val(a("<div>"+a.trim(c.responseData.translatedText)+"</div>").text()).keyup()})}function A(c,d){a.ajax({url:"http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId="+t_jp.MSN_APPID+"&to="+t_jp.binglang+"&text="+encodeURIComponent(c),dataType:"jsonp",jsonp:"oncomplete",success:d})}function B(){A(a(b+"original").val(),function(c){a(b+"translation").val(a("<div>"+
|
14 |
+
a.trim(c)+"</div>").text()).keyup()})}function C(c,d){a.ajax({url:"http://api.apertium.org/json/translate?q="+encodeURIComponent(c)+"&langpair=en%7C"+t_jp.lang,dataType:"jsonp",success:d})}function D(){C(a(b+"original").val(),function(c){a(b+"translation").val(a("<div>"+a.trim(c.responseData.translatedText)+"</div>").text()).keyup()})}function t(c){var d,i,h;d=a(c).dialog("widget").find(".ui-dialog-title");i=d.css("margin-right");h=d.css("margin-left");d.css({"float":m,"margin-right":h,"margin-left":i});
|
15 |
+
c=a(c).dialog("widget").find(".ui-dialog-titlebar-close");i=c.css("right");h=c.css("left");c.css({right:h,left:i})}function E(){var c=b+"confirmdialog";a(c).remove();a('<div id="'+e+'confirmdialog" title="'+f("Close without saving?")+'"><span class="ui-icon ui-icon-alert" style="float:'+m+"; margin-bottom:20px; margin-"+n+':7px"></span><span style="clear:both">'+f("You have made a change to the translation. Are you sure you want to discard it?")+'<span><span id="'+e+'dcbar" style="display:block"><button id="'+
|
16 |
e+'cancel">'+f("Cancel")+'</button><button id="'+e+'discard">'+f("Discard")+"</button></span>"+ +"</div>").appendTo("body").dialog({resizable:false,modal:true,minHeight:50,overlay:{backgroundColor:"#000",opacity:0.5}});a(b+"cancel").button({icons:{primary:"ui-icon-closethick"},text:false}).click(function(){a(c).dialog("close")});a(b+"discard").button({icons:{primary:"ui-icon-check"},text:false}).click(function(){a(b+"translation").data("changed",false);a(c).dialog("close");a(b+"dialog").dialog("close")});
|
17 |
+
a(b+"dcbar").css({"float":n}).buttonset();if(a("html").attr("dir")==="rtl"){t(c);a(b+"dcbar button:first").addClass("ui-corner-"+m).removeClass("ui-corner-"+n);a(b+"dcbar button:last").addClass("ui-corner-"+n).removeClass("ui-corner-"+m)}}function F(c){var d=b+"historydialog";a(d).remove();a('<div id="'+e+'historydialog" title="'+f("History")+'">'+f("Loading...")+"</div>").appendTo("body");a(d).css("padding",0).dialog({width:"450px",show:"slide"});a("html").attr("dir")==="rtl"&&t(d);a.ajax({url:t_jp.post_url,
|
18 |
+
data:{tr_token_hist:a(b+c).attr("data-token"),lang:t_jp.lang},dataType:"json",cache:false,success:function(i){var h,g,j,l;a(d).empty().append('<table width="100%"><col style="width: 80%;"><col><col><thead><tr> <th>'+f("Translated")+"</th><th>"+f("By")+"</th><th>"+f("At")+"</th></tr></thead><tbody></tbody></table>");a.each(i,function(o,k){switch(k.source){case "1":h="tr-icon-google";g=f("google");break;case "2":h="tr-icon-bing";g=f("bing");break;case "3":h="tr-icon-apertium";g=f("apertium");break;
|
19 |
+
default:h="ui-icon-person";g=f("manual translation")}if(k.user_login===null)k.user_login=k.translated_by;j='<span class="ui-button ui-widget ui-button-icon-only" style="width: 18px; border: 0px; margin-'+n+': 3px"><span title="'+g+'" style="cursor: default" class="ui-button-icon-primary ui-icon '+h+'"></span><span class="ui-button-text" style="display: inline-block; "></span></span>';l=k.can_delete?'<span class="'+e+'delete" title="'+f("delete")+'" style="width: 18px; margin-'+m+': 3px">':"";a(d+
|
20 |
+
" tbody").append("<tr><td>"+k.translated+'</td><td id="'+e+'histby">'+j+k.user_login+'</td><td id="'+e+'histstamp">'+k.timestamp+l+"</td></tr>")});a(b+"histby,"+b+"histstamp").css("white-space","nowrap");a(d+" th").addClass("ui-widget-header").css("padding","3px");a(d+" td").addClass("ui-widget-content").css("padding","3px");a("."+e+"delete").button({icons:{primary:"ui-icon-circle-close"},text:false}).click(function(){var o=a(this).parents("tr");a.ajax({url:t_jp.post_url,data:{tr_token_hist:a(b+c).attr("data-token"),
|
21 |
+
timestamp:a(this).parents("tr").children(":last").text(),action:"delete",lang:t_jp.lang},dataType:"json",cache:false,success:function(k){if(k===false)a(o).children().addClass("ui-state-error");else{a(o).empty();v(a(b+c).attr("data-token"),k.translated,k.source)}}})});a("."+e+"delete .ui-button-text").css("display","inline-block")}})}function u(c){a(b+"original").val(a(b+c).attr("data-orig"));a(b+"translation").val(a(b+c).html());a(b+c).attr("data-trans")&&a(b+"translation").val(a(b+c).attr("data-trans"));
|
22 |
+
a(b+"translation").data("origval",a(b+"translation").val());a(b+"approve").button("enable");a(b+"prev").button("enable");a(b+"next").button("enable");a(b+(Number(c)-1)).length||a(b+"prev").button("disable");a(b+(Number(c)+1)).length||a(b+"next").button("disable");c=a(b+c).attr("data-srclang");if(c===undefined)c=t_jp.olang;a(b+"orglang").text(q[c]);a(b+"historydialog").remove();a(b+"translation").keyup()}function r(c){var d="",i="",h="",g=b+"dialog";if(t_jp.msn)d='<button class="'+e+'suggest" id="'+
|
23 |
+
e+'bing">'+f("bing suggest")+"</button>";if(t_jp.google)i='<button class="'+e+'suggest" id="'+e+'google">'+f("google suggest")+"</button>";if(t_jp.apertium)h='<button class="'+e+'suggest" id="'+e+'apertium">'+f("apertium suggest")+"</button>";a(g).remove();a('<div id="'+e+'dialog" title="'+f("Edit Translation")+'"/>').appendTo("body");a(g).css("padding","1px").append('<div style="width: 100%"><label for="original">'+f("Original text")+' (<a href="#" title="'+f("read alternate translations")+'" id="'+
|
24 |
+
e+'orglang"></a>)</label><textarea cols="80" row="3" name="original" id="'+e+'original" readonly="y"/><span id="'+e+'utlbar"><button id="'+e+'prev">'+f("previous translation")+'</button><button id="'+e+'zoom">'+f("find on page")+'</button><button id="'+e+'next">'+f("next translation")+'</button></span><label for="translation">'+f("Translate to")+'</label><textarea cols="80" row="3" name="translation" lang="'+t_jp.lang+'"id="'+e+'translation"/><span id="'+e+'ltlbar"><button id="'+e+'history">'+f("view translation log")+
|
25 |
+
'</button><button id="'+e+'keyboard">'+f("virtual keyboard")+"</button>"+i+d+h+'<button id="'+e+'approve">'+f("approve translation")+"</button></span></div>");a(b+"utlbar,"+b+"ltlbar").css({"float":n}).buttonset();a(g+" textarea").css({width:"485px",padding:".4em",margin:"2px 0 0 0",resize:"vertical"}).addClass("text ui-widget-content ui-corner-all");a(g+" label").css({display:"block",clear:"both"});a(b+"orglang").click(function(){a(b+"langmenu").length?a(b+"langmenu").toggle():a.xLazyLoader({js:[t_jp.plugin_url+
|
26 |
+
"/js/jquery.ui.menu.js"],success:function(){a.ajax({url:t_jp.post_url,data:{tr_token_alt:a(b+c).attr("data-token")},dataType:"json",cache:false,success:function(j){var l;if(!(l=a(b+c).attr("data-srclang")))l=t_jp.olang;var o='<li data-translated="'+a(b+c).attr("data-orig")+'"><a href="#">'+q[l]+"</a></li>";a(j).each(function(k,p){if(p.lang!==t_jp.lang)o=o+'<li data-translated="'+p.translated+'"><a href="#">'+q[p.lang]+"</a></li>"});a('<ul style="position: absolute; top: 0px" id="'+e+'langmenu">'+
|
27 |
+
o).appendTo(g);a(b+"langmenu").menu({select:function(k,p){a(this).hide();a(b+"original").val(p.item.attr("data-translated"));a(b+"orglang").text(p.item.text()).addClass("ui-state-highlight");q[l]===p.item.text()&&a(b+"orglang").removeClass("ui-state-highlight")},input:a(this)}).show().css({top:0,left:0}).position({my:m+" top",at:m+" bottom",of:a(b+"orglang")})}})}});return false});a(b+"prev").button({icons:{primary:"ui-icon-seek-"+w},text:false});a(b+"zoom").button({icons:{primary:"ui-icon-search"},
|
28 |
+
text:false});a(b+"next").button({icons:{primary:"ui-icon-seek-"+x},text:false});a(b+"prev").click(function(){if(a(b+"translation").data("changed")){var j=a(b+"translation").val(),l=a(b+c).attr("data-token");s(l,j)}c=Number(c)-1;u(c)});a(b+"next").click(function(){if(a(b+"translation").data("changed")){var j=a(b+"translation").val(),l=a(b+c).attr("data-token");s(l,j)}c=Number(c)+1;u(c)});a(b+"zoom").click(function(){a("html, body").animate({scrollTop:a(b+c).offset().top},500);a(g).dialog("widget").css({top:a(g).dialog("widget").offset().top-
|
29 |
+
window.scrollY,position:"fixed"});a(b+c).animate({opacity:0.1},"slow",function(){a(g).dialog("widget").css({top:a(g).dialog("widget").offset().top,position:"absolute"})}).animate({opacity:1},"slow").animate({opacity:0.1},"slow").animate({opacity:1},"slow").animate({opacity:0.1},"slow").animate({opacity:1},"slow")});a(b+"history").button({icons:{primary:"ui-icon-clipboard"},text:false}).click(function(){F(c)});a(b+"keyboard").button({icons:{primary:"ui-icon-calculator"},text:false}).click(function(){a.xLazyLoader({js:[t_jp.plugin_url+
|
30 |
+
"/js/keyboard.js"],css:[t_jp.plugin_url+"/css/keyboard.css"],success:function(){VKI_attach(a(b+"translation").get(0));VKI_show(a(b+"translation").get(0))}})});a(b+"google").button({icons:{primary:"tr-icon-google"},text:false}).click(function(){z();a("."+e+"suggest").button("enable");a(this).button("disable")});a(b+"bing").button({icons:{primary:"tr-icon-bing"},text:false}).click(function(){B();a("."+e+"suggest").button("enable");a(this).button("disable")});a(b+"apertium").button({icons:{primary:"tr-icon-apertium"},
|
31 |
+
text:false}).click(function(){D();a("."+e+"suggest").button("enable");a(this).button("disable")});a(b+"approve").button({icons:{primary:"ui-icon-check"},text:false}).click(function(){var j=a(b+"translation").val(),l=a(b+c).attr("data-token");if(a(b+"translation").data("changed")||a(b+c).attr("data-source")!=="0")s(l,j)});a(b+"translation").keyup(function(){if(a(this).data("origval")!==a(this).val()){a(this).addClass("ui-state-highlight");a(b+"approve").button("enable");a(this).data("changed",true)}else{a(this).removeClass("ui-state-highlight");
|
32 |
+
a(b+c).attr("data-source")==="0"&&a(b+"approve").button("disable");a(this).data("changed",false)}});u(c);a(g).dialog({resizable:false,width:500});if(a("html").attr("dir")==="rtl"){t(g);a(b+"utlbar button:first").addClass("ui-corner-"+m).removeClass("ui-corner-"+n);a(b+"utlbar button:last").addClass("ui-corner-"+n).removeClass("ui-corner-"+m);a(b+"ltlbar button:first").addClass("ui-corner-"+m).removeClass("ui-corner-"+n);a(b+"ltlbar button:last").addClass("ui-corner-"+n).removeClass("ui-corner-"+m)}a(b+
|
33 |
+
"orglang").blur();a(g).bind("dialogclose",function(){typeof VKI_close==="function"&&VKI_close(a(b+"translation").get(0));a(b+"historydialog").remove()});a(g).bind("dialogbeforeclose",function(){if(a(b+"translation").data("changed")){E();return false}return true})}var q={en:"English",af:"Afrikaans",sq:"Shqip",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",az:"az\u0259rbaycan dili",eu:"Euskara",be:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",
|
34 |
+
bg:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",ca:"Catal\u00e0",zh:"\u4e2d\u6587 - \u7b80\u4f53","zh-tw":"\u4e2d\u6587 - \u6f22\u5b57",hr:"Hrvatski",cs:"\u010ce\u0161tina",da:"Dansk",nl:"Nederlands",eo:"Esperanto",et:"Eesti keel",fi:"Suomi",fr:"Fran\u00e7ais",gl:"Galego",ka:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",de:"Deutsch",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",ht:"Krey\u00f2l ayisyen",he:"\u05e2\u05d1\u05e8\u05d9\u05ea",hi:"\u0939\u093f\u0928\u094d\u0926\u0940; \u0939\u093f\u0902\u0926\u0940",
|
35 |
+
hu:"Magyar",is:"\u00cdslenska",id:"Bahasa Indonesia",ga:"Gaeilge",it:"Italiano",ja:"\u65e5\u672c\u8a9e",ko:"\uc6b0\ub9ac\ub9d0",la:"lat\u012bna",lv:"Latvie\u0161u valoda",lt:"Lietuvi\u0173 kalba",mk:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a",ms:"Bahasa Melayu",mt:"Malti",no:"Norsk",fa:"\u0641\u0627\u0631\u0633\u06cc",pl:"Polski",pt:"Portugu\u00eas",ro:"Rom\u00e2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",sr:"C\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a",
|
36 |
+
sk:"Sloven\u010dina",sl:"Sloven\u0161\u010dina",es:"Espa\u00f1ol",sw:"Kiswahili",sv:"svenska",tl:"Tagalog",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",tr:"T\u00fcrk\u00e7e",uk:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648",vi:"Ti\u1ebfng Vi\u1ec7t",cy:"Cymraeg",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},e=t_jp.prefix,b="#"+e,w="prev",x="next",n="right",m="left";if(a("html").attr("dir")==="rtl"){n="left";m="right";w="next";x="prev"}a("."+e).each(function(){var c=
|
37 |
+
a(this).attr("id").substr(a(this).attr("id").lastIndexOf("_")+1),d;a(this).after('<span id="'+e+"img_"+c+'" class="tr-icon" title="'+a(this).attr("data-orig")+'"></span>');d=a(b+"img_"+c);d.click(function(){if(typeof a.fn.tabs!=="function"||typeof a.fn.buttonset!=="function"||typeof a.fn.dialog!=="function"){a.ajaxSetup({cache:true});a.getScript(t_jp.plugin_url+"/js/lazy.js",function(){a.xLazyLoader({js:t_jp.jQueryUI+"jquery-ui.min.js",css:t_jp.jQueryUI+"themes/"+t_jp.theme+"/jquery-ui.css",success:function(){t_jp.locale?
|
38 |
+
a.xLazyLoader({js:[t_jp.plugin_url+"/js/l/"+t_jp.lang+".js"],success:function(){r(c)}}):r(c)}})})}else t_jp.locale?a.xLazyLoader({js:[t_jp.plugin_url+"/js/l/"+t_jp.lang+".js"],success:function(){r(c)}}):r(c);return false}).css({border:"0px",margin:"1px",padding:"0px"});if(a(this).attr("data-source")==="0")d.addClass("tr-icon-green");else a(this).attr("data-source")&&d.addClass("tr-icon-yellow");a(this).attr("data-hidden")==="y"&&d.css({opacity:"0.6"})})})(jQuery);
|
@@ -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.3
|
7 |
-
Stable tag: 0.7.
|
8 |
|
9 |
Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
|
10 |
|
@@ -22,7 +22,7 @@ You can watch the video above, made by Fabrice Meuwissen of obviousidea.com whic
|
|
22 |
* Multiple selection for widget appearances - with pluggable widgets
|
23 |
* Translation of external plugins without a need for .po/.mo files
|
24 |
* Automatic translation mode for all content (including comments!)
|
25 |
-
* Use either Google Translate,MS Translate or Apertium backends -
|
26 |
* Automatic translation can be triggered on demand by the readers or on the server side
|
27 |
* RSS feeds are translated too
|
28 |
* Takes care of hidden elements, link tags, meta contents and titles
|
@@ -216,6 +216,10 @@ This version allows sorting of languages within the widget
|
|
216 |
* German translation by [Jenny Beelens](http://www.professionaltranslation.com)
|
217 |
|
218 |
== Changelog ==
|
|
|
|
|
|
|
|
|
219 |
= 2011/06/03 - 0.7.4 =
|
220 |
* Allow default language of Transposh to override the one set in WP_LANG, this allows a Wordpress MU installation in which every site can be managed in a different language
|
221 |
* Fixed bug with using the only="y" parameter of the tp shortcode which made incorrect detections of source language further in parsing
|
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.3
|
7 |
+
Stable tag: 0.7.5
|
8 |
|
9 |
Transposh filter allows in context quick translation of websites, it allows you to crowd-source the translation to your users
|
10 |
|
22 |
* Multiple selection for widget appearances - with pluggable widgets
|
23 |
* Translation of external plugins without a need for .po/.mo files
|
24 |
* Automatic translation mode for all content (including comments!)
|
25 |
+
* Use either Google Translate,MS Translate or Apertium backends - 65 languages supported!
|
26 |
* Automatic translation can be triggered on demand by the readers or on the server side
|
27 |
* RSS feeds are translated too
|
28 |
* Takes care of hidden elements, link tags, meta contents and titles
|
216 |
* German translation by [Jenny Beelens](http://www.professionaltranslation.com)
|
217 |
|
218 |
== Changelog ==
|
219 |
+
= 2011/06/22 - 0.7.5 =
|
220 |
+
* Added support to 5 new indic languages - Bengali, Gujarati, Kannada, Tamil and Telugu, thanks to the support provided by Google translate
|
221 |
+
* Added the option not to override the default locale with Transposh's default language
|
222 |
+
* Translation interface improvements, next and prev now save changes, and the dialog will not move on the page
|
223 |
= 2011/06/03 - 0.7.4 =
|
224 |
* Allow default language of Transposh to override the one set in WP_LANG, this allows a Wordpress MU installation in which every site can be managed in a different language
|
225 |
* Fixed bug with using the only="y" parameter of the tp shortcode which made incorrect detections of source language further in parsing
|
@@ -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.
|
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.
|
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:
|
24 |
*/
|
25 |
|
26 |
//avoid direct calls to this file where wp core files not present
|
@@ -1086,20 +1086,25 @@ class transposh_plugin {
|
|
1086 |
return $translation;
|
1087 |
}
|
1088 |
|
|
|
|
|
|
|
|
|
|
|
1089 |
function transposh_locale_filter($locale) {
|
1090 |
-
//
|
1091 |
$lang = transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url);
|
1092 |
if (!$this->options->is_viewable_language($lang)) {
|
1093 |
$lang = '';
|
1094 |
}
|
1095 |
-
if (!$lang)
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
return $lang;
|
1101 |
}
|
1102 |
-
|
|
|
|
|
1103 |
}
|
1104 |
|
1105 |
/**
|
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.5
|
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.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
24 |
*/
|
25 |
|
26 |
//avoid direct calls to this file where wp core files not present
|
1086 |
return $translation;
|
1087 |
}
|
1088 |
|
1089 |
+
/**
|
1090 |
+
* This function makes sure wordpress sees the appropriate locale on translated pages for .po/.mo and mu integration
|
1091 |
+
* @param string $locale
|
1092 |
+
* @return string
|
1093 |
+
*/
|
1094 |
function transposh_locale_filter($locale) {
|
|
|
1095 |
$lang = transposh_utils::get_language_from_url($_SERVER['REQUEST_URI'], $this->home_url);
|
1096 |
if (!$this->options->is_viewable_language($lang)) {
|
1097 |
$lang = '';
|
1098 |
}
|
1099 |
+
if (!$lang) {
|
1100 |
+
if (!$this->options->get_transposh_default_locale_override()) {
|
1101 |
+
return $locale;
|
1102 |
+
}
|
1103 |
+
$lang = $this->options->get_default_language();
|
|
|
1104 |
}
|
1105 |
+
list ($l, $n, $f, $locale) = explode(',', transposh_consts::$languages[$lang]);
|
1106 |
+
|
1107 |
+
return ($locale) ? $locale : $lang;
|
1108 |
}
|
1109 |
|
1110 |
/**
|
@@ -11,14 +11,14 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* Transposh v0.7.
|
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:
|
22 |
*/
|
23 |
|
24 |
/*
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
22 |
*/
|
23 |
|
24 |
/*
|
@@ -11,14 +11,14 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* Transposh v0.7.
|
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:
|
22 |
*/
|
23 |
|
24 |
/**
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
22 |
*/
|
23 |
|
24 |
/**
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -11,14 +11,14 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* Transposh v0.7.
|
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:
|
22 |
*/
|
23 |
|
24 |
/**
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
22 |
*/
|
23 |
|
24 |
/**
|
@@ -29,7 +29,7 @@
|
|
29 |
|
30 |
/* define the .css sprites here */
|
31 |
.trf {
|
32 |
-
background-image:url(
|
33 |
height:11px;
|
34 |
width:16px;
|
35 |
background-repeat:no-repeat;
|
@@ -44,55 +44,57 @@
|
|
44 |
.trf-az {background-position: -120px 0}
|
45 |
.trf-basque {background-position: -144px 0}
|
46 |
.trf-by {background-position: -168px 0}
|
47 |
-
.trf-
|
48 |
-
.trf-
|
49 |
-
.trf-
|
50 |
-
.trf-
|
51 |
-
.trf-
|
52 |
-
.trf-
|
53 |
-
.trf-
|
54 |
-
.trf-
|
55 |
-
.trf-
|
56 |
-
.trf-
|
57 |
-
.trf-
|
58 |
-
.trf-
|
59 |
-
.trf-
|
60 |
-
.trf-
|
61 |
-
.trf-
|
62 |
-
.trf-
|
63 |
-
.trf-
|
64 |
-
.trf-
|
65 |
-
.trf-
|
66 |
-
.trf-
|
67 |
-
.trf-
|
68 |
-
.trf-
|
69 |
-
.trf-
|
70 |
-
.trf-
|
71 |
-
.trf-
|
72 |
-
.trf-
|
73 |
-
.trf-
|
74 |
-
.trf-
|
75 |
-
.trf-
|
76 |
-
.trf-
|
77 |
-
.trf-
|
78 |
-
.trf-
|
79 |
-
.trf-
|
80 |
-
.trf-
|
81 |
-
.trf-
|
82 |
-
.trf-
|
83 |
-
.trf-
|
84 |
-
.trf-
|
85 |
-
.trf-
|
86 |
-
.trf-
|
87 |
-
.trf-
|
88 |
-
.trf-
|
89 |
-
.trf-
|
90 |
-
.trf-
|
91 |
-
.trf-
|
92 |
-
.trf-
|
93 |
-
.trf-
|
94 |
-
.trf-
|
95 |
-
.trf-
|
96 |
-
.trf-
|
97 |
-
.trf-
|
98 |
-
.trf-
|
|
|
|
29 |
|
30 |
/* define the .css sprites here */
|
31 |
.trf {
|
32 |
+
background-image:url(flags65.png);
|
33 |
height:11px;
|
34 |
width:16px;
|
35 |
background-repeat:no-repeat;
|
44 |
.trf-az {background-position: -120px 0}
|
45 |
.trf-basque {background-position: -144px 0}
|
46 |
.trf-by {background-position: -168px 0}
|
47 |
+
.trf-bd {background-position: -192px 0}
|
48 |
+
.trf-bg {background-position: -216px 0}
|
49 |
+
.trf-catalonia {background-position: -240px 0}
|
50 |
+
.trf-cn {background-position: -264px 0}
|
51 |
+
.trf-tw {background-position: -288px 0}
|
52 |
+
.trf-hr {background-position: -312px 0}
|
53 |
+
.trf-cz {background-position: -336px 0}
|
54 |
+
.trf-dk {background-position: -360px 0}
|
55 |
+
.trf-nl {background-position: -384px 0}
|
56 |
+
.trf-esperanto {background-position: -408px 0}
|
57 |
+
.trf-ee {background-position: -432px 0}
|
58 |
+
.trf-fi {background-position: -456px 0}
|
59 |
+
.trf-fr {background-position: -480px 0}
|
60 |
+
.trf-galicia {background-position: -504px 0}
|
61 |
+
.trf-ge {background-position: -528px 0}
|
62 |
+
.trf-de {background-position: -552px 0}
|
63 |
+
.trf-gr {background-position: -576px 0}
|
64 |
+
.trf-in {background-position: -600px 0}
|
65 |
+
.trf-ht {background-position: -624px 0}
|
66 |
+
.trf-il {background-position: -648px 0}
|
67 |
+
.trf-hu {background-position: -672px 0}
|
68 |
+
.trf-is {background-position: -696px 0}
|
69 |
+
.trf-id {background-position: -720px 0}
|
70 |
+
.trf-ie {background-position: -744px 0}
|
71 |
+
.trf-it {background-position: -768px 0}
|
72 |
+
.trf-jp {background-position: -792px 0}
|
73 |
+
.trf-kr {background-position: -816px 0}
|
74 |
+
.trf-va {background-position: -840px 0}
|
75 |
+
.trf-lv {background-position: -864px 0}
|
76 |
+
.trf-lt {background-position: -888px 0}
|
77 |
+
.trf-mk {background-position: -912px 0}
|
78 |
+
.trf-my {background-position: -936px 0}
|
79 |
+
.trf-mt {background-position: -960px 0}
|
80 |
+
.trf-no {background-position: -984px 0}
|
81 |
+
.trf-ir {background-position: -1008px 0}
|
82 |
+
.trf-pl {background-position: -1032px 0}
|
83 |
+
.trf-pt {background-position: -1056px 0}
|
84 |
+
.trf-ro {background-position: -1080px 0}
|
85 |
+
.trf-ru {background-position: -1104px 0}
|
86 |
+
.trf-rs {background-position: -1128px 0}
|
87 |
+
.trf-sk {background-position: -1152px 0}
|
88 |
+
.trf-si {background-position: -1176px 0}
|
89 |
+
.trf-es {background-position: -1200px 0}
|
90 |
+
.trf-ke {background-position: -1224px 0}
|
91 |
+
.trf-se {background-position: -1248px 0}
|
92 |
+
.trf-ph {background-position: -1272px 0}
|
93 |
+
.trf-lk {background-position: -1296px 0}
|
94 |
+
.trf-th {background-position: -1320px 0}
|
95 |
+
.trf-tr {background-position: -1344px 0}
|
96 |
+
.trf-ua {background-position: -1368px 0}
|
97 |
+
.trf-pk {background-position: -1392px 0}
|
98 |
+
.trf-vn {background-position: -1416px 0}
|
99 |
+
.trf-wales {background-position: -1440px 0}
|
100 |
+
.trf-europeanunion {background-position: -1464px 0}
|
@@ -11,14 +11,14 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* Transposh v0.7.
|
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:
|
22 |
*/
|
23 |
|
24 |
/**
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
22 |
*/
|
23 |
|
24 |
/**
|
@@ -11,14 +11,14 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* Transposh v0.7.
|
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:
|
22 |
*/
|
23 |
|
24 |
/**
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
22 |
*/
|
23 |
|
24 |
/**
|
@@ -11,14 +11,14 @@
|
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
* Transposh v0.7.
|
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:
|
22 |
*/
|
23 |
|
24 |
/**
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
22 |
*/
|
23 |
|
24 |
/**
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/*
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/*
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/*
|
@@ -113,6 +113,7 @@ class transposh_plugin_admin {
|
|
113 |
$this->transposh->options->set_enable_search_translate($_POST[ENABLE_SEARCH_TRANSLATE]);
|
114 |
$this->transposh->options->set_enable_url_translate($_POST[ENABLE_URL_TRANSLATE]);
|
115 |
$this->transposh->options->set_transposh_gettext_integration($_POST[TRANSPOSH_GETTEXT_INTEGRATION]);
|
|
|
116 |
$this->transposh->options->set_preferred_translator($_POST[PREFERRED_TRANSLATOR]);
|
117 |
$this->transposh->options->set_transposh_key($_POST[TRANSPOSH_KEY]);
|
118 |
|
@@ -451,6 +452,15 @@ class transposh_plugin_admin {
|
|
451 |
echo '<h4>' . __('Enable gettext integration', TRANSPOSH_TEXT_DOMAIN) . ' (' . __('experimental', TRANSPOSH_TEXT_DOMAIN) . ')</h4>';
|
452 |
echo '<input type="checkbox" value="1" name="' . TRANSPOSH_GETTEXT_INTEGRATION . '" ' . $this->checked($this->transposh->options->get_transposh_gettext_integration()) . '/> ' .
|
453 |
__('Enable integration of Transposh with existing gettext interface (.po/.mo files)', TRANSPOSH_TEXT_DOMAIN);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
}
|
455 |
|
456 |
function on_contentbox_auto_translation_content($data) {
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/*
|
113 |
$this->transposh->options->set_enable_search_translate($_POST[ENABLE_SEARCH_TRANSLATE]);
|
114 |
$this->transposh->options->set_enable_url_translate($_POST[ENABLE_URL_TRANSLATE]);
|
115 |
$this->transposh->options->set_transposh_gettext_integration($_POST[TRANSPOSH_GETTEXT_INTEGRATION]);
|
116 |
+
$this->transposh->options->set_transposh_default_locale_override($_POST[TRANSPOSH_DEFAULT_LOCALE_OVERRIDE]);
|
117 |
$this->transposh->options->set_preferred_translator($_POST[PREFERRED_TRANSLATOR]);
|
118 |
$this->transposh->options->set_transposh_key($_POST[TRANSPOSH_KEY]);
|
119 |
|
452 |
echo '<h4>' . __('Enable gettext integration', TRANSPOSH_TEXT_DOMAIN) . ' (' . __('experimental', TRANSPOSH_TEXT_DOMAIN) . ')</h4>';
|
453 |
echo '<input type="checkbox" value="1" name="' . TRANSPOSH_GETTEXT_INTEGRATION . '" ' . $this->checked($this->transposh->options->get_transposh_gettext_integration()) . '/> ' .
|
454 |
__('Enable integration of Transposh with existing gettext interface (.po/.mo files)', TRANSPOSH_TEXT_DOMAIN);
|
455 |
+
|
456 |
+
/**
|
457 |
+
* Insert the option to enable default locale override
|
458 |
+
* Enabled by default.
|
459 |
+
* @since 0.7.5
|
460 |
+
*/
|
461 |
+
echo '<h4>' . __('Enable override for default locale', TRANSPOSH_TEXT_DOMAIN) . '</h4>';
|
462 |
+
echo '<input type="checkbox" value="1" name="' . TRANSPOSH_DEFAULT_LOCALE_OVERRIDE . '" ' . $this->checked($this->transposh->options->get_transposh_default_locale_override()) . '/> ' .
|
463 |
+
__('Enable overriding the default locale that is set in WP_LANG on default languages pages (such as untranslated pages and admin pages)', TRANSPOSH_TEXT_DOMAIN);
|
464 |
}
|
465 |
|
466 |
function on_contentbox_auto_translation_content($data) {
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/*
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/*
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/*
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/*
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/**
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/**
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
// OLD Options - To be removed
|
@@ -46,6 +46,10 @@ define('ENABLE_DEFAULT_TRANSLATE', 'enable_default_translate');
|
|
46 |
define('ENABLE_SEARCH_TRANSLATE', 'enable_search_translate');
|
47 |
//Option to enable/disable url translation @since 0.5.3
|
48 |
define('ENABLE_URL_TRANSLATE', 'enable_url_translate');
|
|
|
|
|
|
|
|
|
49 |
//Option to enable/disable rewrite of permalinks
|
50 |
define('ENABLE_PERMALINKS', 'enable_permalinks');
|
51 |
//Option to enable/disable footer scripts (2.8 and up)
|
@@ -68,8 +72,6 @@ define('WIDGET_THEME', 'widget_theme');
|
|
68 |
define('TRANSPOSH_KEY', 'transposh_key');
|
69 |
//Stores the site key to transposh services (backup @since 0.5.0)
|
70 |
define('TRANSPOSH_BACKUP_SCHEDULE', 'transposh_backup_schedule');
|
71 |
-
//Make the gettext interface optional (@since 0.6.4)
|
72 |
-
define('TRANSPOSH_GETTEXT_INTEGRATION', 'transposh_gettext_integration');
|
73 |
|
74 |
class transposh_plugin_options {
|
75 |
//constructor of class, PHP4 compatible construction for backward compatibility
|
@@ -92,6 +94,7 @@ class transposh_plugin_options {
|
|
92 |
$this->set_default_option_value(ENABLE_AUTO_TRANSLATE, 1);
|
93 |
$this->set_default_option_value(PREFERRED_TRANSLATOR, 1);
|
94 |
$this->set_default_option_value(TRANSPOSH_GETTEXT_INTEGRATION, 1);
|
|
|
95 |
$this->set_default_option_value(VIEWABLE_LANGS);
|
96 |
$this->set_default_option_value(EDITABLE_LANGS);
|
97 |
//$this->set_default_option_value(SORTED_LANGS);
|
@@ -259,6 +262,10 @@ class transposh_plugin_options {
|
|
259 |
return $this->options[TRANSPOSH_GETTEXT_INTEGRATION];
|
260 |
}
|
261 |
|
|
|
|
|
|
|
|
|
262 |
/**
|
263 |
* Sets a value at the options array
|
264 |
* @param mixed $val
|
@@ -390,6 +397,11 @@ class transposh_plugin_options {
|
|
390 |
$this->set_value($val, $this->options[TRANSPOSH_GETTEXT_INTEGRATION]);
|
391 |
}
|
392 |
|
|
|
|
|
|
|
|
|
|
|
393 |
/**
|
394 |
* Updates options at the wordpress options table if there was a change
|
395 |
*/
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
// OLD Options - To be removed
|
46 |
define('ENABLE_SEARCH_TRANSLATE', 'enable_search_translate');
|
47 |
//Option to enable/disable url translation @since 0.5.3
|
48 |
define('ENABLE_URL_TRANSLATE', 'enable_url_translate');
|
49 |
+
//Make the gettext interface optional (@since 0.6.4)
|
50 |
+
define('TRANSPOSH_GETTEXT_INTEGRATION', 'transposh_gettext_integration');
|
51 |
+
//Allow override for default locale (@since 0.7.5)
|
52 |
+
define('TRANSPOSH_DEFAULT_LOCALE_OVERRIDE', 'transposh_locale_override');
|
53 |
//Option to enable/disable rewrite of permalinks
|
54 |
define('ENABLE_PERMALINKS', 'enable_permalinks');
|
55 |
//Option to enable/disable footer scripts (2.8 and up)
|
72 |
define('TRANSPOSH_KEY', 'transposh_key');
|
73 |
//Stores the site key to transposh services (backup @since 0.5.0)
|
74 |
define('TRANSPOSH_BACKUP_SCHEDULE', 'transposh_backup_schedule');
|
|
|
|
|
75 |
|
76 |
class transposh_plugin_options {
|
77 |
//constructor of class, PHP4 compatible construction for backward compatibility
|
94 |
$this->set_default_option_value(ENABLE_AUTO_TRANSLATE, 1);
|
95 |
$this->set_default_option_value(PREFERRED_TRANSLATOR, 1);
|
96 |
$this->set_default_option_value(TRANSPOSH_GETTEXT_INTEGRATION, 1);
|
97 |
+
$this->set_default_option_value(TRANSPOSH_DEFAULT_LOCALE_OVERRIDE, 1);
|
98 |
$this->set_default_option_value(VIEWABLE_LANGS);
|
99 |
$this->set_default_option_value(EDITABLE_LANGS);
|
100 |
//$this->set_default_option_value(SORTED_LANGS);
|
262 |
return $this->options[TRANSPOSH_GETTEXT_INTEGRATION];
|
263 |
}
|
264 |
|
265 |
+
function get_transposh_default_locale_override() {
|
266 |
+
return $this->options[TRANSPOSH_DEFAULT_LOCALE_OVERRIDE];
|
267 |
+
}
|
268 |
+
|
269 |
/**
|
270 |
* Sets a value at the options array
|
271 |
* @param mixed $val
|
397 |
$this->set_value($val, $this->options[TRANSPOSH_GETTEXT_INTEGRATION]);
|
398 |
}
|
399 |
|
400 |
+
function set_transposh_default_locale_override($val) {
|
401 |
+
$val = ($val) ? 1 : 0;
|
402 |
+
$this->set_value($val, $this->options[TRANSPOSH_DEFAULT_LOCALE_OVERRIDE]);
|
403 |
+
}
|
404 |
+
|
405 |
/**
|
406 |
* Updates options at the wordpress options table if there was a change
|
407 |
*/
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/*
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/*
|
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
* Transposh v0.7.
|
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:
|
12 |
*/
|
13 |
|
14 |
/*
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
* Transposh v0.7.5
|
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: Wed, 22 Jun 2011 17:26:47 +0300
|
12 |
*/
|
13 |
|
14 |
/*
|