summaryrefslogtreecommitdiffstats
path: root/kbabel/common
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 15:57:31 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-08 15:57:31 -0500
commit1e748bbb220bfcba8b697f560410423bb20c72dd (patch)
tree5d619782e4b2dd159e511fb5405c2e950665cfed /kbabel/common
parent6eb61da8c12aef0011b10a626c1fe58c800d2aff (diff)
downloadtdesdk-1e748bbb220bfcba8b697f560410423bb20c72dd.tar.gz
tdesdk-1e748bbb220bfcba8b697f560410423bb20c72dd.zip
Update XDG information in support of bug report 892.
Diffstat (limited to 'kbabel/common')
-rw-r--r--kbabel/common/catalog.cpp8
-rw-r--r--kbabel/common/exportplugin.cpp4
-rw-r--r--kbabel/common/importplugin.cpp4
-rw-r--r--kbabel/common/kbabelfilter.desktop8
4 files changed, 12 insertions, 12 deletions
diff --git a/kbabel/common/catalog.cpp b/kbabel/common/catalog.cpp
index c3e132dd..58df521f 100644
--- a/kbabel/common/catalog.cpp
+++ b/kbabel/common/catalog.cpp
@@ -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
diff --git a/kbabel/common/exportplugin.cpp b/kbabel/common/exportplugin.cpp
index 25fbef50..0fe7ad6b 100644
--- a/kbabel/common/exportplugin.cpp
+++ b/kbabel/common/exportplugin.cpp
@@ -60,11 +60,11 @@ TQStringList CatalogExportPlugin::availableExportMimeTypes()
{
TQStringList result;
- KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "exist [X-KDE-Export]");
+ KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "exist [X-TDE-Export]");
for( KTrader::OfferListIterator ptr = offers.begin(); ptr!=offers.end() ; ++ptr )
{
- result += (*ptr)->property("X-KDE-Export").toStringList();
+ result += (*ptr)->property("X-TDE-Export").toStringList();
}
return result;
diff --git a/kbabel/common/importplugin.cpp b/kbabel/common/importplugin.cpp
index e75deca7..509f98e6 100644
--- a/kbabel/common/importplugin.cpp
+++ b/kbabel/common/importplugin.cpp
@@ -171,11 +171,11 @@ TQStringList CatalogImportPlugin::availableImportMimeTypes()
{
TQStringList result;
- KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "exist [X-KDE-Import]");
+ KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "exist [X-TDE-Import]");
for( KTrader::OfferListIterator ptr = offers.begin(); ptr!=offers.end() ; ++ptr )
{
- result += (*ptr)->property("X-KDE-Import").toStringList();
+ result += (*ptr)->property("X-TDE-Import").toStringList();
}
return result;
diff --git a/kbabel/common/kbabelfilter.desktop b/kbabel/common/kbabelfilter.desktop
index ac0e98df..f8f89d93 100644
--- a/kbabel/common/kbabelfilter.desktop
+++ b/kbabel/common/kbabelfilter.desktop
@@ -1,6 +1,6 @@
[Desktop Entry]
Type=ServiceType
-X-KDE-ServiceType=KBabelFilter
+X-TDE-ServiceType=KBabelFilter
Comment=KBabel filter
Comment[bg]=Филтър - KBabel
Comment[br]=Sil KBabel
@@ -50,11 +50,11 @@ Comment[uk]=Фільтр KBabel
Comment[zh_CN]=KBabel 过滤器
Comment[zh_TW]=KBabel 過濾器
-[PropertyDef::X-KDE-Import]
+[PropertyDef::X-TDE-Import]
Type=TQStringList
-[PropertyDef::X-KDE-Export]
+[PropertyDef::X-TDE-Export]
Type=TQStringList
-[PropertyDef::X-KDE-Available]
+[PropertyDef::X-TDE-Available]
Type=TQString