|
|
|
@ -900,14 +900,14 @@ ConversionStatus Catalog::openURL(const KURL& url, const TQString& package)
|
|
|
|
|
// gimme plugin for this MIME type
|
|
|
|
|
KMimeType::Ptr mime = KMimeType::findByURL( url, 0, true );
|
|
|
|
|
kdDebug() << "Found mimetype: " << mime->name() << endl;
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "('"+mime->name()+"' in [X-KDE-Import])");
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "('"+mime->name()+"' in [X-TDE-Import])");
|
|
|
|
|
KService::Ptr ptr = offers.first();
|
|
|
|
|
|
|
|
|
|
// we have no offer for this MIME type
|
|
|
|
|
if( !ptr )
|
|
|
|
|
{
|
|
|
|
|
kdDebug(KBABEL) << "No plugin for this type, will try PO" << endl;
|
|
|
|
|
offers = KTrader::self()->query("KBabelFilter", "('application/x-gettext' in [X-KDE-Import])");
|
|
|
|
|
offers = KTrader::self()->query("KBabelFilter", "('application/x-gettext' in [X-TDE-Import])");
|
|
|
|
|
ptr = offers.first();
|
|
|
|
|
if( !ptr )
|
|
|
|
|
{
|
|
|
|
@ -1003,7 +1003,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
|
|
|
|
|
|
|
|
|
|
// gimme plugin for this MIME type
|
|
|
|
|
KMimeType::Ptr mime = KMimeType::findByURL( openUrl, 0, true );
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "('"+mime->name()+"' in [X-KDE-Import])");
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "('"+mime->name()+"' in [X-TDE-Import])");
|
|
|
|
|
KService::Ptr ptr = offers.first();
|
|
|
|
|
|
|
|
|
|
// we have no offer for this MIME type
|
|
|
|
@ -2071,7 +2071,7 @@ ConversionStatus Catalog::writeFile(TQString localFile , bool overwrite)
|
|
|
|
|
|
|
|
|
|
// gimme plugin for this MIME type
|
|
|
|
|
KMimeType::Ptr mime = KMimeType::findByURL( KURL::fromPathOrURL( localFile ) );
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "('"+mime->name()+"' in [X-KDE-Export])");
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "('"+mime->name()+"' in [X-TDE-Export])");
|
|
|
|
|
KService::Ptr ptr = offers.first();
|
|
|
|
|
|
|
|
|
|
// we have no offer for this MIME type
|
|
|
|
|