Commit 1a647840 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port thumbnailer to new install location and embed metadata

parent 45f6a2cb
Pipeline #244597 passed with stage
in 1 minute and 11 seconds
add_definitions(-DTRANSLATION_DOMAIN="pothumbnail")
add_library(pothumbnail MODULE)
kcoreaddons_add_plugin(pothumbnail INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/thumbcreator")
target_sources(pothumbnail PRIVATE
pocreator.cpp
......@@ -18,6 +18,4 @@ target_link_libraries(pothumbnail
GettextPO::GettextPO
)
install(TARGETS pothumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES pocreatorsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES pothumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
......@@ -23,6 +23,13 @@ extern "C" {
}
}
class KIOPluginForMetaData : public QObject
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "KIOPluginForMetaData" FILE "pothumbnail.json")
};
static bool readerror = false;
static void xerror( int severity,
......@@ -182,3 +189,5 @@ void PoCreator::writeConfiguration( const QWidget* configurationWidget )
PoCreatorSettings::self()->setObsoletedColor( cw->obsoletedButton->color() );
PoCreatorSettings::self()->save();
}
#include "pocreator.moc"
[Desktop Entry]
Type=Service
Name=Gettext Translation
Name[ar]=ترجمة جتكست
Name[ast]=Ficheros de gettext
Name[bg]=Gettext Translation
Name[bs]=GetText prijevod
Name[ca]=Traducció de Gettext
Name[ca@valencia]=Traducció de Gettext
Name[cs]=Překlad Gettext
Name[da]=Gettext-oversættelse
Name[de]=Gettext-Übersetzung
Name[el]=Μετάφραση με gettext
Name[en_GB]=Gettext Translation
Name[es]=Traducción de Gettext
Name[et]=Gettexti tõlkefail
Name[eu]=Gettext-en itzulpena
Name[fi]=Gettext-käännös
Name[fr]=Traduction de Gettext
Name[ga]=Aistriúchán Gettext
Name[gl]=Tradución Gettext
Name[hi]=गेट-टेक्स्ट अनुवाद
Name[hu]=Gettext fordítás
Name[it]=Traduzioni di Gettext
Name[ka]=Gettext-ით თარგმანი
Name[kk]=Gettext аудармасы
Name[ko]=Gettext 번역
Name[lt]=Gettext vertimas
Name[mr]=गेटटेक्स्ट भाषांतर
Name[nb]=Gettext-oversetting
Name[nds]=Gettext-Översetten
Name[nl]=Gettext-vertaling
Name[nn]=Gettext-omsetjing
Name[pa]=Gettext ਅਨੁਵਾਦ
Name[pl]=Tłumaczenie Gettext
Name[pt]=Tradução do Gettext
Name[pt_BR]=Tradução gettext
Name[ro]=Traducere Gettext
Name[ru]=Переводы Gettext
Name[sk]=Preklad Gettext
Name[sl]=Prevod Gettext
Name[sq]=Përkthim Gettext
Name[sr]=Геттекст превод
Name[sr@ijekavian]=Геттекст превод
Name[sr@ijekavianlatin]=Gettext prevod
Name[sr@latin]=Gettext prevod
Name[sv]=Översättning med Gettext
Name[tg]=Тарҷумаҳои «Gettext»
Name[tr]=Gettext Çevirisi
Name[uk]=Переклад Gettext
Name[vi]=Bản dịch Gettext
Name[x-test]=xxGettext Translationxx
Name[zh_CN]=Gettext 翻译
Name[zh_TW]=Gettext 翻譯
X-KDE-ServiceTypes=ThumbCreator
MimeType=text/x-gettext-translation;text/x-gettext-translation-template;
CacheThumbnail=false
IgnoreMaximumSize=true
X-KDE-Library=pothumbnail
Configurable=true
{
"CacheThumbnail": false,
"Configurable": true,
"IgnoreMaximumSize": true,
"KPlugin": {
"MimeTypes": [
"text/x-gettext-translation",
"text/x-gettext-translation-template"
],
"Name": "Gettext Translation"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment