summaryrefslogtreecommitdiffstats
path: root/parts/tipofday
diff options
context:
space:
mode:
Diffstat (limited to 'parts/tipofday')
-rw-r--r--parts/tipofday/CMakeLists.txt8
-rw-r--r--parts/tipofday/Makefile.am6
-rw-r--r--parts/tipofday/kdevtipofday.desktop91
-rw-r--r--parts/tipofday/tipofday_part.cpp14
-rw-r--r--parts/tipofday/tipofday_part.h2
5 files changed, 24 insertions, 97 deletions
diff --git a/parts/tipofday/CMakeLists.txt b/parts/tipofday/CMakeLists.txt
index 753f65e1..87389f57 100644
--- a/parts/tipofday/CMakeLists.txt
+++ b/parts/tipofday/CMakeLists.txt
@@ -27,7 +27,13 @@ link_directories(
##### other data ################################
tde_install_icons( )
-install( FILES kdevtipofday.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+tde_create_translated_desktop(
+ SOURCE kdevtipofday.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdevelop-desktops
+)
+
install( FILES tips DESTINATION ${DATA_INSTALL_DIR}/kdevtipofday )
install( FILES kdevpart_tipofday.rc DESTINATION ${DATA_INSTALL_DIR}/kdevtipofday )
diff --git a/parts/tipofday/Makefile.am b/parts/tipofday/Makefile.am
index 4ec54292..9b39f67a 100644
--- a/parts/tipofday/Makefile.am
+++ b/parts/tipofday/Makefile.am
@@ -19,6 +19,6 @@ rc_DATA = kdevpart_tipofday.rc
rcdir = $(kde_datadir)/kdevtipofday
messages: rc.cpp
- $(PREPARETIPS) > tips.cc
- $(XGETTEXT) *.cpp *.h tips.cc -o $(podir)/kdevtipofday.pot
- rm -f tips.cc
+ $(PREPARETIPS) > tips.cpp
+ $(XGETTEXT) *.cpp *.h tips.cpp -o $(podir)/kdevtipofday.pot
+ rm -f tips.cpp
diff --git a/parts/tipofday/kdevtipofday.desktop b/parts/tipofday/kdevtipofday.desktop
index 45a4dd3f..6a9e658c 100644
--- a/parts/tipofday/kdevtipofday.desktop
+++ b/parts/tipofday/kdevtipofday.desktop
@@ -1,91 +1,12 @@
[Desktop Entry]
-Type=Service
-Exec=blubb
-Comment=Tip of the Day
-Comment[br]=Lagadenn an deiz
-Comment[ca]=Consell del dia
-Comment[cy]=Awgrymiad y Dydd
-Comment[da]=Dagens vink
-Comment[de]=Tipp des Tages
-Comment[el]=Συμβουλή της ημέρας
-Comment[es]=Consejo del día
-Comment[et]=Päeva nõuanne
-Comment[eu]=Eguneko aholkua
-Comment[fa]=نکتۀ روز
-Comment[fr]=Astuce du jour
-Comment[ga]=Leid an Lae
-Comment[gl]=Consello do día
-Comment[hi]=टिप ऑफ द डे
-Comment[hu]=A nap tippje
-Comment[it]=Suggerimento del giorno
-Comment[ja]=今日の一言
-Comment[ms]=Tip Hari Ini
-Comment[nds]=Tipp för Vundaag
-Comment[ne]=आजको टिप
-Comment[nl]=Tip van de dag
-Comment[pa]=ਅੱਜ ਦਾ ਇਸ਼ਾਰਾ
-Comment[pl]=Podpowiedź dnia
-Comment[pt]=Dica do Dia
-Comment[pt_BR]=Dica do Dia
-Comment[ru]=Полезный совет
-Comment[sk]=Tip dňa
-Comment[sl]=Namig dneva
-Comment[sr]=Савет дана
-Comment[sr@Latn]=Savet dana
-Comment[sv]=Dagens tips
-Comment[ta]=இந்த நாளுக்கான யோசனை
-Comment[tg]=Маслиҳати фоиданок
-Comment[tr]=Günün İpucu
-Comment[zh_CN]=日积月累
-Comment[zh_TW]=本日小提示
Name=KDevTipOfDay
-Name[da]=TDevelop Dagens vink
-Name[de]="Tipp des Tages"-Modul (TDevelop)
-Name[hi]=के-डेव-टिप-ऑफ-डे
-Name[nds]=TDevelop-"Tipp för Vundaag"
-Name[pl]=KDevPodpowiedźDnia
-Name[sk]=KDev tip dňa
-Name[sv]=TDevelop dagens tips
-Name[ta]=KDevஇந்த நாளுக்கான யோசனை
-Name[tg]=KDevЛуқмаи рӯз
-Name[zh_TW]=TDevelop 本日小提示
+
GenericName=Tip of the Day
-GenericName[br]=Lagadenn an deiz
-GenericName[ca]=Consell del dia
-GenericName[cy]=Awgrymiad y Dydd
-GenericName[da]=Dagens vink
-GenericName[de]=Tipp des Tages
-GenericName[el]=Συμβουλή της ημέρας
-GenericName[es]=Consejo del día
-GenericName[et]=Päeva nõuanne
-GenericName[eu]=Eguneko aholkua
-GenericName[fa]=نکتۀ روز
-GenericName[fr]=Astuce du jour
-GenericName[ga]=Leid an Lae
-GenericName[gl]=Consello do día
-GenericName[hi]=टिप ऑफ द डे
-GenericName[hu]=A nap tippje
-GenericName[it]=Suggerimento del giorno
-GenericName[ja]=今日の一言
-GenericName[ms]=Tip Hari Ini
-GenericName[nds]=Tipp för Vundaag
-GenericName[ne]=आजको टिप
-GenericName[nl]=Tip van de dag
-GenericName[pa]=ਅੱਜ ਦਾ ਇਸ਼ਾਰਾ
-GenericName[pl]=Podpowiedź dnia
-GenericName[pt]=Dica do Dia
-GenericName[pt_BR]=Dica do Dia
-GenericName[ru]=Полезный совет
-GenericName[sk]=Tip dňa
-GenericName[sl]=Namig dneva
-GenericName[sr]=Савет дана
-GenericName[sr@Latn]=Savet dana
-GenericName[sv]=Dagens tips
-GenericName[ta]=இந்த நாளுக்கான யோசனை
-GenericName[tg]=Маслиҳати фоиданок
-GenericName[tr]=Günün İpucu
-GenericName[zh_CN]=日积月累
-GenericName[zh_TW]=本日小提示
+
+Comment=Tip of the Day
+
+Type=Service
+Exec=blubb
Icon=tdevelop
X-TDE-ServiceTypes=TDevelop/Plugin
X-TDE-Library=libkdevtipofday
diff --git a/parts/tipofday/tipofday_part.cpp b/parts/tipofday/tipofday_part.cpp
index 6cd63deb..3668783d 100644
--- a/parts/tipofday/tipofday_part.cpp
+++ b/parts/tipofday/tipofday_part.cpp
@@ -12,20 +12,20 @@
#include <kdevplugininfo.h>
#include <kiconloader.h>
#include <tdelocale.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <ktextbrowser.h>
#include <ktip.h>
#include "kdevapi.h"
#include "kdevcore.h"
-static const KDevPluginInfo data("kdevtipofday");
+static const KDevPluginInfo pluginData("kdevtipofday");
typedef KDevGenericFactory<TipOfDayPart> TipOfDayFactory;
-K_EXPORT_COMPONENT_FACTORY( libkdevtipofday, TipOfDayFactory( data ) )
+K_EXPORT_COMPONENT_FACTORY( libkdevtipofday, TipOfDayFactory( pluginData ) )
TipOfDayPart::TipOfDayPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevPlugin(&data, parent, name ? name : "TipOfDayPart")
+ : KDevPlugin(&pluginData, parent, name ? name : "TipOfDayPart")
{
setInstance(TipOfDayFactory::instance());
@@ -34,19 +34,19 @@ TipOfDayPart::TipOfDayPart(TQObject *parent, const char *name, const TQStringLis
TDEAction *action;
action = new TDEAction(i18n("&Tip of the Day"), "idea", 0,
- this, TQT_SLOT(showTip()), actionCollection(), "help_tipofday");
+ this, TQ_SLOT(showTip()), actionCollection(), "help_tipofday");
action->setToolTip(i18n("A tip how to use TDevelop"));
action->setWhatsThis(i18n("<b>Tip of the day</b><p>"
"Will display another good tip \n"
"contributed by KDevelop users."));
- connect(core(), TQT_SIGNAL(coreInitialized()), this, TQT_SLOT(showOnStart()));
+ connect(core(), TQ_SIGNAL(coreInitialized()), this, TQ_SLOT(showOnStart()));
}
TQString TipOfDayPart::getFilename()
{
- TDEConfig * config = TDEApplication::kApplication()->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup("Tip of day plugin");
return config->readEntry("TipsFile", "kdevtipofday/tips");
}
diff --git a/parts/tipofday/tipofday_part.h b/parts/tipofday/tipofday_part.h
index 4b982800..a347946f 100644
--- a/parts/tipofday/tipofday_part.h
+++ b/parts/tipofday/tipofday_part.h
@@ -12,7 +12,7 @@
class TipOfDayPart : public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public: