summaryrefslogtreecommitdiffstats
path: root/tdeabc/plugins/file
diff options
context:
space:
mode:
Diffstat (limited to 'tdeabc/plugins/file')
-rw-r--r--tdeabc/plugins/file/CMakeLists.txt6
-rw-r--r--tdeabc/plugins/file/file.desktop75
-rw-r--r--tdeabc/plugins/file/resourcefile.cpp12
-rw-r--r--tdeabc/plugins/file/resourcefile.h2
-rw-r--r--tdeabc/plugins/file/resourcefileconfig.cpp6
-rw-r--r--tdeabc/plugins/file/resourcefileconfig.h2
-rw-r--r--tdeabc/plugins/file/resourcefileplugin.cpp2
7 files changed, 17 insertions, 88 deletions
diff --git a/tdeabc/plugins/file/CMakeLists.txt b/tdeabc/plugins/file/CMakeLists.txt
index c7dbfef46..bd0f4d713 100644
--- a/tdeabc/plugins/file/CMakeLists.txt
+++ b/tdeabc/plugins/file/CMakeLists.txt
@@ -39,7 +39,11 @@ install( FILES
##### other data ################################
-install( FILES file.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/tdeabc )
+tde_create_translated_desktop(
+ SOURCE file.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/tdeabc
+ PO_DIR tdeabc-desktops
+)
##### tdeabc_file (library) #######################
diff --git a/tdeabc/plugins/file/file.desktop b/tdeabc/plugins/file/file.desktop
index 3625cc21c..3b4f46cdd 100644
--- a/tdeabc/plugins/file/file.desktop
+++ b/tdeabc/plugins/file/file.desktop
@@ -1,80 +1,5 @@
[Desktop Entry]
Name=File
-Name[af]=Lêer
-Name[ar]=ملفّ
-Name[az]=Fayl
-Name[be]=Файл
-Name[bn]=ফাইল
-Name[br]=Restr
-Name[bs]=Datoteka
-Name[ca]=Fitxer
-Name[cs]=Soubor
-Name[csb]=Lopk
-Name[cy]=Ffeil
-Name[da]=Fil
-Name[de]=Datei
-Name[el]=Αρχείο
-Name[eo]=Dosiero
-Name[es]=Archivo
-Name[et]=Fail
-Name[eu]=Fitxategia
-Name[fa]=پرونده
-Name[fi]=Tiedosto
-Name[fr]=Fichier
-Name[fy]=Triem
-Name[ga]=Comhad
-Name[gl]=Ficheiro
-Name[he]=קובץ
-Name[hi]=फ़ाइल
-Name[hr]=Datoteka
-Name[hsb]=Dataja
-Name[hu]=Fájl
-Name[id]=Berkas
-Name[is]=Skrá
-Name[ja]=ファイル
-Name[ka]=ფაილი
-Name[kk]=Файл
-Name[km]=ឯកសារ
-Name[ko]=파일
-Name[lb]=Datei
-Name[lt]=Byla
-Name[lv]=Fails
-Name[mk]=Датотека
-Name[mn]=Файл
-Name[ms]=Fail
-Name[nb]=Fil
-Name[nds]=Datei
-Name[ne]=फाइल
-Name[nl]=Bestand
-Name[nn]=Fil
-Name[pa]=ਫਾਇਲ
-Name[pl]=Plik
-Name[pt]=Ficheiro
-Name[pt_BR]=Arquivo
-Name[ro]=Fişier
-Name[ru]=Файл
-Name[rw]=Idosiye
-Name[se]=Fiila
-Name[sk]=Súbor
-Name[sl]=Datoteka
-Name[sq]=Skedë
-Name[sr]=Фајл
-Name[sr@Latn]=Fajl
-Name[sv]=Fil
-Name[ta]=கோப்பு
-Name[te]=దస్త్రం
-Name[tg]=Файл
-Name[th]=แฟ้ม
-Name[tr]=Dosya
-Name[tt]=Birem
-Name[uk]=Файл
-Name[uz]=Fayl
-Name[uz@cyrillic]=Файл
-Name[vi]=Tập tin
-Name[wa]=Fitchî
-Name[zh_CN]=文件
-Name[zh_HK]=檔案
-Name[zh_TW]=檔案
X-TDE-Library=tdeabc_file
Type=Service
X-TDE-ServiceTypes=TDEResources/Plugin
diff --git a/tdeabc/plugins/file/resourcefile.cpp b/tdeabc/plugins/file/resourcefile.cpp
index 3fa2a9406..f48790948 100644
--- a/tdeabc/plugins/file/resourcefile.cpp
+++ b/tdeabc/plugins/file/resourcefile.cpp
@@ -35,7 +35,7 @@
#include <tdeio/scheduler.h>
#include <tdelocale.h>
#include <ksavefile.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include "formatfactory.h"
#include "resourcefileconfig.h"
@@ -83,9 +83,9 @@ void ResourceFile::init( const TQString &fileName, const TQString &formatName )
mFormat = factory->format( mFormatName );
}
- connect( &mDirWatch, TQT_SIGNAL( dirty(const TQString&) ), TQT_SLOT( fileChanged() ) );
- connect( &mDirWatch, TQT_SIGNAL( created(const TQString&) ), TQT_SLOT( fileChanged() ) );
- connect( &mDirWatch, TQT_SIGNAL( deleted(const TQString&) ), TQT_SLOT( fileChanged() ) );
+ connect( &mDirWatch, TQ_SIGNAL( dirty(const TQString&) ), TQ_SLOT( fileChanged() ) );
+ connect( &mDirWatch, TQ_SIGNAL( created(const TQString&) ), TQ_SLOT( fileChanged() ) );
+ connect( &mDirWatch, TQ_SIGNAL( deleted(const TQString&) ), TQ_SLOT( fileChanged() ) );
setFileName( fileName );
@@ -333,9 +333,9 @@ bool ResourceFile::asyncSave( Ticket *ticket )
bool ok = save( ticket );
if ( !ok )
- TQTimer::singleShot( 0, this, TQT_SLOT( emitSavingError() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( emitSavingError() ) );
else
- TQTimer::singleShot( 0, this, TQT_SLOT( emitSavingFinished() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( emitSavingFinished() ) );
return ok;
}
diff --git a/tdeabc/plugins/file/resourcefile.h b/tdeabc/plugins/file/resourcefile.h
index ffa19a4bf..2f38254a2 100644
--- a/tdeabc/plugins/file/resourcefile.h
+++ b/tdeabc/plugins/file/resourcefile.h
@@ -39,7 +39,7 @@ class Lock;
*/
class KABC_EXPORT ResourceFile : public Resource
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdeabc/plugins/file/resourcefileconfig.cpp b/tdeabc/plugins/file/resourcefileconfig.cpp
index 2c8e0fce6..6f9a67965 100644
--- a/tdeabc/plugins/file/resourcefileconfig.cpp
+++ b/tdeabc/plugins/file/resourcefileconfig.cpp
@@ -23,7 +23,7 @@
#include <kdebug.h>
#include <tdelocale.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kdialog.h>
#include <unistd.h>
@@ -51,8 +51,8 @@ ResourceFileConfig::ResourceFileConfig( TQWidget* parent, const char* name )
label = new TQLabel( i18n( "Location:" ), this );
mFileNameEdit = new KURLRequester( this );
- connect( mFileNameEdit, TQT_SIGNAL( textChanged( const TQString & ) ),
- TQT_SLOT( checkFilePermissions( const TQString & ) ) );
+ connect( mFileNameEdit, TQ_SIGNAL( textChanged( const TQString & ) ),
+ TQ_SLOT( checkFilePermissions( const TQString & ) ) );
mainLayout->addWidget( label, 1, 0 );
mainLayout->addWidget( mFileNameEdit, 1, 1 );
diff --git a/tdeabc/plugins/file/resourcefileconfig.h b/tdeabc/plugins/file/resourcefileconfig.h
index 3be4cca49..0f3c12cd5 100644
--- a/tdeabc/plugins/file/resourcefileconfig.h
+++ b/tdeabc/plugins/file/resourcefileconfig.h
@@ -30,7 +30,7 @@ namespace TDEABC {
class KABC_EXPORT ResourceFileConfig : public KRES::ConfigWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
ResourceFileConfig( TQWidget* parent = 0, const char* name = 0 );
diff --git a/tdeabc/plugins/file/resourcefileplugin.cpp b/tdeabc/plugins/file/resourcefileplugin.cpp
index 6f7598a40..1838bf6b9 100644
--- a/tdeabc/plugins/file/resourcefileplugin.cpp
+++ b/tdeabc/plugins/file/resourcefileplugin.cpp
@@ -25,7 +25,7 @@ using namespace TDEABC;
extern "C"
{
- KDE_EXPORT void *init_tdeabc_file()
+ TDE_EXPORT void *init_tdeabc_file()
{
return new KRES::PluginFactory<ResourceFile, ResourceFileConfig>();
}