summaryrefslogtreecommitdiffstats
path: root/parts/openwith
diff options
context:
space:
mode:
Diffstat (limited to 'parts/openwith')
-rw-r--r--parts/openwith/CMakeLists.txt6
-rw-r--r--parts/openwith/kdevopenwith.desktop79
-rw-r--r--parts/openwith/openwithpart.cpp14
-rw-r--r--parts/openwith/openwithpart.h2
4 files changed, 19 insertions, 82 deletions
diff --git a/parts/openwith/CMakeLists.txt b/parts/openwith/CMakeLists.txt
index 8384bdaa..b91b8411 100644
--- a/parts/openwith/CMakeLists.txt
+++ b/parts/openwith/CMakeLists.txt
@@ -26,7 +26,11 @@ link_directories(
##### other data ################################
-install( FILES kdevopenwith.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE kdevopenwith.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdevelop-desktops
+)
##### libkdevopenwith (module) ##################
diff --git a/parts/openwith/kdevopenwith.desktop b/parts/openwith/kdevopenwith.desktop
index 5a32a101..b5e1a5c8 100644
--- a/parts/openwith/kdevopenwith.desktop
+++ b/parts/openwith/kdevopenwith.desktop
@@ -1,79 +1,12 @@
[Desktop Entry]
-Type=Service
-Exec=blubb
-Comment=This plugin provides additional "open" alternatives for various context menus in TDevelop.
-Comment[ca]=Aquest connector proporciona alternatives "open" addicionals per a diversos menús de context a TDevelop.
-Comment[da]=Dette plugin sørger for yderligere "åbne" alternativer for forskellige sammenhængsmenuer i TDevelop.
-Comment[de]=Dieses Modul stellt in vielen Kontextmenüs Alternativen für den Menüpunkt "Öffnen" zur Verfügung.
-Comment[el]=Αυτό το πρόσθετο προσφέρει εναλλακτικές επιλογές "ανοίγματος" για διάφορα σχετικά μενού στο TDevelop.
-Comment[es]=Este complemento proporciona alternativas de «abrir» adicionales en varios menús contextuales de TDevelop.
-Comment[et]=See plugin lisab TDevelopi erinevatele kontekstimenüüdele täiendavaid faili avamise võimalusi.
-Comment[eu]=Plugin honek TDevelop-eko testuinguru menu hainbatentzat beste "ireki" aukera eskeintzen dizkie.
-Comment[fa]=این وصله، انتخابهای »باز کردن« اضافی را برای گزینگان متن مختلف در TDevelop فراهم می‌کند.
-Comment[fr]=Ce module externe fournit des alternatives « ouvertes » supplémentaires pour divers menus contextuels dans TDevelop.
-Comment[gl]=Esta extensión proporciona alternativas "abrir" adicionais a varios menús de contexto de TDevelop.
-Comment[hu]=Ez a bővítőmodul további megnyitási lehetőségeket hoz létre a TDevelop felbukkanó menüiben.
-Comment[it]=Questo plugin offre alternative aggiuntive per "Apri" per i vari menu contestuali di TDevelop.
-Comment[ja]=このプラグインは、TDevelop の中のさまざまなコンテキストメニューに追加の「開く」選択肢を供給します。
-Comment[ms]=Plugin ini menyediakan alternatif "buka" tambahan untuk pelbagai menu konteks dalam TDevelop.
-Comment[nds]=Dit Moduul stellt för en Reeg Rechtsklickmenüs in TDevelop mehr Mööglichkeiten för "Opmaken" praat.
-Comment[ne]=यो प्लगइनले केडीई विकासमा विविध प्रसङ्ग मेनुका लागि अतिरिक्त "खोल्नुहोस्" विकल्प प्रदान गर्दछ ।
-Comment[nl]=Deze plugin biedt extra "open"-alternatieven in verschillende contextmenus in TDevelop.
-Comment[pl]=Ta wtyczka umożliwia dodanie dodatkowych możliwości otwierania plików w menu kontekstowych TDevelopa.
-Comment[pt]=Este 'plugin' oferece várias alternativas adicionais e "abertas" para vários menus de contexto no TDevelop.
-Comment[pt_BR]=Este plug-in fornece alternativas adicionais de "abrir" para vários menus de contetxo do TDevelop.
-Comment[ru]=Этот модуль предоставляет различные возможности открытия файлов, используя контекстные меню TDevelop.
-Comment[sk]=Modul poskytuje dodatočné "Otvoriť pomocou" alternatívy pre rôzne kontextové menu v TDevelop.
-Comment[sr]=Овај прикључак обезбеђује додатне алтернативе за „отвори“ за различите контекстне меније у tdevelop-у.
-Comment[sr@Latn]=Ovaj priključak obezbeđuje dodatne alternative za „otvori“ za različite kontekstne menije u tdevelop-u.
-Comment[sv]=Insticksprogrammet tillhandahåller ytterligare "öppna" alternativ i diverse sammanhangsberoende menyer i TDevelop.
-Comment[ta]=இந்த சொருகி Kஉருவாக்கியில் உள்ள வெவ்வேறு சூழுல் பட்டியலிற்கு பதில் "open" என்ற கூடுதல் வசதி தரும்.
-Comment[tg]=Ин модул як чанд хел кушодани файлҳоро имкон медиҳад, ҳангоми истифода намудани TDevelop.
-Comment[tr]=Bu eklenti, TDevelop'taki bir çok bağlam menüleri için fazladan "aç" alternatifleri sunar.
-Comment[zh_CN]=这个插件在 TDevelop 多个上下文菜单中提供“打开”菜单项。
-Comment[zh_TW]=此外掛程式提供 TDevelop 額外的「開啟方式」選單。
Name=KDevOpenWith
-Name[da]=TDevelop Åbn med
-Name[de]="Öffnen mit"-Menüerweiterung (TDevelop)
-Name[hi]=के-डेव-ओपन-विथ
-Name[nds]=TDevelop-"Opmaken mit"-Menüverwiedern
-Name[pl]=KDevOtwórzW
-Name[sk]=KDev otvoriť pomocou
-Name[sv]=TDevelop öppna med
-Name[ta]=KDev வைத்து திற
-Name[tg]=Кушодани аз рӯи KDev
-Name[zh_TW]=TDevelop 開啟方式
+
GenericName="Open with" Menu Addon
-GenericName[ca]=Afegit de menú "Obre amb"
-GenericName[da]="Åbn med" menu-tilføjelse
-GenericName[de]=Menüerweiterung "Öffnen mit"
-GenericName[el]=Πρόσθετο μενού "Άνοιγμα με"
-GenericName[es]=Extensión de menú «Abrir con»
-GenericName[et]=Menüü "Ava kasutades" lisamine
-GenericName[eu]="Ireki honekin" menu gehigarria
-GenericName[fa]=»باز کردن با« افزودن گزینگان
-GenericName[fr]=Extension de menu « Ouvrir avec... »
-GenericName[gl]=Engadido "Abrir con" para menús
-GenericName[hu]="Megnyitás ezzel" menübővítés
-GenericName[it]=Aggiunta al menu della voce "Apri con"
-GenericName[ja]=「アプリケーションで開く」メニューアドオン
-GenericName[nds]=Menüverwiedern "Opmaken mit"
-GenericName[ne]="यससँग खोल्नुहोस्" मेनु एडअन
-GenericName[nl]="Openen met" menutoevoeging
-GenericName[pl]=Dodatek do menu "Otwórz za pomocą"
-GenericName[pt]=Extra do Menu "Abrir com"
-GenericName[pt_BR]=Addon de Menu "Abrir com"
-GenericName[ru]=Дополнение меню "Открыть с помощью"
-GenericName[sk]="Otvoriť pomocou" prídavok k menu
-GenericName[sl]=Menijski dodatek »Odpri z«
-GenericName[sr]=Додатак за мени „Отвори помоћу“
-GenericName[sr@Latn]=Dodatak za meni „Otvori pomoću“
-GenericName[sv]=Menytillägg till "Öppna med"
-GenericName[ta]="Open with" பட்டியல் அடான்
-GenericName[tg]=Менюи иловагӣ "Кушодан бо фармони Ёрӣ"
-GenericName[tr]="Birlikte Aç" Menü Eki
-GenericName[zh_CN]=“打开方式”菜单项
-GenericName[zh_TW]="開啟方式"選單
+
+Comment=This plugin provides additional "open" alternatives for various context menus in TDevelop.
+
+Type=Service
+Exec=blubb
Icon=tdevelop
X-TDE-ServiceTypes=TDevelop/Plugin
X-TDE-Library=libkdevopenwith
diff --git a/parts/openwith/openwithpart.cpp b/parts/openwith/openwithpart.cpp
index 63fcc6d9..feca079c 100644
--- a/parts/openwith/openwithpart.cpp
+++ b/parts/openwith/openwithpart.cpp
@@ -26,8 +26,8 @@ OpenWithPart::OpenWithPart(TQObject *parent, const char *name, const TQStringLis
{
setInstance( OpenWithFactory::instance() );
- connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu*,const Context *)),
- this, TQT_SLOT(fillContextMenu(TQPopupMenu*,const Context *)));
+ connect(core(), TQ_SIGNAL(contextMenu(TQPopupMenu*,const Context *)),
+ this, TQ_SLOT(fillContextMenu(TQPopupMenu*,const Context *)));
}
@@ -45,7 +45,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
popup->insertSeparator();
- popup->insertItem( i18n("Open as UTF-8"), this, TQT_SLOT(openAsUtf8()) );
+ popup->insertItem( i18n("Open as UTF-8"), this, TQ_SLOT(openAsUtf8()) );
TDEPopupMenu * openAsPopup = new TDEPopupMenu( popup );
@@ -58,7 +58,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
TQStringList::const_iterator it = encodings.constBegin();
while ( it != encodings.constEnd() )
{
- openAsPopup->insertItem( *it, this, TQT_SLOT(openAsEncoding(int)), 0, i );
+ openAsPopup->insertItem( *it, this, TQ_SLOT(openAsEncoding(int)), 0, i );
++it;
i++;
}
@@ -74,7 +74,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
for (it = offers.begin(); it != offers.end(); ++it)
{
TDEAction *action = new TDEAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName( (*it)->desktopEntryPath() ).data());
- connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(openWithService()));
+ connect(action, TQ_SIGNAL(activated()), this, TQ_SLOT(openWithService()));
action->plug( openWithPopup );
}
}
@@ -85,14 +85,14 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
openWithPopup->insertSeparator();
// make sure the generic "Open with ..." entry gets appended to the submenu
- id = openWithPopup->insertItem(i18n("Open With..."), this, TQT_SLOT(openWithDialog()));
+ id = openWithPopup->insertItem(i18n("Open With..."), this, TQ_SLOT(openWithDialog()));
openWithPopup->setWhatsThis(id, i18n("<b>Open With...</b><p>Provides a dialog to choose the application to open the selected file."));
}
void OpenWithPart::openWithService()
{
- KService::Ptr ptr = KService::serviceByDesktopPath(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
+ KService::Ptr ptr = KService::serviceByDesktopPath(sender()->name());
if (ptr)
{
KRun::run(*ptr, m_urls);
diff --git a/parts/openwith/openwithpart.h b/parts/openwith/openwithpart.h
index bd338a3f..6cbbd6c0 100644
--- a/parts/openwith/openwithpart.h
+++ b/parts/openwith/openwithpart.h
@@ -11,7 +11,7 @@ class Context;
class OpenWithPart : public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public: