youtranslate-1.1.10/pt.png0000744000175000017500000000310010521373702013606 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 7ޒZIDATXMGcggwgm ,Q|섐CR)W 3@ BBC$ q (Y+rx?<;;;;_ꪮQ?R|_P@ ٻ$|;h 0YZ 5.>r噓++ 2B.6xśqH<ӃT*fjUt +x׉yH"1k8.xRlbP^|ާI;mOĄ(:A j}U,Ɖ@g)']LF 9GPHdPULAL ΁X`K/d4,#rB`3UpdIcetRs\[5!b B焂 D0WIDۜ=@csZONѼez*1K`N "DΡf$[y:m^kKbFXvc:gX]吼@p 8/,XǿZY9R>o &L%hp2Nhi?֮U9}ʣMCs|l=OD#$H(sqz>37/ao(?Mlr@9T_XS#Ji!*+$?y6 *u޻d;ZfPaѮzO앢؄!j{Op** acؽk\YA;pu z.~|;hHRP*fxFș ANn;r79n^s ?IA _:Y,t[* f7,D$ j,5deWw=-f4I@?}Cn\y\kB/.bv^23A|3?ߙ?ɝSn?P=1C#K:f>@g<鐉a$LǭwXS  \4NS!FhR W)_A=)SozIL3bQl,xX[s" o>xwAK!vI$ 9%Ѣw7&p S,9Y՜=%h2uӖP,P{otM`wߖL.Dfûjqta<IENDB`youtranslate-1.1.10/youtranslate.pidb0000644000175000017500000013252110674145703016067 0ustar sassasSystem.Collections.Hashtable LoadFactorVersionComparerHashCodeProviderHashSizeKeysValuesequalityComparer @?   Version } yTToolWin toolWindow Gtk.Window" WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument parentWindow Gtk.Window$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdOk Gtk.Button WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdCancel Gtk.Button !  WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument imgLogo Gtk.Image!!!! WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument radioProvider1Gtk.RadioButton""+"" WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument radioProvider2Gtk.RadioButton##+## WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument radioProvider3Gtk.RadioButton$$+$$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument radioProvider5Gtk.RadioButton&&+&& WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument spinLargeGtk.SpinButton''&'' WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument chkStartIcoGtk.CheckButton((((( WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument chkAllDeskGtk.CheckButton))')) WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument currentProfile yTUserProfile++'currentProvider yTProvider,,&selectedProvider--" keyNumber..startInSystray//showInAllWorkspace00#ctorowner Gtk.Windowusp yTUserProfilecs yTServicecp yTProvider33 R3CRsetupSpinValueNNNPsetupVisibilityRR RW setupRadioProviderprovZZ+Zl+setupGuinnn~ checkHandleroargsSystem.EventArgs66 radioHandleroargsSystem.EventArgs66 buttonHandleroargsSystem.EventArgs77,/home/sas/Projects/youtranslate/yTToolWin.cs,/home/sas/Projects/youtranslate/yTToolWin.cs/ yTMessageBox Gtk.Dialogtext Gtk.Entryctortitlequestion explanationyesnowithTxt jHj//home/sas/Projects/youtranslate/yTMessageBox.csI//home/sas/Projects/youtranslate/yTMessageBox.csIn yTUserProfile _language1 _language2 _providerID _filename _startMode _allWorkspace _largeKey Language1`ee Language2`ii ProviderID`mm startMode`qq allWorkspace`uulargeKey`yyctor"" "* readSettings---EgetSModesGG!GJ!setSModesLL!LO! saveBookmarks firsttimeSS+Sb+./home/sas/Projects/youtranslate/yTUserPrefs.cs./home/sas/Projects/youtranslate/yTUserPrefs.cs yTProvider_ID##_Name$$_MainUrl%%_LangSep&& _OpenTag1'' _OpenTag2(( _CloseTag))_AvailableServices**%ID Name LangSep OpenTag1 OpenTag2 CloseTag MainUrl ctor idProvider-- #-0#changeProvider newProviderID33/36/Init999serviceIsAvailablelangFromlangTo??getUrlTranslatorlangFromlangTotextToTransalteXX-/home/sas/Projects/youtranslate/yTProvider.cs"-/home/sas/Projects/youtranslate/yTProvider.cs"F yTService_ServiceProvider yTProvider& _language1 _language2  _text1 Gtk.Entry!!_text2 Gtk.Entry"" _messageError###_fromLargeWindow$$! _txtLarge Gtk.TextView%%" Language1`{{ Language2`txtLarge` Gtk.TextViewctor mainProvider yTProvidertxt1 Gtk.Entrytxt2 Gtk.Entry)) I)3I goTranslatetext comingFromfrmLarg88D8XD goTranslatetext comingFrom[[6[]6extractFromStreamtext``/`i/writeTranslationResultresultwherefrmLargllMltMwriteTranslationResultresultwherevv?vx?,/home/sas/Projects/youtranslate/yTService.cs,/home/sas/Projects/youtranslate/yTService.csytApp mainWindow Gtk.Window" WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdFlag1 Gtk.Button  WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdFlag2 Gtk.Button  WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdTool Gtk.Button   WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdGo1 Gtk.Button!!!! WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdGo2 Gtk.Button"""" WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument txtEntry1 Gtk.Entry## ## WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument txtEntry2 Gtk.Entry$$ $$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument imgFlag1 Gtk.Image%%%% WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument imgFlag2 Gtk.Image&&&& WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument UserProfiler yTUserProfile''& TransService yTService((" TransProvider yTProvider))$ SysTrayIcon YTTrayIcon**" Mainargs,,),.)ctorargs00 06setupGUI:::WcheckStartUpModeZZ!Z^!checkVisibilityaa ae closeMainWindowsenderaGtk.DeleteEventArgshhAhlA stateChangedsenderaGtk.WindowStateEventArgsooCovCprepareTranslationsenderaSystem.EventArgszz>z>openLargeTRanslatorsenderaGtk.KeyReleaseEventArgsIIbuttonHandlingsenderaSystem.EventArgs:: showPrefs savePrefs)/home/sas/Projects/youtranslate/yTMain.cs)/home/sas/Projects/youtranslate/yTMain.cs yTLangSelector langWindow Gtk.Window" WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument parentWindow Gtk.Window$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument langView Gtk.TreeView! WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument imgFlag Gtk.Image WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdApplyLang Gtk.Button $  WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument currentService yTService!!$currentProfile yTUserProfile""' langStore Gtk.ListStore##" languagesAcro$$# languagesDesc%%# fromWhere&&actualSelectedItem''&ctorowner Gtk.Windowusp yTUserProfileimg Gtk.Imagecs yTServicefrom)) `)4` setupData666<setupGui???HsetupLanguageViewerJJ$J]$populateLanguageViewr__&_d&onSingleSelectionoargsSystem.EventArgsff:fl:on_cmdApplyLang_clickedsendereSystem.EventArgsnnBn{BonDoubleClickedoargsSystem.EventArgs}}9}91/home/sas/Projects/youtranslate/yTLangSelector.cs1/home/sas/Projects/youtranslate/yTLangSelector.cs<yTLargeTranslatorlargeTRanslatorWindow Gtk.Window- WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument parentWindow Gtk.Window$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdClose Gtk.Button  WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdTranslate Gtk.Button$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdCopy Gtk.Button WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument cmdPaste Gtk.Button  WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument lblFrom Gtk.Label   WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument lblTo Gtk.Label!!!! WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument txtTextSource Gtk.TextView""&"" WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument txtTextTarget Gtk.TextView##&## WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument imgFrom Gtk.Image$$$$ WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument imgTo Gtk.Image%%%% WidgetO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument currentProfile yTUserProfile&&'currentProvider yTProvider''&currentService yTService(($from))ctorowner Gtk.Windowusp yTUserProfilecs yTServicecp yTProviderfr++ d+4dsetupGui777T buttonHandleroargsSystem.EventArgsVV7Vl74/home/sas/Projects/youtranslate/yTLargeTranslator.cso4/home/sas/Projects/youtranslate/yTLargeTranslator.cso YTTrayIcon menuPopup2Gtk.ImageMenuItem% menuPopup3Gtk.ImageMenuItem%mainWin Gtk.WindowytaytAppctormwin Gtk.WindowyytApp ((( OnImageClickoargsGtk.ButtonPressEventArgs**A*@A OnPopupClickoargsSystem.EventArgsBB5BK5-/home/sas/Projects/youtranslate/yTTrayIcon.csM-/home/sas/Projects/youtranslate/yTTrayIcon.csMTrayIconGtk.Plugselection_atom!!system_tray_opcode_atom##manager_window%%filterGdk.FilterFunc&&ctorname(( (. OnRealized11'1;' OnUnrealized==)=D)UpdateManagerWindowFF%F[%SendDockRequest]]!]_!SendManagerMessagemessageSystemTrayMessagewindowdata1data2data3aapasp ManagerFilterGdk.FilterReturnxeventevnt Gdk.Eventuu@ux@GetOrientationPropertyzz(z|(gdk_x11_display_get_xdisplay displayDD~~ DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionary gdk-x11-2.0 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument gdk_x11_get_server_time window>> DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionary gdk-x11-2.0 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument gdk_error_trap_push ++ DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionary gdk-x11-2.0 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument gdk_error_trap_pop ** DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionary gdk-x11-2.0 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument XInternAtom display atom_nameonly_if_existsVV2 DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11  MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument  System2MonoDevelop.Projects.Parser.NamedAttributeArgumentname expressionSystem.CodeDom.CodeExpression EntryPoint &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionary XInternAtom XGrabServer display11 DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument XUngrabServer display33 DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument XFlush display++ DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument XGetSelectionOwner displayatomDD DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument XSelectInput windowdisplaymask EventMaskSS DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11 r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument XSendEvent displaywindow propagate event_mask EventMask send_eventXClientMessageEvent1 DllImport SystemSystem.CodeDom.CodeExpression &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionarylibX11  MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument  System2MonoDevelop.Projects.Parser.NamedAttributeArgumentname expressionSystem.CodeDom.CodeExpression EntryPoint &System.CodeDom.CodePrimitiveExpressionvalueCodeObject+userDataSystem.Collections.IDictionary XSendEvent ,/home/sas/Projects/youtranslate/yTTrayLib.cs,/home/sas/Projects/youtranslate/yTTrayLib.csf EventMask NoEventMask KeyPressMaskKeyReleaseMaskButtonPressMaskButtonReleaseMaskEnterWindowMaskLeaveWindowMaskPointerMotionMaskPointerMotionHintMaskButton1MotionMaskButton2MotionMaskButton3MotionMaskButton4MotionMaskButton5MotionMaskButtonMotionMaskKeymapStateMask ExposureMaskVisibilityChangeMaskStructureNotifyMaskResizeRedirectMaskSubstructureNotifyMaskSubstructureRedirectMaskFocusChangeMaskPropertyChangeMaskColormapChangeMaskOwnerGrabButtonMask,/home/sas/Projects/youtranslate/yTTrayLib.cs,/home/sas/Projects/youtranslate/yTTrayLib.csFlagsO SystemSystem.CodeDom.CodeExpression r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument SystemTrayMessage RequestDock BeginMessage CancelMessage,/home/sas/Projects/youtranslate/yTTrayLib.cs,/home/sas/Projects/youtranslate/yTTrayLib.csLSystemTrayOrientationHorzVert,/home/sas/Projects/youtranslate/yTTrayLib.cs,/home/sas/Projects/youtranslate/yTTrayLib.cs%XClientMessageEvent type XEventNameserial! send_event%display"window! message_type'format!ptr1ptr2ptr3ptr4ptr5,/home/sas/Projects/youtranslate/yTTrayLib.cs,/home/sas/Projects/youtranslate/yTTrayLib.cs& StructLayout SystemSystem.CodeDom.CodeExpression .System.CodeDom.CodePropertyReferenceExpression targetObject propertyNameCodeObject+userDataSystem.CodeDom.CodeExpressionSystem.Collections.IDictionary  Sequential .System.CodeDom.CodeVariableReferenceExpression variableNameCodeObject+userDataSystem.Collections.IDictionary LayoutKind r MonoDevelop.Projects2MonoDevelop.Projects.Parser.NamedAttributeArgument { XEventName#KeyPress KeyRelease ButtonPress ButtonRelease MotionNotify EnterNotify LeaveNotifyFocusInFocusOut KeymapNotifyExposeGraphicsExposeNoExposeVisibilityNotify CreateNotify DestroyNotify UnmapNotify MapNotify MapRequestReparentNotifyConfigureNotifyConfigureRequest GravityNotify ResizeRequestCirculateNotifyCirculateRequestPropertyNotifySelectionClearSelectionRequestSelectionNotifyColormapNotify ClientMessage MappingNotify TimerNotify LASTEvent,/home/sas/Projects/youtranslate/yTTrayLib.cs,/home/sas/Projects/youtranslate/yTTrayLib.cs   System.Collections.ArrayList_size_items_version  MonoDevelop.Projects*MonoDevelop.Projects.Parser.NamespaceEntrycontentsSystem.Collections.Hashtable System.Collections.Hashtable LoadFactorVersionComparerHashCodeProviderHashSizeKeysValuesequalityComparer @?- %      @?O %    //home/sas/Projects/youtranslate/AssemblyInfo.cs,/home/sas/Projects/youtranslate/yTToolWin.cs//home/sas/Projects/youtranslate/yTMessageBox.cs./home/sas/Projects/youtranslate/yTUserPrefs.cs-/home/sas/Projects/youtranslate/yTProvider.cs,/home/sas/Projects/youtranslate/yTService.cs)/home/sas/Projects/youtranslate/yTMain.cs1/home/sas/Projects/youtranslate/yTLangSelector.cs4/home/sas/Projects/youtranslate/yTLargeTranslator.cs-/home/sas/Projects/youtranslate/yTTrayIcon.cs,/home/sas/Projects/youtranslate/yTTrayLib.cs   ! " # $ % & ' ( *MonoDevelop.Projects.Parser.ReferenceEntry databaseUri)UAssembly:System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 *VAssembly:gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f +VAssembly:gdk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f ,WAssembly:glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f -XAssembly:glade-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f .XAssembly:pango-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f /YAssembly:System.Xml, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e0890XClientMessageEvent1yTLangSelector2ytApp3SystemTrayOrientation4 yTMessageBox5yTLargeTranslator6 EventMask7 yTService8 yTProvider9SystemTrayMessage: yTUserProfile; yTToolWin< YTTrayIcon= XEventName>TrayIcon ? @ A B C D E F G H I J K L M%MonoDevelop.Projects.Parser.FileEntryfilePath parseTime firstClassparseErrorRetries &MonoDevelop.Projects.Parser.ClassEntry a6  gd J  a6 C! a6 I" N0 G# a6 F$ ?@ A% a6 @& (fb D' < K( a6 M?&MonoDevelop.Projects.Parser.ClassEntryposition namespaceRefname fileEntry nextInFile *MonoDevelop.Projects.Parser.NamespaceEntry%MonoDevelop.Projects.Parser.FileEntry&MonoDevelop.Projects.Parser.ClassEntryQ NXClientMessageEvent ( L@?D OyTLangSelector % A?/ PytApp $ B? QSystemTrayOrientation ( ?C?] R yTMessageBox D?R SyTLargeTranslator & E? T EventMask ( HF?' U yTService # G? V yTProvider " H?^ WSystemTrayMessage ( BI? X yTUserProfile ! J? Y yTToolWin  K?f  < ' L?z Z XEventName ( M?j [TrayIcon ( E youtranslate-1.1.10/yTMain.cs0000744000175000017500000001200610674142402014212 0ustar sassas/* 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. */ using System; using Gtk; using Gdk; using Glade; public class ytApp { // MainWindow Widgets [Widget] Gtk.Window mainWindow; [Widget] Gtk.Button cmdFlag1; [Widget] Gtk.Button cmdFlag2; [Widget] Gtk.Button cmdTool; [Widget] Gtk.Button cmdGo1; [Widget] Gtk.Button cmdGo2; [Widget] Gtk.Entry txtEntry1; [Widget] Gtk.Entry txtEntry2; [Widget] Gtk.Image imgFlag1; [Widget] Gtk.Image imgFlag2; private yTUserProfile UserProfiler; private yTService TransService; private yTProvider TransProvider; private YTTrayIcon SysTrayIcon; // 1.1.10 public static void Main (string[] args){ new ytApp (args); } public ytApp (string[] args) { Application.Init (); Glade.XML gxml = new Glade.XML (null, "yt.glade", "mainWindow", null); gxml.Autoconnect (this); setupGUI(); Application.Run (); } // GUI setup private void setupGUI(){ mainWindow.Icon = new Gdk.Pixbuf(null,"yTicon.png"); mainWindow.DeleteEvent+=closeMainWindow; mainWindow.WindowStateEvent+=stateChanged; mainWindow.Title = "YouTranslate! v1.1.10"; mainWindow.SetDefaultSize(680,50); txtEntry1.Activated+=prepareTranslation; txtEntry2.Activated+=prepareTranslation; txtEntry1.KeyReleaseEvent+=openLargeTRanslator; txtEntry2.KeyReleaseEvent+=openLargeTRanslator; cmdFlag1.Clicked+=buttonHandling; cmdFlag2.Clicked+=buttonHandling; cmdTool.Clicked+=buttonHandling; cmdGo1.Clicked+=buttonHandling; cmdGo2.Clicked+=buttonHandling; // Custom objects UserProfiler = new yTUserProfile(); UserProfiler.readSettings(); TransProvider = new yTProvider(UserProfiler.ProviderID); TransService = new yTService(TransProvider,txtEntry1,txtEntry2); TransService.Language1 = UserProfiler.Language1; TransService.Language2 = UserProfiler.Language2; imgFlag1.Pixbuf = new Pixbuf(null, TransService.Language1+".png"); imgFlag2.Pixbuf = new Pixbuf(null, TransService.Language2+".png"); txtEntry1.HasFocus = true; checkStartUpMode(); checkVisibility(); SysTrayIcon = new YTTrayIcon(mainWindow,this); } // startup mode MainWindow visible/MainWindo not visible private void checkStartUpMode(){ if(UserProfiler.startMode==true){ mainWindow.Visible = false; } } // startup mode MainWindow visible/MainWindo not visible private void checkVisibility(){ if(UserProfiler.allWorkspace==true){ mainWindow.Stick(); } } // Window Events private void closeMainWindow (object sender, DeleteEventArgs a){ UserProfiler.saveBookmarks(false); Application.Quit (); a.RetVal = true; } // Used to handle state change of the Window private void stateChanged (object sender, WindowStateEventArgs a){ // <--- Systray /* if(a.Event.NewWindowState == WindowState.Iconified) { mainWindow.Visible = false; mainWindow.Hide(); } */ } // Entries handler // this one handle the ENTER button private void prepareTranslation (object sender, EventArgs a){ string ttt=""; Entry x = (Entry) sender; if(x == txtEntry1) { ttt = txtEntry1.Text; TransService.goTranslate(ttt,1); } else if(x == txtEntry2){ ttt = txtEntry2.Text; TransService.goTranslate(ttt,2); } } // this one handle the KEY RELEASE event private void openLargeTRanslator (object sender, KeyReleaseEventArgs a){ string src=""; Entry x = (Entry) sender; if(x == txtEntry1) src = "1"; else if(x == txtEntry2) src = "2"; if(a.Event.Key.ToString() == "F"+UserProfiler.largeKey) { new yTLargeTranslator(mainWindow,UserProfiler,TransService,TransProvider,src); } } // Button handler private void buttonHandling (object sender, EventArgs a){ string ttt=""; Button b = (Button) sender; if(b == cmdFlag1) { new yTLangSelector(mainWindow,UserProfiler,imgFlag1,TransService,1); } else if(b == cmdFlag2) { new yTLangSelector(mainWindow,UserProfiler,imgFlag2,TransService,2); } else if(b == cmdTool) { new yTToolWin(mainWindow,UserProfiler,TransService,TransProvider); } else if(b == cmdGo1) { ttt = txtEntry1.Text; TransService.goTranslate(ttt,1); } else if(b == cmdGo2) { ttt = txtEntry2.Text; TransService.goTranslate(ttt,2); } } public void showPrefs(){ new yTToolWin(null,UserProfiler,TransService,TransProvider); } public void savePrefs(){ UserProfiler.saveBookmarks(false); } } youtranslate-1.1.10/yt.glade0000644000175000017500000015464010667022202014123 0ustar sassas 680 50 True YouTranslate! GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER False 256 False False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True True GTK_RELIEF_NORMAL True True gtk-about 4 0.5 0.5 0 0 0 False False True Press F12 here to activate large translator True True True 0 True * False 0 True True True True GTK_RELIEF_NORMAL True True gtk-go-forward 4 0.5 0.5 0 0 0 False False True True GTK_RELIEF_NORMAL True True gtk-go-back 4 0.5 0.5 0 0 0 False False True Press F12 here to activate large translator True True True 0 True * False 0 True True True True GTK_RELIEF_NORMAL True True gtk-about 4 0.5 0.5 0 0 0 False False True Preferences/About True GTK_RELIEF_NORMAL True True gtk-preferences 4 0.5 0.5 0 0 0 False False 300 250 True Language Selection GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True False True False True False False False 0 True True True GTK_BUTTONBOX_DEFAULT_STYLE 0 True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-apply 4 0.5 0.5 0 0 0 False False True Confirm selection True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 400 250 True YouTranslate! Options GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True False False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True True True True GTK_POS_TOP False False 6 True False 6 True 0 0.5 GTK_SHADOW_IN True 0.5 0.5 1 1 0 0 12 0 True False 0 True True Google True GTK_RELIEF_NORMAL True False False True 0 False False True True BabelFish True GTK_RELIEF_NORMAL True False False True radioProvider1 0 False False 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 True Providers False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True True False 6 True 0 0.5 GTK_SHADOW_IN True 0.5 0.5 1 1 0 0 12 0 True False 0 True True All workspaces True GTK_RELIEF_NORMAL True False False True 0 False False True Start in Systray True GTK_RELIEF_NORMAL True False False True 0 False False True Application False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True True 0 0.5 GTK_SHADOW_IN True 0.5 0.5 1 1 0 0 12 0 6 True False 0 True False 0 True Activate pressing <b>F</b> False True GTK_JUSTIFY_LEFT False False 1 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True True 1 0 False GTK_UPDATE_ALWAYS False False 12 2 12 1 1 1 0 False True 0 True True True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True Large Translator False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True 0 True True False True True <b>Setting</b> False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True False 0 0 True True True <b>YouTranslate!</b> This software is developed by Salvatore Scarciglia @2006 http://laas.altervista.org email: laas.mono@gmail.com False True GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True False True True <b>About</b> False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 0 True True True GTK_BUTTONBOX_END 6 True True True gtk-ok True GTK_RELIEF_NORMAL True True True True gtk-cancel True GTK_RELIEF_NORMAL True 0 False True 48 48 True Yt GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False False True True True GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False True True GTK_RELIEF_NORMAL True True gtk-about 4 0.5 0.5 0 0 True YouTranslate! Large Text Translator GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True False 6 True gtk-missing-image 4 0.5 0.5 0 0 0 False True True label10 False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True False True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-paste 4 0.5 0.5 0 0 0 False False True Paste True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True True False True GTK_JUSTIFY_LEFT GTK_WRAP_NONE True 0 0 0 0 0 0 0 True True True False 0 True gtk-missing-image 4 0.5 0.5 0 0 0 False True True label10 False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True False True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-copy 4 0.5 0.5 0 0 0 False False True Copy True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True False False True GTK_JUSTIFY_LEFT GTK_WRAP_NONE False 0 0 0 0 0 0 0 True True True GTK_BUTTONBOX_END 6 True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-execute 4 0.5 0.5 0 0 0 False False True Translate True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-close 4 0.5 0.5 0 0 0 False False True Close True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False True youtranslate-1.1.10/yTTrayIcon.cs0000744000175000017500000000471510674142372015074 0ustar sassas/* 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. */ using Gtk; using System; using System.Runtime.InteropServices; public class YTTrayIcon { private ImageMenuItem menuPopup2; private ImageMenuItem menuPopup3; private Window mainWin; private ytApp yta; public YTTrayIcon(Window mwin,ytApp y) { mainWin = mwin; yta = y; EventBox eb = new EventBox(); eb.Add(new Image((new Gdk.Pixbuf(null,"yTicon.png")).ScaleSimple(16,16,0))); eb.ButtonPressEvent += new ButtonPressEventHandler (this.OnImageClick); TrayIcon icon = new TrayIcon("YouTranslate!"); icon.Add(eb); icon.ShowAll(); } private void OnImageClick (object o, ButtonPressEventArgs args) { if (args.Event.Button == 1) { mainWin.Visible = true; mainWin.Show(); } else if (args.Event.Button == 3) { Menu popupMenu = new Menu(); menuPopup2 = new ImageMenuItem ("Preferences"); menuPopup3 = new ImageMenuItem ("Quit"); Image appimg2 = new Image(Stock.Preferences, IconSize.Menu); Image appimg3 = new Image(Stock.Quit, IconSize.Menu); menuPopup2.Image = appimg2; menuPopup3.Image = appimg3; popupMenu.Add(menuPopup2); popupMenu.Add(menuPopup3); menuPopup2.Activated += new EventHandler(this.OnPopupClick); menuPopup3.Activated += new EventHandler(this.OnPopupClick); popupMenu.ShowAll(); popupMenu.Popup(null, null, null, IntPtr.Zero, args.Event.Button, args.Event.Time); } } private void OnPopupClick(object o, EventArgs args) { ImageMenuItem sender = (ImageMenuItem) o; if(sender==menuPopup2) { yta.showPrefs(); } else if(sender==menuPopup3) { yta.savePrefs(); Application.Quit(); } } }youtranslate-1.1.10/ja.png0000744000175000017500000000174310521373702013570 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 7,opIDATXϋ\E?;3%1e\²?t7XɝZTڥ=2{l;\?T7#§f}?( ѡTIcԵ,bLFE ^2"Zy zOAe:g2I3\@w7 _3w2vT[{`Vg@kπӦK.}{IIޘ-gS^n(hiNhU9eE&@dDt*GgĐk'@;ƒ0l.WY)|!4=Bּ)_ކsz.VC^I]Bc)̗LÆ3Rb3#p}zV{VxfzCK`R:4 bΧRU<0u@m_ vs?%^4űy!.m,Q#_=I@s+f.MV"5BSh =M։ӤL oa7-m4r}W ~̷u(׫/} !&IENDB`youtranslate-1.1.10/AssemblyInfo.cs0000744000175000017500000000205310523361247015410 0ustar sassasusing System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following // attributes. // // change them to the information which is associated with the assembly // you compile. [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // The assembly version has following format : // // Major.Minor.Build.Revision // // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): [assembly: AssemblyVersion("1.0.*")] // The following attributes specify the key for the sign of your assembly. See the // .NET Framework documentation for more information about signing. // This is not required, if you don't want signing let these attributes like they're. [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] youtranslate-1.1.10/yTService.cs0000744000175000017500000001021010523361247014724 0ustar sassas/* 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. */ using System; using System.IO; using System.Net; using Gtk; /* This is the class used to translate text */ public class yTService { private yTProvider _ServiceProvider; private string _language1=""; private string _language2=""; private Gtk.Entry _text1; private Gtk.Entry _text2; private string _messageError=""; private bool _fromLargeWindow; private Gtk.TextView _txtLarge; // Constructor public yTService(yTProvider mainProvider,Gtk.Entry txt1,Gtk.Entry txt2){ _ServiceProvider = mainProvider; _text1 = txt1; _text2 = txt2; _messageError = "There was an error during translation process. This is probably due to:\n"+ "1) Internet connection not available\n"+ "2) Service provider not available (choose another one)\n"+ "3) Connection timeout\n"+ "4) Bad string to translate\n"+ "5) Other"; } /* This is the most important method of the applciations; */ public void goTranslate(string text, int comingFrom, bool frmLarg){ string lFrom; string lTo; string translationResult=""; // what's the source language and the destination language ? if(comingFrom==1){lFrom=_language1;lTo=_language2;} else {lFrom=_language2;lTo=_language1;} // check if the current provider support the requested translation if(_ServiceProvider.serviceIsAvailable(lFrom,lTo)) { try { string strUrl = _ServiceProvider.getUrlTranslator(lFrom,lTo,text); string tmpRes = ""; Uri providerUrl = new Uri(strUrl); WebRequest req = WebRequest.Create(providerUrl); WebResponse res = req.GetResponse(); using (StreamReader reader = new StreamReader(res.GetResponseStream())) { tmpRes = reader.ReadToEnd(); } translationResult = extractFromStream(tmpRes); } catch(UriFormatException e){ new yTMessageBox("Warning!!","Error during translation",_messageError,false,false); } catch(Exception x){ new yTMessageBox("Warning!!","Error during translation",_messageError,false,false); } } else { translationResult = "-- NOT AVAILABLE --"; } // write the result inside the entry writeTranslationResult(translationResult,comingFrom,frmLarg); } public void goTranslate(string text, int comingFrom){ goTranslate(text,comingFrom,false); } // service method to clean the result of the web response private string extractFromStream(string text) { string res=""; int pos1 = text.IndexOf(_ServiceProvider.OpenTag1); string r1 = text.Substring(pos1); int pos2 = r1.IndexOf(_ServiceProvider.OpenTag2); string r2 = r1.Substring(pos2); int pos3 = r2.IndexOf(_ServiceProvider.CloseTag); res = r2.Substring(_ServiceProvider.OpenTag2.Length,pos3-_ServiceProvider.OpenTag2.Length); return res; } // render the result private void writeTranslationResult(string result, int where, bool frmLarg){ if(frmLarg) { _txtLarge.Buffer.SetText(result); } else { if(where==1) _text2.Text = result; else _text1.Text = result; } } private void writeTranslationResult(string result, int where){ writeTranslationResult(result,where,false); } // Public Properties :: start public string Language1 { get {return _language1;} set {_language1 = value;} } public string Language2 { get {return _language2;} set {_language2 = value;} } public Gtk.TextView txtLarge { get {return _txtLarge;} set {_txtLarge = value;} } // Public Properties :: end }youtranslate-1.1.10/fr.png0000744000175000017500000000200510521373702013575 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 6 MIDATXˊUNcIiUp | A>C O່F9A D ^ҝkv9GH&)(]׿x·{DB$`R%>zkN?ᡈ$! Ii8U˶{77xiZ`I\C}=k3Y6<& v;L<KI(!/vvK^8:&cw6zvvg6aZVNgsΌf½!dF& 445U[aPSİHX/`fjiVd? Y $KJ}!-hU;yh&H)zqk4(JhL5HV)Pv`1e@clC Z9Gu((VXq@Q2"DR0$C΋FWgQ2pyl44rD{Z ,Jwk("g=CY!Pz@rDʶw |D_oA$3%A$w'# wry.7EZϠ73>\Ǜ=ԓ!a7Cv,e]: ^@K%FM5tIC}yj\8amuӸd}:e &tr^ 6ݑHSJ6Mߝh8J\e`A5 DfFk @prPBWP.X*zd[:)ƽ\RuɋAItnPXJx"mg/3<5T*H48S;!ʼn%r̴u4 aE}/]zAb]dI$?C-+9lќF4hTƙ )yly\ۇ>ހ,c;n/Q+΄!!5 &;\W&ko\FvcoL9A9xG]17!IZwɮ0@RmiX`1[G3@ZӻimT XnLʼn5``H 9/YЦQ(a<9˝̄?.Sǂ`N;*0k]^ƽotrٴTZvC';׀wO/'&ٽ{uJFdD FALSE youtranslate-1.1.10/yt.gladep0000644000175000017500000000040510667022202014270 0ustar sassas FALSE youtranslate-1.1.10/youtranslate.mds0000744000175000017500000000117110674140330015720 0ustar sassas youtranslate-1.1.10/yt.glade.bak0000644000175000017500000015447110667021754014674 0ustar sassas 680 50 True YouTranslate! GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER False 256 False False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True True GTK_RELIEF_NORMAL True True gtk-about 4 0.5 0.5 0 0 0 False False True Press F12 here to activate large translator True True True 0 True * False 0 True True True True GTK_RELIEF_NORMAL True True gtk-go-forward 4 0.5 0.5 0 0 0 False False True True GTK_RELIEF_NORMAL True True gtk-go-back 4 0.5 0.5 0 0 0 False False True Press F12 here to activate large translator True True True 0 True * False 0 True True True True GTK_RELIEF_NORMAL True True gtk-about 4 0.5 0.5 0 0 0 False False True Preferences/About True GTK_RELIEF_NORMAL True True gtk-preferences 4 0.5 0.5 0 0 0 False False 300 250 True Language Selection GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True False True False True False False False 0 True True True GTK_BUTTONBOX_DEFAULT_STYLE 0 True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-apply 4 0.5 0.5 0 0 0 False False True Confirm selection True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 400 250 True YouTranslate! Options GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True False False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True True True True GTK_POS_TOP False False 6 True False 6 True 0 0.5 GTK_SHADOW_IN True 0.5 0.5 1 1 0 0 12 0 True False 0 True True Google True GTK_RELIEF_NORMAL True False False True 0 False False True True BabelFish True GTK_RELIEF_NORMAL True False False True radioProvider1 0 False 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 True Providers False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True True False 6 True 0 0.5 GTK_SHADOW_IN True 0.5 0.5 1 1 0 0 12 0 True False 0 True True All workspaces True GTK_RELIEF_NORMAL True False False True 0 False False True Start in Systray True GTK_RELIEF_NORMAL True False False True 0 False False True Application False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True True 0 0.5 GTK_SHADOW_IN True 0.5 0.5 1 1 0 0 12 0 6 True False 0 True False 0 True Activate pressing <b>F</b> False True GTK_JUSTIFY_LEFT False False 1 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True True 1 0 False GTK_UPDATE_ALWAYS False False 12 2 12 1 1 1 0 False True 0 True True True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True Large Translator False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True 0 True True False True True <b>Setting</b> False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True False 0 0 True True True <b>YouTranslate!</b> This software is developed by Salvatore Scarciglia @2006 http://laas.altervista.org email: laas.mono@gmail.com False True GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True False True True <b>About</b> False True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 0 True True True GTK_BUTTONBOX_END 6 True True True gtk-ok True GTK_RELIEF_NORMAL True True True True gtk-cancel True GTK_RELIEF_NORMAL True 0 False True 48 48 True Yt GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False False True True True GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False True True GTK_RELIEF_NORMAL True True gtk-about 4 0.5 0.5 0 0 True YouTranslate! Large Text Translator GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False 6 True False 6 True False 6 True gtk-missing-image 4 0.5 0.5 0 0 0 False True True label10 False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True False True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-paste 4 0.5 0.5 0 0 0 False False True Paste True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True True False True GTK_JUSTIFY_LEFT GTK_WRAP_NONE True 0 0 0 0 0 0 0 True True True False 0 True gtk-missing-image 4 0.5 0.5 0 0 0 False True True label10 False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True False True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-copy 4 0.5 0.5 0 0 0 False False True Copy True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False False 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True False False True GTK_JUSTIFY_LEFT GTK_WRAP_NONE False 0 0 0 0 0 0 0 True True True GTK_BUTTONBOX_END 6 True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-execute 4 0.5 0.5 0 0 0 False False True Translate True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False True True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-close 4 0.5 0.5 0 0 0 False False True Close True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 False True youtranslate-1.1.10/yTLargeTRanslator.cs0000644000175000017500000001022610523361247016376 0ustar sassas/* 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. */ using System; using Gtk; using Gdk; using Glade; public class yTToolWin { // Language selection Widgets [Widget] Gtk.Window toolWindow; [Widget] Gtk.Window parentWindow; [Widget] Gtk.Button cmdOk; [Widget] Gtk.Button cmdCancel; [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; private yTUserProfile currentProfile; private yTProvider currentProvider; private int selectedProvider; public bool startInSystray; public bool showInAllWorkspace; public yTToolWin(Gtk.Window owner,yTUserProfile usp, yTService cs,yTProvider cp){ Glade.XML gxml = new Glade.XML (null, "yt.glade", "toolWindow", null); gxml.Autoconnect (this); parentWindow = owner; currentProfile = usp; //currentService = cs; currentProvider = cp; startInSystray = currentProfile.startMode; showInAllWorkspace = currentProfile.allWorkspace; setupGui(); setupRadioProvider(currentProvider.ID); setupStartupMode(); setupVisibility(); } private void setupStartupMode(){ if(startInSystray==true) chkStartIco.Active = true; else chkStartIco.Active = false; } private void setupVisibility(){ if(showInAllWorkspace==true) chkAllDesk.Active = true; else chkAllDesk.Active = false; } private void setupRadioProvider(int prov){ switch(prov){ case 1: radioProvider1.Active = true; break; case 2: radioProvider2.Active = true; break; case 3: radioProvider3.Active = true; break; case 4: radioProvider4.Active = true; break; case 5: radioProvider5.Active = true; break; } } private void setupGui(){ toolWindow.Icon = new Gdk.Pixbuf(null,"yTicon.png"); toolWindow.TransientFor = parentWindow; toolWindow.SetPosition(Gtk.WindowPosition.CenterOnParent); toolWindow.Modal = true; toolWindow.ShowAll(); cmdOk.Clicked+=buttonHandler; 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"); } private void checkHandler(object o, EventArgs args){ CheckButton b = (CheckButton) o; if(b==chkStartIco){ startInSystray = chkStartIco.Active; } else if(b==chkAllDesk){ showInAllWorkspace = chkAllDesk.Active; } } private void radioHandler(object o, EventArgs args){ 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){ Button b = (Button) o; if(b==cmdOk) { currentProvider.changeProvider(selectedProvider); currentProfile.ProviderID = selectedProvider; currentProfile.startMode = startInSystray; currentProfile.allWorkspace = showInAllWorkspace; } toolWindow.Destroy(); } }youtranslate-1.1.10/it.png0000744000175000017500000000217710521373702013614 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 71 ( IDATXϊ]Eէd1&AхH6D!|@|EVѥ 3ssn{glP;3]_}UU7^x-]@QH_}%I)/Y?XS{;?;ܿw$/ÿBoA8"귻;=HauG5$tyO~}1/$;;q'ƀK؝HJsw#LzswMS8-8$,KY 003mDD}a!5=zfU3MFDN 1HVXXφ%XiKB)U6nIh;) *{d,1"*Q>TTZ=Wn0W*2 l5o_Dqҁ&H͢5tѕ4u t(DGUYx}(@hd ^1ҎlM?;%1›E8Z b `;0UҤ95֌GkL[TDu^JhD' %l kc0`Y3ѷɊPYp"^ `hbBI!(QMisX6&2 %)n6[TEA0pHVRЀPqʝ0m4A(9 9*װi^P|Jf-z25 *u(N0 N:p3OAF zT am'fWAOQ zoe)WI3;%KepwZ}? kaNVv| At6w.. Mm YtyJQ~S#.~qIOue=7)+gsS~S\9`ӳ/ 8j`+߯| ^,)'rIENDB`youtranslate-1.1.10/make.sh0000744000175000017500000000016510521373702013736 0ustar sassas#!/bin/sh # This file is autogenerated by MonoDevelop # Do not edit it. make -f Makefile.solution.youtranslate "$@" youtranslate-1.1.10/Makefile.youtranslate0000744000175000017500000000227410521373702016661 0ustar sassas SOURCES = \ ./yTMain.cs \ ./yTMessageBox.cs \ ./yTProvider.cs \ ./yTService.cs \ ./yTToolWin.cs \ ./yTUserPrefs.cs \ ./yTLangSelector.cs \ ./yTTrayIcon.cs \ ./yTTrayLib.cs \ ./yTLargeTranslator.cs \ ./AssemblyInfo.cs RESOURCES = \ ./yt.glade \ ./yTicon.png \ ./yTLogo.png \ ./ar.png \ ./de.png \ ./el.png \ ./en.png \ ./es.png \ ./fr.png \ ./it.png \ ./ja.png \ ./ko.png \ ./nl.png \ ./pt.png \ ./ru.png \ ./sv.png \ ./zh.png RESOURCES_BUILD = $(foreach res,$(RESOURCES), $(addprefix -resource:,$(res)),$(notdir $(res))) PKG_REFERENCES = \ gtk-sharp \ glade-sharp PKG_REFERENCES_BUILD = $(addprefix -pkg:, $(PKG_REFERENCES)) PKG_REFERENCES_CHECK = $(addsuffix .pkgcheck, $(PKG_REFERENCES)) MCS_OPTIONS = all: youtranslate.exe youtranslate.exe: $(SOURCES) $(RESOURCES) mcs $(MCS_OPTIONS) -target:exe -out:"youtranslate.exe" $(RESOURCES_BUILD) $(PKG_REFERENCES_BUILD) $(SOURCES) \ && cp "youtranslate.exe" ./build/. clean: rm -f youtranslate.exe depcheck: PKG_depcheck PKG_depcheck: $(PKG_REFERENCES_CHECK) %.pkgcheck: @echo -n Checking for package $(subst .pkgcheck,,$@)... @if pkg-config --libs $(subst .pkgcheck,,$@) &> /dev/null; then \ echo yes; \ else \ echo no; \ exit 1; \ fi youtranslate-1.1.10/zh.png0000744000175000017500000000206010521373702013610 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 7"z'IDATXMUNLbL ď\H֊ t%"0%ċܹ͝39oƍ٤朞ުꆧ>$Ǿacb֬%/<4z/|/ZJ⪠  >=!Y^3Zs ,!)qv᛻-l m^oV;=X 70GwH4Hy&J,fj#pm޻ {3m2+pi7ְв0/Xd_{>9 g69x gz9GaՑn-1l VxYxsJppBf6d7ж;$`#0墟V}Hl½6kA%4z=e^XLSH+X- n?49VrVj8KRVs-77s:@ ~YzG*B {@>Gnq~6\WiXw^jV!f9;,ZX6Yvcό 31xfۍv]f{6did=0YZJk`6#r CjD`-p$Y;ѸbTi ыM߹3%H}ؽh  Ԁ4w' ;ilHCkڵ|}'m|ܛJH6] fCk-T4|^P4@2E4o`Tc " @B4L搶5w.;],;2`BTҐ/a@Ę~ 7ϧ`v Q-u";_}z*,.{`U~~>G:ƕȨYʄF G)*>Jg,O;Œ_IENDB`youtranslate-1.1.10/nl.png0000744000175000017500000000173110521373702013604 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 7 f/fIDATX헽\E ' @MOPQ hh% " -""Mv63{U"d$;o{< ooܹc{rMPə|Oʪlp8oy~;*\Z{<0"Vs=N>F)@k@zٰܸݏZ{JdZ_.B7M "/Ev:ܳ #ݎf2 |-0sW߹&3~Z& v# L(1>0r{`S^lauoo-a4>da; ~>?j/YxY^x&Á7|_oAIENDB`youtranslate-1.1.10/yTLogo.png0000744000175000017500000001271510521373702014414 0ustar sassasPNG  IHDRda /bKGD pHYs  tIME%k,ZIDATx{tT?̙W$gyDy(UEZZ,rZuUhՅ\U+jm} (<!ɼq΄9&!@+5kMf޿]N r\e 4Zʀ{JWa 0 o ?6ˁ]@ fX/S`HHIHInlrzxzܸsxcDcqZ46PRҩ j6,VX#$d$0xS`pL1 cJ):w0-BhXMz'Xyk`~,Gkz; qӁ-$0Iù檩 2(^Ӌ`T` XedΞڹF|xxsDmWg@3P/7[)kT?xx"'d"8p9 Lԃo>W6/QUmb^βFY l%$x ;3=ax^yK{0a/-`ޏyA>ckp3e]M,5z,!=gBG7clz`+/k# 1# "!c+(z6 5GʶѲܕ X |N?^ݟ}aXEd၄nd/8]Bž޻?C,'kBv!c'_V쩧!f-5ٙ"a9NⴾN޿}%s9KF[s(s7{vZu ZΤљH"`.an^q8thaILU}35K{q$$9v?kdʺ^cؤ/pw8f(foG!T+A& l7PhJtmDpVX tۆ 3. Gj}R*W>>dIr ϺCQ7WR$!%Qj?YdxzT M,g- y bEҎ yY~.ʷ8z:5a ]SFX Z0 mQmݛu@< u\H6 ued _ C(:|zTGe,OྱޣLCSknu-HĄ^RTU_QT&Rž&ӔQz>Z¡rI5:z@mX!Z}iNuH-z.5:+|ZG썌=`z_cc@~1zQw -#.Bzxcg 8FDC/p GӠkQqTdgu$$Np`-4hYO6bO&/[Qb[vGk*Et:@炀@EB0n= y3KJe;1d,p 'f;˽wĈx1?!n,'z @ ;"3$;BqMNTMcWJ,qRB*S4/r- $KU ET8+D2. ~fI:t. zz(ƎHKJ]D㥲(a/̺P"LϦje|w )3Sxp?bZ<)>e<?l>AjloP-УHi,%n,Nܤ~]4|sPQR <NF=+ĥ\PPS>`Pdd5 Q9ut,)"#-&' {Q"-'\Ee1bn'Y"Bk]afv:V4 XӠ6jj5.pCFT-@aNJT\o^I`Hg5a?!E+|NM\:6(lmM)q BfPT?mPd  9ÜN O]Y#'e#sX+*I[|D**U!""G뼴#q[7] 1(M2t*7)#+0Gɳ& j&J$Et`{Be k˗й(WpJE&t1c=jnΕE"wpZ5* jvB1 Z"}(,07Z^ 03ǯ D?G8FDFJC+(\_bY}H1T^}rļD{@C,Ĕ>N^Os9%؊2w{'HH.pfM'ph2?% wC՜r:ONr˭jSgAۮqUԵʶmfSK[{U-$ٗH*( dhS*ΞEfu(tINSKBaT9n;W?hO{NQ@KSOBf$Wn$,/Y k쫧Oy胧'IZ~BGdW=OO1Ч7 hmH3D{Iet@ZQ˾} OO6GJDMMؼv$pi!LC|Y$K A鄚b. o8>d0rDxr y ${d_vtp~5 ,R3P .ZF=ǒ]cZpucՓHFvʩQٻ:*Dp`' wm^n*>edQM'u)a֊r+: M1 j!t1{Ze L"t/:IW$̔Fw\38#0,),I%%vԖF{(82P]'Fe vMPƱ xxϫ %rn K]>ECf>v3F%H2fӑq:pwEAE6Ӎ3$׉; jݒ9CH>h!g I1RޢqfZ1AyK)`(l )EZ/jn u2d^ TCJ:I2_((ʧW+t[NO*dY8Э: T7$?uB+,рwǻV'mU6ޱ8 yd)`5il:ҭ:5im$O&K`nx:j,Kiw+Bc`ɞ~In_qenul>AK朌(Y%viq+ z.2'JmXDu=J2g8"IEAmo& w#h<-QyK) ƆoG%!v}$7Z2.!x,()ԍ:N~o6!`VZ᎕ĺڍfpDזlInxhdۉG&6vLfQ'|MlrFXQ૶ ʹ0KUuuykZ5lwTܺZK.!qVPXe![{6wDT>G%x&3^@]{Xe'tC3`'2% ;Mgcݤ|W Kf~tˡ,EgJM;֯ȷ:;o~ባcjt!p􄝟 /xxlp~ ̀{ֆyrs,!;IA{B.^{X`Ό.b窆/Q!V*M Nf:mk/d2:hZ_'Kt$/d\Obƀ?h!fpӲWhOcV+vLXiu{e./(긡>i6zr|$jtL[Wsʵ ьi8c3QSGg4 ׫e fL&Vʧj)f10WnZasoGTgOڙw;V{DA2r@d5⎕Ċnޗd|t6cz 0'3zI3l=vQ2,:,cfcfL 1ʾ 6 3Ve 0yuWZWŪj)o0wU8TkdLِa; Ea]xewG4.vPksPCU1!?ìv۲ u*w H"/aD˻srh/WsPbv}%=Mbnidh,?Ԗ(*c `uё,I<\̒upP77qӷGz&$w@fMJQ'2H.iөjy<˻l8FZ%yca)8ELFF[& +%&:[$ vfPY_jv|ĺ֚9hNGW 1O <~CEJE}"WpYN!4 c:a!ʠFy~LLbso+t '0Rg-2Y3-se@W;-BF#0 v˵f6G3~jeJO[UIENDB`youtranslate-1.1.10/yTLangSelector.cs0000744000175000017500000001132410523361247015715 0ustar sassas/* 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. */ using System; using Gtk; using Gdk; using Glade; public class yTLangSelector { // Language selection Widgets [Widget] Gtk.Window langWindow; [Widget] Gtk.Window parentWindow; [Widget] Gtk.TreeView langView; [Widget] Gtk.Image imgFlag; [Widget] Gtk.Button cmdApplyLang; private yTService currentService; private yTUserProfile currentProfile; private Gtk.ListStore langStore; private string[] languagesAcro; private string[] languagesDesc; private int fromWhere; private string actualSelectedItem; public yTLangSelector(Gtk.Window owner,yTUserProfile usp, Gtk.Image img,yTService cs,int from){ Glade.XML gxml = new Glade.XML (null, "yt.glade", "langWindow", null); gxml.Autoconnect (this); parentWindow = owner; currentProfile = usp; currentService = cs; fromWhere = from; imgFlag = img; setupData(); setupGui(); actualSelectedItem = ""; } private void setupData(){ string ll = "ar,nl,en,fr,de,el,it,ja,ko,pt,ru,zh,es,sv"; string ld = "Arabic,Dutch,English,French,German,Greek Modern,Italian,Japanese,Korean,"+ "Portuguese,Russian,Simplified Chinese,Spanish,Swedish"; languagesAcro = ll.Split(','); languagesDesc = ld.Split(','); } private void setupGui(){ langWindow.Icon = new Gdk.Pixbuf(null,"yTicon.png"); langWindow.TransientFor = parentWindow; langWindow.SetPosition(Gtk.WindowPosition.CenterOnParent); langWindow.Modal = true; langWindow.ShowAll(); setupLanguageViewer(); populateLanguageViewr(); cmdApplyLang.Clicked+=on_cmdApplyLang_clicked; } private void setupLanguageViewer(){ TreeViewColumn col = new TreeViewColumn(); CellRendererPixbuf pixr = new CellRendererPixbuf(); col.PackStart(pixr, false); col.AddAttribute(pixr, "pixbuf", 0); langView.AppendColumn (col); col = new TreeViewColumn (); CellRenderer colr = new CellRendererText(); col.PackStart(colr, true); col.AddAttribute (colr, "markup", 1); langView.AppendColumn (col); col = new TreeViewColumn (); colr = new CellRendererText(); col.PackStart(colr, true); col.AddAttribute (colr, "markup", 2); langView.AppendColumn (col); langStore = new ListStore (typeof (Gdk.Pixbuf),typeof(string),typeof(string)); langView.Model = langStore; langView.RowActivated+=onDoubleClicked; langView.Selection.Changed+=onSingleSelection; } private void populateLanguageViewr(){ for(int j=0;j"+languagesDesc[j]+"",languagesAcro[j]); } } private void onSingleSelection(object o, EventArgs args){ TreeModel model; TreeIter iterSelected; if(((TreeSelection)o).GetSelected (out model, out iterSelected)) { actualSelectedItem = (string) model.GetValue (iterSelected, 2); } } private void on_cmdApplyLang_clicked(object sender, EventArgs e) { if(actualSelectedItem!="") { imgFlag.Pixbuf = new Pixbuf(null, actualSelectedItem+".png"); if(fromWhere==1) { currentProfile.Language1 = actualSelectedItem; currentService.Language1 = actualSelectedItem; } else if(fromWhere==2) { currentProfile.Language2 = actualSelectedItem; currentService.Language2 = actualSelectedItem; } } langWindow.Destroy(); } private void onDoubleClicked(object o, EventArgs args){ string selectedItem=""; TreeIter iter = new TreeIter(); langStore.GetIterFirst(out iter); if (langView.Selection.IterIsSelected(iter)) { selectedItem = (string)langStore.GetValue(iter, 2); } while(langStore.IterNext(ref iter)) { if(langView.Selection.IterIsSelected(iter)) { selectedItem = (string)langStore.GetValue(iter, 2); } } imgFlag.Pixbuf = new Pixbuf(null, selectedItem+".png"); if(fromWhere==1) { currentProfile.Language1 = selectedItem; currentService.Language1 = selectedItem; } else if(fromWhere==2) { currentProfile.Language2 = selectedItem; currentService.Language2 = selectedItem; } langWindow.Destroy(); } }youtranslate-1.1.10/yTProvider.cs0000744000175000017500000001506010673767263015144 0ustar sassas/* 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 (Altavista) 3 | Systran 4 | WorldLingo 5 | Babel Fish (Yahoo) -------------------------- */ 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#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; } } // 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 (Altavista) resUrl+="/babelfish/tr?urltext="+textToTransalte+ "&lp="+langFrom+_LangSep+langTo+"&enc=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+ "&lp="+langFrom+_LangSep+langTo+""; 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 }youtranslate-1.1.10/yTUserPrefs.cs0000744000175000017500000000674510523361247015264 0ustar sassas/* 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. */ using System; using System.Xml; public class yTUserProfile { private string _language1; private string _language2; private int _providerID; private string _filename; private bool _startMode; private bool _allWorkspace; private int _largeKey; // Constructor public yTUserProfile(){ _filename = System.Environment.GetEnvironmentVariable("HOME")+"/.ytSettings"; _language1 = "en"; _language2 = "en"; _largeKey = 12; _startMode = false; _allWorkspace = false; _providerID = 1; } // Read settings public void readSettings(){ XmlDocument xdsettings = new XmlDocument(); try{ xdsettings.Load(_filename); XmlTextReader xr = new XmlTextReader(_filename); while(xr.Read()){ if(xr.NodeType == XmlNodeType.Element) { if(xr.Name=="YTSETTINGS"){ while(xr.MoveToNextAttribute()){ if(xr.Name=="LANG1") _language1 = xr.Value; else if(xr.Name=="LANG2") _language2 = xr.Value; else if(xr.Name=="TPROV") _providerID = Convert.ToInt16(xr.Value); else if(xr.Name=="SMODE") _startMode = getSMode(xr.Value); else if(xr.Name=="SHOWA") _allWorkspace = getSMode(xr.Value); else if(xr.Name=="LGKEY") _largeKey = Convert.ToInt16(xr.Value); } } } } xr.Close(); } catch(Exception e){ saveBookmarks(true); } } private bool getSMode(string s){ if(s=="T") return true; else return false; } private string setSMode(bool s){ if(s==true) return "T"; else return "F"; } // Save settings public void saveBookmarks(bool firsttime){ XmlDocument xdsettings = new XmlDocument(); XmlElement xe = xdsettings.CreateElement("YOUTRANSLATE"); xdsettings.AppendChild(xe); if(!firsttime) { XmlElement xpe = xdsettings.CreateElement("YTSETTINGS"); xpe.SetAttribute("LANG1",(string)_language1); xpe.SetAttribute("LANG2",(string)_language2); xpe.SetAttribute("TPROV",_providerID+""); xpe.SetAttribute("SMODE",setSMode(_startMode)+""); xpe.SetAttribute("SHOWA",setSMode(_allWorkspace)+""); xpe.SetAttribute("LGKEY",_largeKey+""); xe.AppendChild(xpe); } xdsettings.Save(_filename); } // Public Properties :: start public string Language1 { get {return _language1;} set {_language1 = value;} } public string Language2 { get {return _language2;} set {_language2 = value;} } public int ProviderID { get {return _providerID;} set {_providerID = value;} } public bool startMode { get {return _startMode;} set {_startMode = value;} } public bool allWorkspace { get {return _allWorkspace;} set {_allWorkspace = value;} } public int largeKey { get {return _largeKey;} set {_largeKey = value;} } // Public Properties :: end }youtranslate-1.1.10/ar.png0000744000175000017500000000204110521373702013570 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 5"tIDATX헽En[]! " a x G$d2D+pH^vz4u!ٙ][ZɉK]UuO:V .gJ 2D#gkՎ=TuOw)a'!P@||!#,c,! ,$-l Tz|SsMRۂc"Cάȼu MoB"$DTQm[mDX8 RcY]8%e4ͱ MQlOBOiJƭH@ vеT!5*T>.?x^>p) ftX5ZE?su{ô#A^Zpt]V#wrlyzIQT@{Bdl.-*&t‰XǨX#>~mNab 8v K5<-yr$=10ɰzD]{,2d5Ţ?缰 ^yۣtL$ aEBFut=SYyaeцYE2}1XUʅYF,"VDi"/?R@3)%\*̀h_> *|[0U bcȼ) ژ#jF[TauX>ˀ_ Lzo1+/S,)_ IENDB`youtranslate-1.1.10/yTicon.png0000744000175000017500000000311010521373702014431 0ustar sassasPNG  IHDR szzbKGD pHYs  tIME$ IDATXýkl3OkLSpb9Vp8P Z%*QUR~RUK|(UT( 2*$ T !t ؋5kc1H399?H,\f`CUXDpyEpsEm+{wl}݇Qm(/';t -(懒Ÿ?70ȈS]懒6R֜"`.|edY-_ڛܭ@BJwUԺp}lj|2dֵup'ellj{df$f֗ɽ>ݔ4—a$'aYxD:w/o O~2zur' \Ǣ1k-X5;\VMZ=Z":Z#;3li UkB |i\0 !z: 41MG=.}|2yoWIwo>_S_&C=.+չ30L!UxT*A\7[XEKI(^icAT0]X.* % Z^I2yIäXd 89ZҰ/Wʄ}jm銯9k2TKV"IWLGI&,O>|c2># ö4 ǧ7`M>^8-}>0D$-C.O j>tO2f Qt&*81YΧ+T9'rF 9@ xt/P]]^طFPsDU*73, yuG إMdx;$#E羷  M]_ KCgCOup[j99]6x^ f.iyDϤUŖ3gdw/ً=8J>@!TA-sB^Y,/sG=Z[:u6qo.5;OK2=.=.KP=6vԸƍIT|-l7td)e+((^o6ϝR?gcr#qG G4hkN5f;8тq|\ۜ>!TGs(XcJ|Z⎕?Πq2{o7y{^,KȥUl:@WIENDB`youtranslate-1.1.10/yTMessageBox.cs0000744000175000017500000000375610523361247015402 0ustar sassas/* 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. */ using System; using Gtk; public class yTMessageBox : Dialog { public Entry text; public yTMessageBox (string title, string question,string explanation,bool yesno,bool withTxt) : base () { this.Title = title; this.HasSeparator = false; this.BorderWidth = 6; this.Resizable = false; HBox h = new HBox (); h.BorderWidth = 6; h.Spacing = 6; Image i = new Image (); i.SetFromStock (Stock.DialogWarning, IconSize.Dialog); i.SetAlignment (0.5F, 0); h.PackStart (i, false, false, 0); VBox v = new VBox (); Label l = new Label ("" + question + ""); l.LineWrap = true; l.UseMarkup = true; l.Selectable = true; l.Xalign = 0; l.Yalign = 0; v.PackStart (l); if(withTxt==true) { text = new Entry(); v.PackEnd(text); } l = new Label (explanation); l.LineWrap = true; l.Selectable = true; l.Xalign = 0; l.Yalign = 0; v.PackEnd (l); h.PackEnd (v); h.ShowAll (); this.VBox.Add (h); this.Icon = new Gdk.Pixbuf(null,"yTicon.png"); if(yesno==false){ this.AddButton(Stock.Ok, ResponseType.Ok); } else { this.AddButton(Stock.Yes, ResponseType.Yes); this.AddButton(Stock.No, ResponseType.No); } } }youtranslate-1.1.10/ru.png0000744000175000017500000000165210521373702013623 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 777IDATX헽n$Eݓ!!RWs  Av)OrzH,$OWtl̎%V??U^kfOK)*f3[U֘hۦgv秧磣ONN>9#")QJAU8;; xl6kRJV+RJ3q?и2UEDuoBb4CC:|20R ぇlZK:ㄈL<$.E ) #a)bT"D0 CaV_Yg<" Q$ S9B_K/ "'e23dIj_(h5/u\i@TK f$Ɋhe ᙁI%<)L,XJ+wſ<ڦsQZìZDZܶ$,@q:}tmh{ncLTϝr*Hh`YW[+3J]wz ^'_`͞~xF JhxР=?^^w <K=]ɸ`姮`Iq]EM TL@ݑN^kؖ=Q~_47kxd޺@(43  OOd {P>"@Hxx! ?|gb=ps}w+[ ?8T aԱ)V 5şp3z/.󏯮 1/-Z5:)a\[i|0~q;GĎٵIENDB`youtranslate-1.1.10/en.png0000744000175000017500000000377710521373702013611 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 6W6vIDATXkpU{Jn. (բ Xk+VV-3cZmZ-:QhF0 ޏK{^pͽï~qϬ{sY::!7u}Ap8cClXɤD0D9n=5扷SGX -Q48J[È-orw!V '7H (o`pqeXe;(7%hk}c9ܲm:퇆n"rŵ3i?70|[ͳ[FY y%  ҥSgY${ zy F2G^fLsEL{s{QnlQeEuI 07 ;W@J}5`-b<m b X4:PL*(7^r Pn.>s2ɯu{# PXU %# (0Sx/ /]k?%_^lڂ|*니xb );h4O09JA uzRyc`X5 b bdll6} խn7 :P4:9p0<S9 ʆ{ekDt_y|zF@n}Om"VjCD.#U>MCf`&A=Bk -dM@\+pڃΩα7f[\$&"NCeus%9F/aɖ05?RL<9S8&>)LcF:]Rj .s3ibs5yҡǷ V`;'߾@U~ 捳upa?^$\*M_ʕڣ:ȣ|á'Tְn4LHlLxy0̢ 5=A,ˮ҈"?Sܸu.eJ:{XX_^ĿO6PbX9.?8䡺53Gbz, 1S缂ˈak,{g2^毨زad0oJEp)(j;J%r[ :\@3^np0f4|MJ[\ youtranslate-1.1.10/Makefile.solution.youtranslate0000744000175000017500000000046110521373702020530 0ustar sassas OUTPUTDIR := ./build/ all: depcheck __init Makefile.youtranslate.all __init: mkdir -p $(OUTPUTDIR) clean: Makefile.youtranslate.clean depcheck: Makefile.youtranslate.depcheck run: all cd $(OUTPUTDIR) && mono youtranslate.exe Makefile.youtranslate.%: @cd ./ && $(MAKE) -f $(subst .$*,,$@) $* youtranslate-1.1.10/COPYING0000744000175000017500000004311010521373702013515 0ustar sassas GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. youtranslate-1.1.10/ko.png0000744000175000017500000000322010521373702013577 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 7%E UIDATX]hU{L53$K*D$2j-}_)E({o^k|پ&>41c< ψ߼wbڳgrZPH$)R"D,othе㵎h1䍓$-˲, !DV(֡ⵆ-// q]7k+++!Pf ˲FcR!e$^)Ž{8{,5dK汱1>|7ndzH)mZky& \tx/1 wܡݻwS\\Y2c RJvy!(3ZqļUDSx Akk+ϟ?%-+7!ˋԗ+j^|lނd2D}!;ʹ.̣,4$ GoJIQ6ض͹shii~ÖE 3ma昝ett@@,d.N4?7Jq(ܺuEl^2gjjimƕ+W>xjĵSoݶJ#!*PrŷQğޫ'*zr瓗>N=0u9" kOu|hTSPMk,*~~*L&ͽH"C**10AQ ,_fQpcLW( \u<QstH \]Z@{>[ZoI܍zX$" ($IĀ ,qõ^=?o ~Bx 0CoeO\ֻ5j0me |:gŪXP\)BsbXwV'G2;؟[DˢY2VSQT77_"죷&IENDB`youtranslate-1.1.10/es.png0000744000175000017500000000234610521373702013605 0ustar sassasPNG  IHDR szzbKGD pHYs B4tIME 6.ΡsIDATXϏTE?ݯǙ]XHJka;z0$4&xЋCa1JAaɲf޾y.$&rJUwtvwI{ͭ35&U@Q0ԏ/t4 V<֏ %[Vd];-{EEǜKa**(b" Y`1&; &DN A}8_@Q]޴)1}bOa>h]l񢤳$kNAeT.\i`.Gy)n%ko2f2RH0tJtbVӣA m+L ]Mp.ٸtzF:1PIdС%L`GE ]@Ky6zڔci f] D״8 6Vܸ:?vgϵMQ)Ƹ @W":H]}w}f?ˋSaz(H7ܟ1IX΃[Xbx϶go%tf[LO̿ Rt4vqϵ]#s?8|⛞PN-p:aqۧh/}>Mj#bF~NtY l<ߢw3mg050>j Z"j8z/\=Sg>|zkoîʜ@}h70t_虣Q=F1hYYJ0\v2{pi,,|CwI`W Ƶ<Y}h2E|n :l}o;w{D$efauAYc/%XǶ1.!qv P$^p:079j~7c6@"/t y2:1) PE%ZIMZ>[Dua8HS,z]_AжI1KܲLDyL Tk (i s Ӻ48H<lnZ`*')KUč>`mP> ϭ`5Vny99\UiC3KF5QT-Ĕ-3fEE0D,Z}aKIQ{UuW~֘6&LXE:d gSޓ KIENDB`youtranslate-1.1.10/yTToolWin.cs0000744000175000017500000001074410667022113014726 0ustar sassas/* 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. */ using System; using Gtk; using Gdk; using Glade; public class yTToolWin { // Language selection Widgets [Widget] Gtk.Window toolWindow; [Widget] Gtk.Window parentWindow; [Widget] Gtk.Button cmdOk; [Widget] Gtk.Button cmdCancel; [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; //private yTService currentService; private yTUserProfile currentProfile; private yTProvider currentProvider; private int selectedProvider; private int keyNumber; public bool startInSystray; public bool showInAllWorkspace; public yTToolWin(Gtk.Window owner,yTUserProfile usp, yTService cs,yTProvider cp){ Glade.XML gxml = new Glade.XML (null, "yt.glade", "toolWindow", null); gxml.Autoconnect (this); parentWindow = owner; currentProfile = usp; //currentService = cs; currentProvider = cp; startInSystray = currentProfile.startMode; showInAllWorkspace = currentProfile.allWorkspace; keyNumber = currentProfile.largeKey; setupGui(); setupRadioProvider(currentProvider.ID); // setupStartupMode(); chkStartIco.Visible = false; // (G2.16) setupSpinValue(); setupVisibility(); } /* (G2.16) private void setupStartupMode(){ if(startInSystray==true) chkStartIco.Active = true; else chkStartIco.Active = false; } */ private void setupSpinValue(){ spinLarge.Value = keyNumber; } private void setupVisibility(){ if(showInAllWorkspace==true) chkAllDesk.Active = true; else chkAllDesk.Active = false; } private void setupRadioProvider(int prov){ switch(prov){ case 1: radioProvider1.Active = true; break; case 2: radioProvider2.Active = true; break; /* case 3: radioProvider3.Active = true; break; case 4: radioProvider4.Active = true; break; */ case 5: radioProvider5.Active = true; break; } } private void setupGui(){ toolWindow.Icon = new Gdk.Pixbuf(null,"yTicon.png"); toolWindow.TransientFor = parentWindow; toolWindow.SetPosition(Gtk.WindowPosition.CenterOnParent); toolWindow.Modal = true; toolWindow.ShowAll(); cmdOk.Clicked+=buttonHandler; 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"); } private void checkHandler(object o, EventArgs args){ CheckButton b = (CheckButton) o; if(b==chkStartIco){ startInSystray = chkStartIco.Active; } else if(b==chkAllDesk){ showInAllWorkspace = chkAllDesk.Active; } } private void radioHandler(object o, EventArgs args){ 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){ Button b = (Button) o; if(b==cmdOk) { currentProvider.changeProvider(selectedProvider); currentProfile.ProviderID = selectedProvider; currentProfile.startMode = startInSystray; currentProfile.allWorkspace = showInAllWorkspace; currentProfile.largeKey = Convert.ToInt16(spinLarge.Value); } toolWindow.Destroy(); } }youtranslate-1.1.10/youtranslate.mdp0000744000175000017500000001044610674140330015722 0ustar sassas youtranslate-1.1.10/yTLargeTranslator.cs0000644000175000017500000000716110667020160016435 0ustar sassas/* 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. */ using System; using Gtk; using Gdk; using Glade; public class yTLargeTranslator { [Widget] Gtk.Window largeTRanslatorWindow; [Widget] Gtk.Window parentWindow; [Widget] Gtk.Button cmdClose; [Widget] Gtk.Button cmdTranslate; [Widget] Gtk.Button cmdCopy; [Widget] Gtk.Button cmdPaste; [Widget] Gtk.Label lblFrom; [Widget] Gtk.Label lblTo; [Widget] Gtk.TextView txtTextSource; [Widget] Gtk.TextView txtTextTarget; [Widget] Gtk.Image imgFrom; [Widget] Gtk.Image imgTo; private yTUserProfile currentProfile; private yTProvider currentProvider; private yTService currentService; private string from; public yTLargeTranslator(Gtk.Window owner,yTUserProfile usp, yTService cs,yTProvider cp,string fr){ Glade.XML gxml = new Glade.XML (null, "yt.glade", "largeTRanslatorWindow", null); gxml.Autoconnect (this); from = fr; parentWindow = owner; currentProfile = usp; currentService = cs; currentProvider = cp; setupGui(); } private void setupGui(){ largeTRanslatorWindow.Icon = new Gdk.Pixbuf(null,"yTicon.png"); largeTRanslatorWindow.TransientFor = parentWindow; largeTRanslatorWindow.SetPosition(Gtk.WindowPosition.CenterOnParent); largeTRanslatorWindow.Modal = true; largeTRanslatorWindow.SetSizeRequest(450,350); cmdClose.Clicked+=buttonHandler; cmdTranslate.Clicked+=buttonHandler; cmdCopy.Clicked+=buttonHandler; cmdPaste.Clicked+=buttonHandler; if(from=="1") { lblFrom.Text = "Source: " + currentService.Language1 + ""; lblFrom.UseMarkup = true; lblTo.Text = "Target : " + currentService.Language2+ ""; lblTo.UseMarkup = true; imgFrom.Pixbuf = new Pixbuf(null, currentService.Language1+".png"); imgTo.Pixbuf = new Pixbuf(null, currentService.Language2+".png"); } else { lblFrom.Text = "Source: " + currentService.Language2 + ""; lblFrom.UseMarkup = true; lblTo.Text = "Target : " + currentService.Language1+ ""; lblTo.UseMarkup = true; imgFrom.Pixbuf = new Pixbuf(null, currentService.Language2+".png"); imgTo.Pixbuf = new Pixbuf(null, currentService.Language1+".png"); } largeTRanslatorWindow.ShowAll(); } private void buttonHandler(object o, EventArgs args){ Button b = (Button) o; Clipboard X; int fromLang; if(from=="1") fromLang=1; else fromLang=2; if(b==cmdClose) { largeTRanslatorWindow.Destroy(); } else if(b==cmdTranslate) { currentService.txtLarge = txtTextTarget; currentService.goTranslate(txtTextSource.Buffer.Text, fromLang, true); } else if(b==cmdCopy) { X = Gtk.Clipboard.Get(Gdk.Atom.Intern("PRIMARY",false)); if(X.WaitIsTextAvailable()) X.SetText(txtTextSource.Buffer.Text); } else if(b==cmdPaste) { X = Gtk.Clipboard.Get(Gdk.Atom.Intern("PRIMARY",false)); if(X.WaitIsTextAvailable()) txtTextSource.Buffer.SetText(X.WaitForText()); } } }