diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/changelog /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/changelog --- youtranslate-1.1.9/debian/changelog 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/changelog 2008-06-13 23:51:06.000000000 +0200 @@ -1,3 +1,55 @@ +youtranslate (1.1.10-0ubuntu2~hardy1) hardy-proposed; urgency=low + + * Stable Release Update - Backport from Intrepid (LP: #239719, #236483): + - Fixes a FTBFS. + - Updates the service provider information, to make the package + usable again. + - Include some other fixes and improvements (they can be considered + zero-risk). + + -- Siegfried-Angel Gevatter Pujals (RainCT) Fri, 13 Jun 2008 22:38:55 +0200 + +youtranslate (1.1.10-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Adjust the mono compiler dependency to fix a FTBFS. + + -- Siegfried-Angel Gevatter Pujals (RainCT) Thu, 12 Jun 2008 16:50:52 +0200 + +youtranslate (1.1.10-0ubuntu1) intrepid; urgency=low + + * New upstream release (LP: #159249). + * debian/patches/fix-makefile-dependencies.patch: + - Fix Makefile.youtranslate for it to build. + * debian/patches/update-service-providers.patch: + - Update the service provider information as the websites changed + and this program didn't work anymore, and remove WordLingo and + Systran because they can't be used over GET anymore (LP: #236483). + * debian/control: + - Bump Standards Version to 3.7.3: Move Homepage field to Source stanza. + - Update the Homepage field to point to the new website. + - Improve the description (both sort and long). + - Some formatting changes. + - Add a dependencies on cdbs and sharutils and bump the debhelper version. + * debian/copyright: + - Minor changes. + * debian/docs: + - Remove this file; the README is not interesting. + * debian/menu: + - Fix the menu file (it dependend on a wrong package) and improve it. + - Update the category to the new format (Applications/Text). + - Add an Icon. + * debian/dirs, debian/youtranslate.{xpm,.png.uuencode,.desktop}: + - Add them. + * debian/rules: + - Switch to CDBS and do some other changes. + * debian/install: + - Add this file to install the icons and the .desktop file. + * debian/youtranslate.1: + - Improve it. + + -- Siegfried-Angel Gevatter Pujals (RainCT) Thu, 12 Jun 2008 00:30:35 +0200 + youtranslate (1.1.9-0ubuntu1) gutsy; urgency=low * Initial release - orig tarball remade in order to add COPYING.lib file diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/control /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/control --- youtranslate-1.1.9/debian/control 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/control 2008-06-13 23:51:06.000000000 +0200 @@ -2,18 +2,26 @@ Section: utils Priority: optional Maintainer: Ubuntu MOTU Developers -XSBC-Original-Maintainer: Cyril LAVIER -Build-Depends: debhelper (>= 5), libgtk2.0-dev, libglade2.0-cil, libgtk2.0-cil, mono-gmcs (>=1.1.8) | c-sharp-2.0-compiler, cli-common-dev (>= 0.4.4) -Standards-Version: 3.7.2 +Homepage: http://www.laas02.org/youtranslate +Build-Depends: cdbs (>= 0.4.49), + debhelper (>= 5.0.37.1), + sharutils, + libgtk2.0-dev, + libglade2.0-cil, + libgtk2.0-cil, + mono-mcs (>= 1.1.8), + cli-common-dev (>= 0.4.4) +Standards-Version: 3.7.3 Package: youtranslate Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends} -Description: Web translator - Small and simple application that lets you use some internet translation - services in an easy and fast way. +Depends: ${shlibs:Depends}, + ${misc:Depends}, + ${cli:Depends} +Description: graphical translator which makes use of online services + YouTranslate! is a small application that lets you make use of some online + translation services in an easy and fast way, without the need for a web + browser. . - With YouTranslate! it's possible to skip many of the previous steps and - focus your attention only on what do you want to translate. - . - Homepage: http://www.laas02.org/youtranslate + Currently it supports the following translations services: Google and Yahoo! + Babel Fish. diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/copyright /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/copyright --- youtranslate-1.1.9/debian/copyright 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/copyright 2008-06-13 23:51:06.000000000 +0200 @@ ... ... @@ This package was debianized by Cyril LAVIER on Sat, 21 Apr 2007 11:52:56 +0100. -It was downloaded from http://laas.altervista.org/youtranslate/ytindex.php +It was downloaded from http://www.laas02.org/youtranslate -Upstream Author: Salvatore Scarciglia +Upstream Author: -Copyright : Copyright (C) 2006 Salvatore Scarciglia + Salvatore Scarciglia + +Copyright: + + Copyright (C) 2006 Salvatore Scarciglia License: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with this package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + On Debian systems, the complete text of the GNU General Public License can + be found in `/usr/share/common-licenses/LGPL-2'. -On Debian systems, the complete text of the GNU Lesser General -Public License can be found in `/usr/share/common-licenses/LGPL'. +File yTTrayLib.cs was taken from: +http://www.mono-project.com/GtkSharpNotificationIcon -The Debian packaging is (C) 2007, Cyril LAVIER and -is licensed under the GPL, see `/usr/share/common-licenses/GPL'. +The Debian packaging is (C) 2007 Cyril LAVIER , +(C) 2008 Siegfried-A. Gevatter and it is licensed under +the GPL, see `/usr/share/common-licenses/GPL'. diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/dirs /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/dirs --- youtranslate-1.1.9/debian/dirs 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/dirs 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,2 @@ +usr/bin +usr/lib/youtranslate diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/docs /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/docs --- youtranslate-1.1.9/debian/docs 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/docs 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -README diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/install /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/install --- youtranslate-1.1.9/debian/install 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/install 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,3 @@ +debian/youtranslate.xpm usr/share/pixmaps +debian/youtranslate.png usr/share/pixmaps +debian/youtranslate.desktop usr/share/applications diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/manpages /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/manpages --- youtranslate-1.1.9/debian/manpages 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/manpages 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1 @@ +debian/youtranslate.1 diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/menu /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/menu --- youtranslate-1.1.9/debian/menu 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/menu 2008-06-13 23:51:06.000000000 +0200 @@ -1,2 +1,7 @@ -?package(radiocap): needs="X11" section="Apps/Accessories" title="Youtranslate" \ -longtitle="Automatic Translater" command="/usr/bin/youtranslate" +?package(youtranslate): \ + needs="X11" \ + section="Applications/Text" \ + title="YouTranslate!" \ + longtitle="Automatic Online Translater" \ + command="/usr/bin/youtranslate" \ + icon="/usr/share/pixmaps/youtranslate.xpm" diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/patches/fix-makefile-dependencies.patch /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/patches/fix-makefile-dependencies.patch --- youtranslate-1.1.9/debian/patches/fix-makefile-dependencies.patch 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/patches/fix-makefile-dependencies.patch 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,14 @@ +diff -Nur -x '*.orig' -x '*~' youtranslate-1.1.10/Makefile.youtranslate youtranslate-1.1.10.new/Makefile.youtranslate +--- youtranslate-1.1.10/Makefile.youtranslate 2008-06-12 01:26:17.000000000 +0200 ++++ youtranslate-1.1.10.new/Makefile.youtranslate 2008-06-12 01:27:15.000000000 +0200 +@@ -35,8 +35,8 @@ + RESOURCES_BUILD = $(foreach res,$(RESOURCES), $(addprefix -resource:,$(res)),$(notdir $(res))) + + PKG_REFERENCES = \ +-gtk-sharp \ +-glade-sharp ++gtk-sharp-2.0 \ ++glade-sharp-2.0 + + PKG_REFERENCES_BUILD = $(addprefix -pkg:, $(PKG_REFERENCES)) + diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/patches/update-service-providers.patch /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/patches/update-service-providers.patch --- youtranslate-1.1.9/debian/patches/update-service-providers.patch 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/patches/update-service-providers.patch 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,369 @@ +diff -Nur -x '*.orig' -x '*~' youtranslate-1.1.10/yt.glade youtranslate-1.1.10.new/yt.glade +--- youtranslate-1.1.10/yt.glade 2007-09-03 17:13:06.000000000 +0200 ++++ youtranslate-1.1.10.new/yt.glade 2008-06-12 15:04:30.000000000 +0200 +@@ -438,7 +438,7 @@ + + True + True +- BabelFish ++ Yahoo! Babel Fish + True + GTK_RELIEF_NORMAL + True +@@ -454,46 +454,6 @@ + + + +- +- +- True +- False +- True +- Systran +- True +- GTK_RELIEF_NORMAL +- True +- False +- False +- True +- radioProvider1 +- +- +- 0 +- False +- False +- +- +- +- +- +- True +- True +- BabelFish Yahoo +- True +- GTK_RELIEF_NORMAL +- True +- False +- False +- True +- radioProvider1 +- +- +- 0 +- False +- False +- +- + + + +diff -Nur -x '*.orig' -x '*~' youtranslate-1.1.10/yTLargeTRanslator.cs youtranslate-1.1.10.new/yTLargeTRanslator.cs +--- youtranslate-1.1.10/yTLargeTRanslator.cs 2006-11-05 14:09:59.000000000 +0100 ++++ youtranslate-1.1.10.new/yTLargeTRanslator.cs 2008-06-12 15:04:30.000000000 +0200 +@@ -35,9 +35,6 @@ + [Widget] Gtk.Image imgLogo; + [Widget] Gtk.RadioButton radioProvider1; + [Widget] Gtk.RadioButton radioProvider2; +- [Widget] Gtk.RadioButton radioProvider3; +- [Widget] Gtk.RadioButton radioProvider4; +- [Widget] Gtk.RadioButton radioProvider5; + [Widget] Gtk.CheckButton chkStartIco; + [Widget] Gtk.CheckButton chkAllDesk; + //private yTService currentService; +@@ -86,15 +83,6 @@ + case 2: + radioProvider2.Active = true; + break; +- case 3: +- radioProvider3.Active = true; +- break; +- case 4: +- radioProvider4.Active = true; +- break; +- case 5: +- radioProvider5.Active = true; +- break; + } + } + +@@ -108,9 +96,6 @@ + cmdCancel.Clicked+=buttonHandler; + radioProvider1.Clicked+=radioHandler; + radioProvider2.Clicked+=radioHandler; +- radioProvider3.Clicked+=radioHandler; +- radioProvider4.Clicked+=radioHandler; +- radioProvider5.Clicked+=radioHandler; + chkStartIco.Toggled+=checkHandler; + chkAllDesk.Toggled+=checkHandler; + imgLogo.FromPixbuf = new Gdk.Pixbuf(null,"yTLogo.png"); +@@ -131,9 +116,6 @@ + RadioButton b = (RadioButton) o; + if(b==radioProvider1) selectedProvider=1; + else if(b==radioProvider2) selectedProvider=2; +- else if(b==radioProvider3)selectedProvider=3; +- else if(b==radioProvider4)selectedProvider=4; +- else if(b==radioProvider5)selectedProvider=5; + } + + +@@ -149,4 +131,4 @@ + } + + +-} +\ No newline at end of file ++} +diff -Nur -x '*.orig' -x '*~' youtranslate-1.1.10/yTProvider.cs youtranslate-1.1.10.new/yTProvider.cs +--- youtranslate-1.1.10/yTProvider.cs 2007-09-18 17:28:51.000000000 +0200 ++++ youtranslate-1.1.10.new/yTProvider.cs 2008-06-12 15:05:02.000000000 +0200 +@@ -24,10 +24,7 @@ + ID | Name + -------------------------- + 1 | Google +- 2 | BabelFish (Altavista) +- 3 | Systran +- 4 | WorldLingo +- 5 | Babel Fish (Yahoo) ++ 2 | Yahoo! Babel Fish + -------------------------- + */ + +@@ -61,18 +58,34 @@ + _MainUrl = "http://www.google.com"; + _LangSep = "|"; + _OpenTag1 = ""; + _AvailableServices = "zh_en#nl_en#nl_fr#fr_en#fr_de#fr_el#"+ + "fr_it#fr_pt#fr_nl#fr_es#de_en#de_fr#"+ + "el_en#el_fr#it_en#it_fr#ja_en#ko_en#"+ +@@ -80,68 +93,6 @@ + "en_nl#en_fr#en_de#en_el#en_it#en_ja#"+ + "en_ko#en_pt#en_ru#en_es"; + break; +- case 3: // Systran +- _Name = "Systran"; +- _MainUrl = "http://www.systranbox.com"; +- _LangSep = "_"; +- _OpenTag1 = "translation"; +- _OpenTag2 = "ual\">"; +- _CloseTag = ""; +- _AvailableServices = "zh_en#nl_en#nl_fr#fr_en#fr_de#fr_el#"+ +- "fr_it#fr_pt#fr_nl#fr_es#de_en#de_fr#"+ +- "el_en#el_fr#it_en#it_fr#ja_en#ko_en#"+ +- "pt_en#pt_fr#ru_en#es_en#es_fr#en_zh#"+ +- "en_nl#en_fr#en_de#en_el#en_it#en_ja#"+ +- "en_ko#en_pt#en_ru#en_es#sv_en#ar_en#"+ +- "en_sv#en_ar"; +- break; +- case 4: // WorldLingo +- _Name = "WorldLingo"; +- _MainUrl = "http://www.WorldLingo.com"; +- _LangSep = "_"; +- _OpenTag1 = "wl_result"; +- _OpenTag2 = ">"; +- _CloseTag = ""; +- _AvailableServices = "en_zh#en_nl#en_fr#en_de#en_el#en_it#"+ +- "en_ja#en_ko#en_pt#en_ru#en_es#"+ +- "zh_en#zh_nl#zh_fr#zh_de#zh_el#zh_it#"+ +- "zh_ja#zh_ko#zh_pt#zh_ru#zh_es#"+ +- "nl_en#nl_zh#nl_fr#nl_de#nl_el#nl_it#"+ +- "nl_ja#nl_ko#nl_pt#nl_ru#nl_es#"+ +- "fr_en#fr_zh#fr_nl#fr_de#fr_el#fr_it#"+ +- "fr_ja#fr_ko#fr_pt#fr_ru#fr_es#"+ +- "de_en#de_zh#de_nl#de_fr#de_el#de_it#"+ +- "de_ja#de_ko#de_pt#de_ru#de_es#"+ +- "el_en#el_zh#el_nl#el_fr#el_de#el_it#"+ +- "el_ja#el_ko#el_pt#el_ru#el_es#"+ +- "it_en#it_zh#it_nl#it_fr#it_de#it_el#"+ +- "it_ja#it_ko#it_pt#it_ru#it_es#"+ +- "ja_en#ja_zh#ja_nl#ja_fr#ja_de#ja_el#"+ +- "ja_it#ja_ko#ja_pt#ja_ru#ja_es#"+ +- "ko_en#ko_zh#ko_nl#ko_fr#ko_de#ko_el#"+ +- "ko_it#ko_ja#ko_pt#ko_ru#ko_es#"+ +- "pt_en#pt_zh#pt_nl#pt_fr#pt_de#pt_el#"+ +- "pt_it#pt_ja#pt_ko#pt_ru#pt_es#"+ +- "ru_en#ru_zh#ru_nl#ru_fr#ru_de#ru_el#"+ +- "ru_it#ru_ja#ru_ko#ru_pt#ru_es#"+ +- "es_en#es_zh#es_nl#es_fr#es_de#es_el#"+ +- "es_it#es_ja#es_ko#es_pt#es_ru"; +- break; +- case 5: // BabelFish (Yahoo) +- _Name = "BabelFish Yahoo"; +- _MainUrl = "http://it.search.yahoo.com"; +- _LangSep = "_"; +- _OpenTag1 = ""; +- _AvailableServices = "zh_en#en_zh#en_nl#en_fr#en_de#en_el#"+ +- "en_it#en_ja#en_ko#en_pt#en_ru#en_es#"+ +- "nl_en#nl_fr#fr_nl#fr_en#fr_de#fr_el#"+ +- "fr_it#fr_pt#fr_es#de_en#de_fr#el_en#"+ +- "el_fr#it_en#it_fr#ja_en#ko_en#pt_en#"+ +- "pt_fr#ru_en#es_en#es_fr"; +- +- break; + } + } + +@@ -154,32 +105,18 @@ + return true; + } + +- +- + // return the URL of the provider + public string getUrlTranslator(string langFrom, string langTo, string textToTransalte){ + string resUrl=_MainUrl; + switch(_ID) { + case 1: // Google +- resUrl+="/translate_t?text="+textToTransalte+ +- "&langpair="+langFrom+_LangSep+langTo+"&ie=utf8&oe=utf8"; +- break; +- case 2: // BabelFish (Altavista) +- resUrl+="/babelfish/tr?urltext="+textToTransalte+ +- "&lp="+langFrom+_LangSep+langTo+"&enc=utf8"; ++ resUrl+="/translate_t?text="+textToTransalte+"&langpair="+ ++ langFrom+_LangSep+langTo+"&ie=utf8&oe=utf8"; + break; +- case 3: // Systran +- resUrl+="/systran/box?systran_charset=utf-8&ttype=text&systran_text="+textToTransalte+ +- "&systran_lp="+langFrom+_LangSep+langTo+""; +- break; +- case 4: // WorldLingo +- resUrl+="/wl/translate?wl_text="+textToTransalte+ +- "&wl_srclang="+langFrom+"&wl_trglang="+langTo+"&wl_ucp=1"; +- break; +- case 5: // BabelFish (Yahoo) +- resUrl+="/language/translate?doit=done&tt=text&intl=1&text="+textToTransalte+ ++ case 2: // Yahoo! Babel Fish ++ resUrl+="/translate_txt?ei=UTF-8&trtext="+textToTransalte+ + "&lp="+langFrom+_LangSep+langTo+""; +- break; ++ break; + } + return resUrl; + } +@@ -208,4 +145,4 @@ + } + // Public Properties :: end + +-} +\ No newline at end of file ++} +diff -Nur -x '*.orig' -x '*~' youtranslate-1.1.10/yTToolWin.cs youtranslate-1.1.10.new/yTToolWin.cs +--- youtranslate-1.1.10/yTToolWin.cs 2007-09-03 17:12:11.000000000 +0200 ++++ youtranslate-1.1.10.new/yTToolWin.cs 2008-06-12 15:04:35.000000000 +0200 +@@ -33,9 +33,6 @@ + [Widget] Gtk.Image imgLogo; + [Widget] Gtk.RadioButton radioProvider1; + [Widget] Gtk.RadioButton radioProvider2; +- [Widget] Gtk.RadioButton radioProvider3; +- // [Widget] Gtk.RadioButton radioProvider4; (G2.16) +- [Widget] Gtk.RadioButton radioProvider5; + [Widget] Gtk.SpinButton spinLarge; + [Widget] Gtk.CheckButton chkStartIco; + [Widget] Gtk.CheckButton chkAllDesk; +@@ -95,15 +92,6 @@ + case 2: + radioProvider2.Active = true; + break; +-/* case 3: +- radioProvider3.Active = true; +- break; +- case 4: +- radioProvider4.Active = true; +- break; +-*/ case 5: +- radioProvider5.Active = true; +- break; + } + } + +@@ -117,9 +105,6 @@ + cmdCancel.Clicked+=buttonHandler; + radioProvider1.Clicked+=radioHandler; + radioProvider2.Clicked+=radioHandler; +- //radioProvider3.Clicked+=radioHandler; +- //radioProvider4.Clicked+=radioHandler; +- radioProvider5.Clicked+=radioHandler; + chkStartIco.Toggled+=checkHandler; + chkAllDesk.Toggled+=checkHandler; + imgLogo.FromPixbuf = new Gdk.Pixbuf(null,"yTLogo.png"); +@@ -140,9 +125,6 @@ + RadioButton b = (RadioButton) o; + if(b==radioProvider1) selectedProvider=1; + else if(b==radioProvider2) selectedProvider=2; +- //else if(b==radioProvider3)selectedProvider=3; +- //else if(b==radioProvider4)selectedProvider=4; +- else if(b==radioProvider5)selectedProvider=5; + } + + private void buttonHandler(object o, EventArgs args){ +@@ -158,4 +140,4 @@ + } + + +-} +\ No newline at end of file ++} +diff -Nur -x '*.orig' -x '*~' youtranslate-1.1.10/yTUserPrefs.cs youtranslate-1.1.10.new/yTUserPrefs.cs +--- youtranslate-1.1.10/yTUserPrefs.cs 2006-11-05 14:09:59.000000000 +0100 ++++ youtranslate-1.1.10.new/yTUserPrefs.cs 2008-06-12 15:04:35.000000000 +0200 +@@ -62,6 +62,12 @@ + } + } + xr.Close(); ++ if (_providerID > 2) { ++ // Ensure that the provider still exists, as some were removed. ++ // If we wouldn't do this, many existing users would get a crash ++ // if they don't change the provider after the update. ++ _providerID = 1; ++ } + } + catch(Exception e){ + saveBookmarks(true); +@@ -124,4 +130,4 @@ + } + // Public Properties :: end + +-} +\ No newline at end of file ++} diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/rules /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/rules --- youtranslate-1.1.9/debian/rules 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/rules 2008-06-13 23:51:06.000000000 +0200 @@ -1,84 +1,27 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +export MONO_SHARED_DIR=$(CURDIR) +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +build/youtranslate:: + ./make.sh + uudecode debian/youtranslate.png.uuencode +install/youtranslate:: + mv youtranslate.exe debian/youtranslate/usr/lib/youtranslate/youtranslate.exe + cp debian/wrapper debian/youtranslate/usr/bin/youtranslate -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -build: build-stamp - -build-stamp: - dh_testdir - - # Add here commands to compile the package. - #$(MAKE) - $(MAKE) -f Makefile.solution.youtranslate - #docbook-to-man debian/youtranslate.sgml > youtranslate.1 - - touch $@ +binary-install/youtranslate:: + dh_desktop -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp +common-binary-predeb-indep:: + dh_clifixperms + dh_clideps -d - # Add here commands to clean up after the build process. - # -$(MAKE) clean +clean:: + rm -f debian/youtranslate.png rm -f youtranslate.exe rm -rf build/ - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/youtranslate. - mkdir -p debian/youtranslate/usr/lib/youtranslate - mv youtranslate.exe debian/youtranslate/usr/lib/youtranslate/youtranslate.exe - mkdir -p debian/youtranslate/usr/bin - mv debian/wrapper debian/youtranslate/usr/bin/youtranslate - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - dh_installman debian/youtranslate.1 - dh_link - dh_strip - dh_compress - dh_fixperms - dh_clifixperms - dh_installdeb - dh_shlibdeps - dh_clideps -d - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure + rm -rf $(MONO_SHARED_DIR)/.wapi diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/youtranslate.1 /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/youtranslate.1 --- youtranslate-1.1.9/debian/youtranslate.1 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/debian/youtranslate.1 2008-06-13 23:51:06.000000000 +0200 @@ -1,7 +1,18 @@ -.TH YOUTRANSLATE "1" "NOVEMBER 2006" "youtranslate v1.1.9 (11.05.06) for linux - written by Salvatore Scarciglia " "User Commands" +.TH YOUTRANSLATE 1 "June 12, 2008" + .SH NAME -youtranslate - translator using internet translation services +youtranslate \- graphical translator which makes use of online services + +.SH SYNOPSIS +\fByoutranslate\fP + .SH DESCRIPTION -It's a small and simple application that lets you use some internet translation services in an easy and fast way. +\fByoutranslate\fP is a small application that lets you make use of some online +translation services in an easy and fast way. + .SH USAGE -youtranslate : launches the program +\fByoutranslate\fP doesn't accept any command-line options. + +.SH AUTHORS +\fByoutranslate\fP was written by Salvatore Scarciglia and +it is released under the GNU General Public License, version 2 or later. diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/youtranslate.desktop /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/youtranslate.desktop --- youtranslate-1.1.9/debian/youtranslate.desktop 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/youtranslate.desktop 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Online Translator YouTranslate! +Name[ca]=Traductor en línia YouTranslate! +Comment=Translate words or sentences using an online translation service +Comment[ca]=Trobeu la traducció de paraules o frases utilitzant serveis de traducció en línia +Icon=youtranslate +Exec=youtranslate +Terminal=false +Categories=Utility; diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/debian/youtranslate.png.uuencode /tmp/mu5LwXgXxw/youtranslate-1.1.10/debian/youtranslate.png.uuencode --- youtranslate-1.1.9/debian/youtranslate.png.uuencode 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/debian/youtranslate.png.uuencode 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,64 @@ +begin 644 debian/youtranslate.png +MB5!.1PT*&@H````-24A$4@```#`````P"`8```!7`OF'`````7-21T(`KLX< +MZ0````9B2T=$`/\`_P#_H+VGDP````EP2%ES```+$P``"Q,!`)J<&```"BU) +M1$%4:-[5FFEPE=49QW_G?=^[AB1`$DA03!#":@BB+"Z`^[1TBE-EE-96I[;C +MR%`7L-IJ749GVM&Q#CB(H^A85[`%ATH[.HY21T%`(4@:@AHH)`BYER0DN;FY +MR[N=TP_W)KF7Q"0LMG!FSH?DGN7_?[;SG.>\@E-O&G`.,!>8)6`R@C(!14!. +M>DQ,03.*>@5[@<^!3X$C@#R5S<4IS!L!_$P3+/(9^O3*XJ`QNV(\%9,G459Z +M'D5%1>0$@RGT\3C-SN2J*:/5*X\L5N&M&Y5L"RF9[!Q<;PNI\-:-ZI5'%JNKIHQ6/D./`"O3 +M:XOO"WP0>-#OT2.+YE:JG>M?5&Y+@Y(=3:?4W98&M7/]BVK1W$KE]^@1X,'T +M7J?-A`0P51.LOJBL:.;R1W_+I?-O!,TXO>*1#EO?>X>E3_R9JOKF+Z3B#N#? +M`YF5/L"R.K`P8&A_O7_!K/*_O/@\8RIF@)3@.J>W2\GHL1/XQ8+KD*&Z_^*$G\`S)!^E\K]WP![CBBGE,5HW! +M3_8<^%',5AU`U7=%*[T?8DM*<[6GWKK]TL`/?OT`PN,#U_Z?="$$DZ9.9R8' +M/1]_=?C*B*4BP,Z^-*%_A\W??$Z.MN+UZ\\+SKOU7@CF_\_`=W*5Y^;-V3X]*NO)S*B@FC2ZNZ=28N`<-#DZ07L +MV#;AJ$E'QEY1Y:?(*YF4K/-^^*U]F>GR"=!XO)UGM@)#XYE[*OW%-UQ01/C< +M"CX[%"7I9FNN/%]CYD@#79R>D.TJQ8ZC#OLBV6;NUP67G5O!#1=LHK;5*?Y3 +M5>(91_(3X%A?&M"`>^:.\MR^XO(<`B5CR1M_,5[AX +M;&VTR52RH<&L$@_E`1=L(+>0?*_@L1D!=K" +MRTL,IN5)L.C!`LPI\;"@S#OBC6_,)0J6`6X7@9)\G[AE286_1YIF'*Q$=UB: +M4ZAHC]IL/^ITQ[(X\.XW`L]8+Y.&G0`)!77M+G_?;Q%S5%;XFSW28$ZA1-AV +MSW@S)4A-P)(*/QOKK5O:3?4T<+B+P,)+BHV"BXHR+*JC"+@Z,I"(RLW8>BHU`)IA].EP_A:C,^5Y.M.OT[;YN2;&D8SYMFTS/E=R6[F.G^/F)SOA +M\!YP4O8D1,I[_UEOY4G%&P(H'>X7^VH6#?64!+7L\ZST0B@XKY<06TW)\NHD +M^X\+>V/R-.Z9ZF=D0.M3^"U)R.8(S\+?5/A[3S8[(3@L-3E#*@'A,'Z(9-?1!"V=5E9X +M;6BWF#9<$1#9DNQ(6#RWNY.J<#)+\B5^EWLO,!CI=7MK+-D)1VK!,;-@Y7H$ +M[S?8>D-45NG`KWY:[IMU];F>W@0<*S79EY,RJ8S%\W2',3F2SQL3M,5[2!SI +M,`E%+2XN4'C3YI`P+5;MCO*O0PDLJV=L@&(0[IXH>6)'@E:S1\4?[`>?FV#9 +MU%14>ZDVR;O[K*Q,;+A/Q<2':`K&V?N\RI;D:FJ#,T(0H*O1K`\>^6&OJ8`L.!8\O +MB\2U(^%8N>2I70GB&7']A2_C:`*LC(,J:`CNG!+@VI$VPK*SM[%-B+>#G1SP +M*"GT:VA"%!E`,&@,\@2RD]!Q%#Q^\`32VA#HP$VC%Y(MSN\M+> +M9%;>U)7?W#K9SYWE$H^32*VCW!1XZ0P:>%_7QGC<47DG1:0K8B!`@!_!PQ7P +M\<'LT[KKE'VXPH_?38"KTN9]\F6@M*G&#:E45A=7 +M4:L!.[:%G;..0!KS#@W87-/JV*'XV6-&H;BDIM6Q@K,!R\5K-UG8DO6`797#K%^6]@Y5M5\YOM"5;/# +MMK!S#%C?=5,$"$5,]=:JFN09K06I8%5-DHBIW@)"F01:%*P"W$P"`/O;3;7B\1T)(M:9IX:(I7A\1X)V4ZT`]F=6X[HU!*S> +M$K(W+Z].X)Y!'%P%RZL3;`G9FX'5F:7VXR\"QQS)?<]6)\,;#EAG#($-!RR> +MK4Z&'J3 +M1INE6V*=$4LM2[\1#.J-K/N!X[6KA_CGGB`)2T*GI?BJ+95C31JF,\0K\&HG +M!O[31IO;-G4F&Z+R=V0X[F!>:!10%;%4Y/T&>][Y^;IGPM#!EPXW'K2XZ8,H +M+]2:O%EGLG:?25FNSJ1A^J##Y8:#%K_<%(L?B1LZV#I`YFJZ"M/I'<),1V55 +MH?MJ6\,.\S9T\.2NQ!<)1UT#K.L/_$`:R&Q'%:QIC,G8FCIK1FV;ZQN3IU&< +MH_5RHJ$^#8\&6T(.MNRY@#\Z(\`/2[V]QBO@RV:'^[;&>6A[O.-0IWQC3A`!&`_?[=''K925&WL_'^YA?ZF%$1CU4*3@ c #D9C7BD", +", c #EBD9CE", +"' c #F2E0D5", +") c #010100", +"! c #170E09", +"~ c #614F44", +"{ c #C3A899", +"] c #FEEDE3", +"^ c #FEF0E7", +"/ c #291A11", +"( c #987967", +"_ c #F1D6C6", +": c #FEE7DA", +"< c #0B0501", +"[ c #412311", +"} c #D9A78A", +"| c #FEDCC8", +"1 c #FEDECB", +"2 c #431F0A", +"3 c #CA855B", +"4 c #FED3BB", +"5 c #FED5BD", +"6 c #020100", +"7 c #2D1303", +"8 c #CF6E34", +"9 c #D7AE98", +"0 c #CDB7A9", +"a c #D6BAAA", +"b c #F6C8AC", +"c c #FECBAD", +"d c #1B0C02", +"e c #99400B", +"f c #FA9255", +"g c #D7B29B", +"h c #9C9A99", +"i c #999999", +"j c #9E9B9A", +"k c #C8AC9C", +"l c #FDC3A0", +"m c #FEC3A0", +"n c #662B07", +"o c #F06412", +"p c #FE9F67", +"q c #FEB990", +"r c #C8A28C", +"s c #908B88", +"t c #878787", +"u c #898887", +"v c #C7A28C", +"w c #F8B68F", +"x c #F9B68F", +"y c #0C0501", +"z c #C3510F", +"A c #FE6A13", +"B c #FE9B60", +"C c #FEB183", +"D c #F6AE82", +"E c #B8937E", +"F c #7A7979", +"G c #797979", +"H c #867F7A", +"I c #CA9B7F", +"J c #CC9B7F", +"K c #512206", +"L c #FD6A13", +"M c #FE8944", +"N c #FEA672", +"O c #FEA773", +"P c #FCA572", +"Q c #A3816C", +"R c #6C6A68", +"S c #686868", +"T c #6F6B68", +"U c #CD926F", +"V c #FBA572", +"W c #D0936F", +"X c #706B68", +"Y c #923E0B", +"Z c #FE782A", +"` c #FE995E", +" . c #FE9E66", +".. c #EB9665", +"+. c #90715E", +"@. c #5A5A5A", +"#. c #75665C", +"$. c #D38C63", +"%. c #D68E63", +"&. c #77665C", +"*. c #2C1203", +"=. c #C5520F", +"-. c #FE6C16", +";. c #FE8037", +">. c #FE9455", +",. c #FE9456", +"'. c #F28F55", +"). c #795D4C", +"!. c #4B4949", +"~. c #484848", +"{. c #5D514A", +"]. c #D88553", +"^. c #FD9356", +"/. c #FD9456", +"(. c #DC8653", +"_. c #60524A", +":. c #401B05", +"<. c #DB5B10", +"[. c #FE6D19", +"}. c #FE843D", +"|. c #FE8B49", +"1. c #D67B46", +"2. c #654C3D", +"3. c #3A3A3A", +"4. c #3B3B3A", +"5. c #6D503E", +"6. c #DF7F46", +"7. c #E28046", +"8. c #72513E", +"9. c #3B3B3B", +"0. c #4B2006", +"a. c #EC6312", +"b. c #FE6C17", +"c. c #FE8137", +"d. c #FE8239", +"e. c #DD7436", +"f. c #4D382C", +"g. c #2A2A29", +"h. c #563C2D", +"i. c #5C3F2D", +"j. c #2A2A2A", +"k. c #4F2106", +"l. c #F36512", +"m. c #FE6B15", +"n. c #FE711E", +"o. c #FE7727", +"p. c #FE792C", +"q. c #FD792C", +"r. c #B75C27", +"s. c #39281D", +"t. c #1B1B1B", +"u. c #1C1C1C", +"v. c #1D1C1C", +"w. c #FE6E1A", +"x. c #FC6E1B", +"y. c #BD5417", +"z. c #170F0B", +"A. c #0A0A0A", +"B. c #FB6914", +"C. c #2A1304", +"D. c #010101", +"E. c #2A1204", +"F. c #D85A10", +"G. c #431C05", +"H. c #CA540F", +"I. c #943D0B", +"J. c #722F09", +"K. c #411B05", +"L. c #D95B10", +"M. c #A6450C", +"N. c #522206", +"O. c #291103", +"P. c #98400B", +"Q. c #F16512", +"R. c #EA6211", +"S. c #100701", +"T. c #170902", +"U. c #612808", +"V. c #F66712", +"W. c #451D05", +"X. c #050201", +"Y. c #4C2006", +"Z. c #903C0B", +"`. c #C2510E", +" + c #D95A10", +".+ c #E45F11", +"++ c #C6520F", +"@+ c #060301", +"#+ c #281103", +"$+ c #3C1905", +"%+ c #471E05", +"&+ c #4B1F06", +" . + @ # $ % & & % $ # @ + . ", +" . * = - ; > , ' ' , > ; - = * . ", +" ) ! ~ { ] ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ] { ~ ! ) ", +" . . / ( _ : : : : : : : : : : : : : : _ ( / . . ", +" . < [ } | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 | } [ < . ", +" . 2 3 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 4 3 2 . ", +" 6 7 8 9 0 0 a b c c c c c c c c c c c c b a 0 0 9 8 7 6 ", +" . d e f g h i j k l m m m m m m m m m m l k j i h g f e d . ", +" + n o p q r s t u v w q q q q q q q q x r u t s r q p o n + ", +". y z A B C D E F G H I C C C C C C C C J H G F E D C B A z y . ", +"6 K L A M N O P Q R S T U V O O O O V W X S R Q P O N M A L K 6 ", +"y Y A A Z ` . ...+.@.@.#.$. . . . .%.&.@.@.+... . .` Z A A Y y ", +"*.=.A A -.;.>.,.,.'.).!.~.{.].^./.(._.~.!.).'.,.,.>.;.-.A A =.*.", +":.<.A A A [.}.|.|.|.1.2.3.4.5.6.7.8.9.3.2.1.|.|.|.}.[.A A A <.:.", +"0.a.A A A A b.Z c.d.d.e.f.g.g.h.i.j.g.f.e.d.d.c.Z b.A A A A a.0.", +"k.l.A A A A A m.n.o.p.q.r.s.t.u.v.t.s.r.q.p.o.n.m.A A A A A l.k.", +"k.l.A A A A A A A A b.w.x.y.z.A.A.z.y.x.w.b.A A A A A A A A l.k.", +"0.a.A A A A A A A A A A A B.C.D.D.E.B.A A A A A A A A A A A a.0.", +":.<.A A A A A A A A A A A A 7 . . 7 A A A A A A A A A A A A <.:.", +"*.=.A A A A A A A A A A A A 7 . . 7 A A A A A A A A A A A A =.*.", +"y Y A A A A A A A A A A A A 7 . . 7 A A A A A A A A A A A A Y y ", +"6 K L A A A A A A A A A A A 7 . . 7 A A A A A A A A A A A L K 6 ", +". y z A A A A A A A A A A A 7 . . 7 A A A A A A A A A A A z y . ", +" + n o A A A A A A A A A A 7 . . 7 A A A A A A A A A A o n + ", +" . d e L A A A A A A A A A 7 . . 7 A A A A A A A A A L e d . ", +" 6 7 F.A A A A A A A A A 7 . . 7 A A A A A A A A A F.7 6 ", +" . G.H.A A A A A A A A I.J.J.I.A A A A A A A A H.G.. ", +" . < K.L.A A A A A A A M.N.N.M.A A A A A A A L.K.< . ", +" . . O.P.Q.A A A A R.S.. . S.R.A A A A Q.P.O.. . ", +" ) T.U.z A A A V.W.6 6 W.V.A A A z U.T.) ", +" . X.Y.Z.`. +.+++++.+ +`.Z.Y.X.. ", +" . + @+#+$+%+&+&+%+$+#+@++ . "}; diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/Makefile.youtranslate /tmp/mu5LwXgXxw/youtranslate-1.1.10/Makefile.youtranslate --- youtranslate-1.1.9/Makefile.youtranslate 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/Makefile.youtranslate 2006-10-30 14:01:54.000000000 +0100 @@ -35,8 +35,8 @@ RESOURCES_BUILD = $(foreach res,$(RESOURCES), $(addprefix -resource:,$(res)),$(notdir $(res))) PKG_REFERENCES = \ -gtk-sharp-2.0 \ -glade-sharp-2.0 +gtk-sharp \ +glade-sharp PKG_REFERENCES_BUILD = $(addprefix -pkg:, $(PKG_REFERENCES)) diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/new /tmp/mu5LwXgXxw/youtranslate-1.1.10/new --- youtranslate-1.1.9/new 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/new 2008-06-13 23:51:06.000000000 +0200 @@ -0,0 +1,173 @@ +/* + Copyright (C) 2006 Salvatore Scarciglia + http://laas.altervista.org + + This code is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This code is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +/* + This class identify the service Provider; so far, the + available providers are: + -------------------------- + ID | Name + -------------------------- + 1 | Google + 2 | BabelFish (Yahoo) + 3 | WorldLingo + -------------------------- +*/ + +public class yTProvider { + private int _ID; + private string _Name; + private string _MainUrl; + private string _LangSep; + private string _OpenTag1; + private string _OpenTag2; + private string _CloseTag; + private string _AvailableServices; + + // Constructor (the only one) + public yTProvider(int idProvider){ + _ID = idProvider; + Init(); + } + + // Used to change the actual provider + public void changeProvider(int newProviderID){ + _ID = newProviderID; + Init(); + } + + // Provider Initialization + private void Init(){ + switch(_ID) { + case 1: // Google + _Name = "Google"; + _MainUrl = "http://www.google.com"; + _LangSep = "|"; + _OpenTag1 = ""; + _CloseTag = ""; + _AvailableServices = "zh_en#nl_en#nl_fr#fr_en#fr_de#fr_el#"+ + "fr_it#fr_pt#fr_nl#fr_es#de_en#de_fr#"+ + "el_en#el_fr#it_en#it_fr#ja_en#ko_en#"+ + "pt_en#pt_fr#ru_en#es_en#es_fr#en_zh#"+ + "en_nl#en_fr#en_de#en_el#en_it#en_ja#"+ + "en_ko#en_pt#en_ru#en_es"; + break; + case 3: // WorldLingo + _Name = "WorldLingo"; + _MainUrl = "http://www.worldlingo.com"; + _LangSep = "_"; + _OpenTag1 = "wl_result"; + _OpenTag2 = ">"; + _CloseTag = ""; + _AvailableServices = "en_zh#en_nl#en_fr#en_de#en_el#en_it#"+ + "en_ja#en_ko#en_pt#en_ru#en_es#"+ + "zh_en#zh_nl#zh_fr#zh_de#zh_el#zh_it#"+ + "zh_ja#zh_ko#zh_pt#zh_ru#zh_es#"+ + "nl_en#nl_zh#nl_fr#nl_de#nl_el#nl_it#"+ + "nl_ja#nl_ko#nl_pt#nl_ru#nl_es#"+ + "fr_en#fr_zh#fr_nl#fr_de#fr_el#fr_it#"+ + "fr_ja#fr_ko#fr_pt#fr_ru#fr_es#"+ + "de_en#de_zh#de_nl#de_fr#de_el#de_it#"+ + "de_ja#de_ko#de_pt#de_ru#de_es#"+ + "el_en#el_zh#el_nl#el_fr#el_de#el_it#"+ + "el_ja#el_ko#el_pt#el_ru#el_es#"+ + "it_en#it_zh#it_nl#it_fr#it_de#it_el#"+ + "it_ja#it_ko#it_pt#it_ru#it_es#"+ + "ja_en#ja_zh#ja_nl#ja_fr#ja_de#ja_el#"+ + "ja_it#ja_ko#ja_pt#ja_ru#ja_es#"+ + "ko_en#ko_zh#ko_nl#ko_fr#ko_de#ko_el#"+ + "ko_it#ko_ja#ko_pt#ko_ru#ko_es#"+ + "pt_en#pt_zh#pt_nl#pt_fr#pt_de#pt_el#"+ + "pt_it#pt_ja#pt_ko#pt_ru#pt_es#"+ + "ru_en#ru_zh#ru_nl#ru_fr#ru_de#ru_el#"+ + "ru_it#ru_ja#ru_ko#ru_pt#ru_es#"+ + "es_en#es_zh#es_nl#es_fr#es_de#es_el#"+ + "es_it#es_ja#es_ko#es_pt#es_ru"; + break; + } + } + + // Determine if the requested translation is possible + public bool serviceIsAvailable(string langFrom,string langTo) { + string srv = langFrom+_LangSep+langTo; + if(_AvailableServices.IndexOf(srv)==-1) + return false; + else + return true; + } + + + + // return the URL of the provider + public string getUrlTranslator(string langFrom, string langTo, string textToTransalte){ + string resUrl=_MainUrl; + switch(_ID) { + case 1: // Google + resUrl+="/translate_t?text="+textToTransalte+ + "&langpair="+langFrom+_LangSep+langTo+"&ie=utf8&oe=utf8"; + break; + case 2: // BabelFish (Yahoo) + resUrl+="/translate_txt?ei=UTF-8&trtext="+textToTransalte+ + "&lp="+langFrom+_LangSep+langTo+""; + break; + case 3: // WorldLingo + resUrl+="en/products_services/worldlingo_translator.html"+ + "?wl_text="+textToTransalte+"&wl_srclang=en"+ + "&wl_trglang=de&wl_srclang="+langFrom+"&wl_trglang="+ + langTo+"&wl_ucp=1"; + break; + } + return resUrl; + } + + // Public Properties :: start + public int ID { + get {return _ID;} + } + public string Name { + get {return _Name;} + } + public string LangSep { + get {return _LangSep;} + } + public string OpenTag1 { + get {return _OpenTag1;} + } + public string OpenTag2 { + get {return _OpenTag2;} + } + public string CloseTag { + get {return _CloseTag;} + } + public string MainUrl { + get {return _MainUrl;} + } + // Public Properties :: end + +} diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/youtranslate.exe.config /tmp/mu5LwXgXxw/youtranslate-1.1.10/youtranslate.exe.config --- youtranslate-1.1.9/youtranslate.exe.config 2008-06-13 23:51:05.000000000 +0200 +++ youtranslate-1.1.10/youtranslate.exe.config 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ - - - diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/youtranslate.mdp /tmp/mu5LwXgXxw/youtranslate-1.1.10/youtranslate.mdp --- youtranslate-1.1.9/youtranslate.mdp 2006-10-30 14:01:54.000000000 +0100 +++ youtranslate-1.1.10/youtranslate.mdp 2007-09-19 08:25:28.000000000 +0200 @@ -13,9 +13,7 @@ - - - + @@ -55,4 +53,7 @@ + + + \ No newline at end of file diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/youtranslate.mds /tmp/mu5LwXgXxw/youtranslate-1.1.10/youtranslate.mds --- youtranslate-1.1.9/youtranslate.mds 2006-10-30 14:01:54.000000000 +0100 +++ youtranslate-1.1.10/youtranslate.mds 2007-09-19 08:25:28.000000000 +0200 @@ -7,6 +7,7 @@ + Binary files /tmp/jcubu624a2/youtranslate-1.1.9/youtranslate.pidb and /tmp/mu5LwXgXxw/youtranslate-1.1.10/youtranslate.pidb differ diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/youtranslate.userprefs /tmp/mu5LwXgXxw/youtranslate-1.1.10/youtranslate.userprefs --- youtranslate-1.1.9/youtranslate.userprefs 2006-10-30 14:01:54.000000000 +0100 +++ youtranslate-1.1.10/youtranslate.userprefs 2007-09-19 09:12:03.000000000 +0200 @@ -1,40 +1,34 @@ - - + + - + - - - - - - - - - - - + + + + + - + \ No newline at end of file diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/YT_Backup.sh /tmp/mu5LwXgXxw/youtranslate-1.1.10/YT_Backup.sh --- youtranslate-1.1.9/YT_Backup.sh 1970-01-01 01:00:00.000000000 +0100 +++ youtranslate-1.1.10/YT_Backup.sh 2006-07-26 14:39:46.000000000 +0200 @@ -0,0 +1,4 @@ +#!/bin/bash + +tar cvzf backup/backup-`date +%F-%k-%M-%s`.tar.gz *.cs + ... [FILE yt.glade AND yt.glade.bak HAVE BEEN REGENERATED DURING THE CHANGE ... FROM VERSION 1.1.9 TO 1.1.10.] diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/yTLargeTranslator.cs /tmp/mu5LwXgXxw/youtranslate-1.1.10/yTLargeTranslator.cs --- youtranslate-1.1.9/yTLargeTranslator.cs 2006-11-05 14:09:59.000000000 +0100 +++ youtranslate-1.1.10/yTLargeTranslator.cs 2007-09-03 16:55:44.000000000 +0200 @@ -15,7 +15,6 @@ along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ using System; diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/yTMain.cs /tmp/mu5LwXgXxw/youtranslate-1.1.10/yTMain.cs --- youtranslate-1.1.9/yTMain.cs 2006-11-05 14:09:59.000000000 +0100 +++ youtranslate-1.1.10/yTMain.cs 2007-09-19 08:43:14.000000000 +0200 @@ -39,8 +39,7 @@ private yTUserProfile UserProfiler; private yTService TransService; private yTProvider TransProvider; - // private YTTrayIcon SysTrayIcon; - + private YTTrayIcon SysTrayIcon; // 1.1.10 public static void Main (string[] args){ new ytApp (args); @@ -60,7 +59,7 @@ mainWindow.Icon = new Gdk.Pixbuf(null,"yTicon.png"); mainWindow.DeleteEvent+=closeMainWindow; mainWindow.WindowStateEvent+=stateChanged; - mainWindow.Title = "YouTranslate! v1.1.9"; + mainWindow.Title = "YouTranslate! v1.1.10"; mainWindow.SetDefaultSize(680,50); txtEntry1.Activated+=prepareTranslation; txtEntry2.Activated+=prepareTranslation; @@ -81,23 +80,17 @@ TransService.Language2 = UserProfiler.Language2; imgFlag1.Pixbuf = new Pixbuf(null, TransService.Language1+".png"); imgFlag2.Pixbuf = new Pixbuf(null, TransService.Language2+".png"); - // SysTrayIcon = new YTTrayIcon(mainWindow,this); txtEntry1.HasFocus = true; checkStartUpMode(); checkVisibility(); + SysTrayIcon = new YTTrayIcon(mainWindow,this); } // startup mode MainWindow visible/MainWindo not visible private void checkStartUpMode(){ - - - /* - (G2.16) if(UserProfiler.startMode==true){ - SysTrayIcon.mainWinOnScreen = false; mainWindow.Visible = false; } - */ } // startup mode MainWindow visible/MainWindo not visible @@ -114,16 +107,12 @@ a.RetVal = true; } - private void stateChanged (object sender, WindowStateEventArgs a){ - // (G2.16) + // Used to handle state change of the Window + private void stateChanged (object sender, WindowStateEventArgs a){ // <--- Systray /* - Gdk.EventWindowState ews = a.Event; - WindowState newWs = ews.NewWindowState; - if(newWs == WindowState.Iconified) { - SysTrayIcon.mainWinOnScreen = false; - //mainWindow.Visible = false; + if(a.Event.NewWindowState == WindowState.Iconified) { + mainWindow.Visible = false; mainWindow.Hide(); - } */ } diff -Nru /tmp/jcubu624a2/youtranslate-1.1.9/yTProvider.cs /tmp/mu5LwXgXxw/youtranslate-1.1.10/yTProvider.cs --- youtranslate-1.1.9/yTProvider.cs 2006-11-05 14:09:59.000000000 +0100 +++ youtranslate-1.1.10/yTProvider.cs 2007-09-18 17:28:51.000000000 +0200 @@ -15,7 +15,6 @@ along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ /* @@ -56,7 +55,6 @@ // Provider Initialization private void Init(){ - System.Console.WriteLine("Provider:"+_ID); switch(_ID) { case 1: // Google _Name = "Google"; @@ -64,7 +62,7 @@ _LangSep = "|"; _OpenTag1 = "