@ -40,123 +40,123 @@ PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
{
setInstance ( BabelFishFactory : : instance ( ) ) ;
m_menu = new K ActionMenu( i18n ( " Translate Web &Page " ) , " babelfish " ,
m_menu = new TDE ActionMenu( i18n ( " Translate Web &Page " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage " ) ;
m_menu - > setDelayed ( false ) ;
m_en = new K ActionMenu( i18n ( " &English To " ) , " babelfish " ,
m_en = new TDE ActionMenu( i18n ( " &English To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_en " ) ;
m_fr = new K ActionMenu( i18n ( " &French To " ) , " babelfish " ,
m_fr = new TDE ActionMenu( i18n ( " &French To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_fr " ) ;
m_de = new K ActionMenu( i18n ( " &German To " ) , " babelfish " ,
m_de = new TDE ActionMenu( i18n ( " &German To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_de " ) ;
m_es = new K ActionMenu( i18n ( " &Spanish To " ) , " babelfish " ,
m_es = new TDE ActionMenu( i18n ( " &Spanish To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_es " ) ;
m_pt = new K ActionMenu( i18n ( " &Portuguese To " ) , " babelfish " ,
m_pt = new TDE ActionMenu( i18n ( " &Portuguese To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_pt " ) ;
m_it = new K ActionMenu( i18n ( " &Italian To " ) , " babelfish " ,
m_it = new TDE ActionMenu( i18n ( " &Italian To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_it " ) ;
m_nl = new K ActionMenu( i18n ( " &Dutch To " ) , " babelfish " ,
m_nl = new TDE ActionMenu( i18n ( " &Dutch To " ) , " babelfish " ,
actionCollection ( ) , " translatewebpage_nl " ) ;
m_en - > insert ( new K Action( i18n ( " &Chinese (Simplified) " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Chinese (Simplified) " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_zh " ) ) ;
m_en - > insert ( new K Action( i18n ( " Chinese (&Traditional) " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " Chinese (&Traditional) " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_zhTW " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Dutch " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Dutch " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_nl " ) ) ;
m_en - > insert ( new K Action( i18n ( " &French " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &French " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_fr " ) ) ;
m_en - > insert ( new K Action( i18n ( " &German " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &German " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_de " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Italian " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Italian " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_it " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Japanese " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Japanese " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_ja " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Korean " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Korean " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_ko " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Norwegian " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Norwegian " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_no " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Portuguese " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Portuguese " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_pt " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Russian " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Russian " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_ru " ) ) ;
m_en - > insert ( new K Action( i18n ( " &Spanish " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " &Spanish " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_es " ) ) ;
m_en - > insert ( new K Action( i18n ( " T&hai " ) , 0 ,
m_en - > insert ( new TDE Action( i18n ( " T&hai " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " en_th " ) ) ;
m_fr - > insert ( new K Action( i18n ( " &Dutch " ) , 0 ,
m_fr - > insert ( new TDE Action( i18n ( " &Dutch " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " fr_nl " ) ) ;
m_fr - > insert ( new K Action( i18n ( " &English " ) , 0 ,
m_fr - > insert ( new TDE Action( i18n ( " &English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " fr_en " ) ) ;
m_fr - > insert ( new K Action( i18n ( " &German " ) , 0 ,
m_fr - > insert ( new TDE Action( i18n ( " &German " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " fr_de " ) ) ;
m_fr - > insert ( new K Action( i18n ( " &Italian " ) , 0 ,
m_fr - > insert ( new TDE Action( i18n ( " &Italian " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " fr_it " ) ) ;
m_fr - > insert ( new K Action( i18n ( " &Portuguese " ) , 0 ,
m_fr - > insert ( new TDE Action( i18n ( " &Portuguese " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " fr_pt " ) ) ;
m_fr - > insert ( new K Action( i18n ( " &Spanish " ) , 0 ,
m_fr - > insert ( new TDE Action( i18n ( " &Spanish " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " fr_es " ) ) ;
m_de - > insert ( new K Action( i18n ( " &English " ) , 0 ,
m_de - > insert ( new TDE Action( i18n ( " &English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " de_en " ) ) ;
m_de - > insert ( new K Action( i18n ( " &French " ) , 0 ,
m_de - > insert ( new TDE Action( i18n ( " &French " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " de_fr " ) ) ;
m_es - > insert ( new K Action( i18n ( " &English " ) , 0 ,
m_es - > insert ( new TDE Action( i18n ( " &English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " es_en " ) ) ;
m_es - > insert ( new K Action( i18n ( " &French " ) , 0 ,
m_es - > insert ( new TDE Action( i18n ( " &French " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " es_fr " ) ) ;
m_pt - > insert ( new K Action( i18n ( " &English " ) , 0 ,
m_pt - > insert ( new TDE Action( i18n ( " &English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " pt_en " ) ) ;
m_pt - > insert ( new K Action( i18n ( " &French " ) , 0 ,
m_pt - > insert ( new TDE Action( i18n ( " &French " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " pt_fr " ) ) ;
m_it - > insert ( new K Action( i18n ( " &English " ) , 0 ,
m_it - > insert ( new TDE Action( i18n ( " &English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " it_en " ) ) ;
m_it - > insert ( new K Action( i18n ( " &French " ) , 0 ,
m_it - > insert ( new TDE Action( i18n ( " &French " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " it_fr " ) ) ;
m_nl - > insert ( new K Action( i18n ( " &English " ) , 0 ,
m_nl - > insert ( new TDE Action( i18n ( " &English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " nl_en " ) ) ;
m_nl - > insert ( new K Action( i18n ( " &French " ) , 0 ,
m_nl - > insert ( new TDE Action( i18n ( " &French " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " nl_fr " ) ) ;
m_menu - > insert ( new K Action( i18n ( " &Chinese (Simplified) to English " ) , 0 ,
m_menu - > insert ( new TDE Action( i18n ( " &Chinese (Simplified) to English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " zh_en " ) ) ;
m_menu - > insert ( new K Action( i18n ( " Chinese (&Traditional) to English " ) , 0 ,
m_menu - > insert ( new TDE Action( i18n ( " Chinese (&Traditional) to English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " zhTW_en " ) ) ;
m_menu - > insert ( m_nl ) ;
@ -164,14 +164,14 @@ PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
m_menu - > insert ( m_fr ) ;
m_menu - > insert ( m_de ) ;
m_menu - > insert ( m_it ) ;
m_menu - > insert ( new K Action( i18n ( " &Japanese to English " ) , 0 ,
m_menu - > insert ( new TDE Action( i18n ( " &Japanese to English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " ja_en " ) ) ;
m_menu - > insert ( new K Action( i18n ( " &Korean to English " ) , 0 ,
m_menu - > insert ( new TDE Action( i18n ( " &Korean to English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " ko_en " ) ) ;
m_menu - > insert ( m_pt ) ;
m_menu - > insert ( new K Action( i18n ( " &Russian to English " ) , 0 ,
m_menu - > insert ( new TDE Action( i18n ( " &Russian to English " ) , 0 ,
this , TQT_SLOT ( translateURL ( ) ) ,
actionCollection ( ) , " ru_en " ) ) ;
m_menu - > insert ( m_es ) ;