summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-16 18:30:12 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-19 10:59:29 +0200
commitbb8c686cb39a1490b8738037a70a9926d8260891 (patch)
tree3b1ede7af76cc89884ea1bba650dd0cc6442f9f6 /tdefile-plugins
parent02c8258b5adb8e5025937fd96f5b1a585a9096a6 (diff)
downloadtdesdk-bb8c686cb39a1490b8738037a70a9926d8260891.tar.gz
tdesdk-bb8c686cb39a1490b8738037a70a9926d8260891.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7fa2dd79a4f7711a65b45724448c1529dfb94e9f)
Diffstat (limited to 'tdefile-plugins')
-rw-r--r--tdefile-plugins/CMakeL10n.txt6
-rw-r--r--tdefile-plugins/c++/CMakeLists.txt7
-rw-r--r--tdefile-plugins/c++/tdefile_cpp.desktop55
-rw-r--r--tdefile-plugins/c++/tdefile_h.desktop54
-rw-r--r--tdefile-plugins/diff/CMakeLists.txt6
-rw-r--r--tdefile-plugins/diff/tdefile_diff.desktop53
-rw-r--r--tdefile-plugins/ts/CMakeLists.txt7
-rw-r--r--tdefile-plugins/ts/tdefile_ts.desktop49
8 files changed, 29 insertions, 208 deletions
diff --git a/tdefile-plugins/CMakeL10n.txt b/tdefile-plugins/CMakeL10n.txt
index b585ce4a..af16c09a 100644
--- a/tdefile-plugins/CMakeL10n.txt
+++ b/tdefile-plugins/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdefile-desktops/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/tdefile-plugins/c++/CMakeLists.txt b/tdefile-plugins/c++/CMakeLists.txt
index 60ce0c29..cc42c31c 100644
--- a/tdefile-plugins/c++/CMakeLists.txt
+++ b/tdefile-plugins/c++/CMakeLists.txt
@@ -22,8 +22,11 @@ link_directories(
##### other data ################################
-install( FILES tdefile_cpp.desktop tdefile_h.desktop
- DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE tdefile_cpp.desktop tdefile_h.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdefile-desktops
+)
##### tdefile_cpp (module) ########################
diff --git a/tdefile-plugins/c++/tdefile_cpp.desktop b/tdefile-plugins/c++/tdefile_cpp.desktop
index 787c6a6e..60f6b784 100644
--- a/tdefile-plugins/c++/tdefile_cpp.desktop
+++ b/tdefile-plugins/c++/tdefile_cpp.desktop
@@ -1,58 +1,7 @@
[Desktop Entry]
-Type=Service
Name=C++ Info
-Name[af]=C++ Inligting
-Name[bg]=Изходен код на C++
-Name[br]=Titouroù C++
-Name[ca]=Informació C++
-Name[cs]=C++ info
-Name[cy]=Gwybodaeth C++
-Name[da]=C++-info
-Name[de]=C++-Info
-Name[el]=Πληροφορίες C++
-Name[eo]=C++-informo
-Name[es]=Info de C++
-Name[et]=C++ info
-Name[eu]=C++ informazioa
-Name[fa]=اطلاعات C++
-Name[fi]=C++-tiedot
-Name[fo]=C++-upplýsingar
-Name[fr]=Informations C++
-Name[ga]=Eolas C++
-Name[gl]=Información de C++
-Name[he]=מידע ++C
-Name[hi]=C++ जानकारी
-Name[hr]=C++ informacije
-Name[hu]=C++-jellemzők
-Name[is]=C++ upplýsingar
-Name[it]=Informazioni C++
-Name[ja]=C++ 情報
-Name[ka]=C++ ინფორმაცია
-Name[kk]=C++ мәліметі
-Name[lt]=C++ Informacija
-Name[ms]=Info C++
-Name[nds]=C++-Datei-Info
-Name[nl]=C++-info
-Name[nn]=C++-info
-Name[pa]=C++ ਜਾਣਕਾਰੀ
-Name[pl]=Informacja z C++
-Name[pt]=Informação de C++
-Name[pt_BR]=Informações C++
-Name[ro]=Informaţii C++
-Name[ru]=Информация C++
-Name[sk]=Informácie o C++
-Name[sl]=Informacije o C++
-Name[sr]=C++ информације
-Name[sr@Latn]=C++ informacije
-Name[sv]=C++-information
-Name[ta]= =C/C++ தகவல்
-Name[tg]=Ахбороти C++
-Name[th]=ข้อมูล C++
-Name[tr]=C++ Bilgisi
-Name[uk]=Інформація про C++
-Name[xh]=C++ Ulwazi
-Name[zh_CN]=C++ 信息
-Name[zh_TW]=C++ 資訊
+
+Type=Service
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_cpp
MimeType=text/x-c++src;text/x-chdr
diff --git a/tdefile-plugins/c++/tdefile_h.desktop b/tdefile-plugins/c++/tdefile_h.desktop
index d77ea6e2..6cee33fb 100644
--- a/tdefile-plugins/c++/tdefile_h.desktop
+++ b/tdefile-plugins/c++/tdefile_h.desktop
@@ -1,57 +1,7 @@
[Desktop Entry]
-Type=Service
Name=C/C++ Header Info
-Name[af]=C/C++ Opskrif Inligting
-Name[bg]=Информация за заглавната част на C/C++
-Name[br]=Titouriñ diwar-benn ar reollin C/C++
-Name[ca]=Informació de capçaleres C/C++
-Name[cs]=Informace o C/C++ hlavičce
-Name[cy]=Gwybodaeth Pennawd C/C++
-Name[da]=C/C++-headerinfo
-Name[de]=C++-Header-Info
-Name[el]=Πληροφορίες κεφαλίδων C/C++
-Name[es]=Info de cabecera C/C++
-Name[et]=C/C++ päise info
-Name[eu]=C/C++ goiburuen informazioa
-Name[fa]=اطلاعات سرآیند C/C++
-Name[fi]=C/C++-otsikkotiedot
-Name[fr]=Informations d'en-tête C/C++
-Name[gl]=Información da cabeceira de C/C++
-Name[he]=מידע כותרות ++C/C
-Name[hi]=C/C++ हेडर जानकारी
-Name[hr]=Informacije o C++ zaglavljima
-Name[hu]=C/C++ header fájl jellemzői
-Name[is]=C/C++ haus upplýsingar
-Name[it]=Informazioni intestazioni C/C++
-Name[ja]=C/C++ ヘッダ情報
-Name[ka]=C/C++ ზედა კოლონტიტულის ინფორმაცია
-Name[kk]=C/C++ айдар мәліметі
-Name[lt]=C/C++ antraščių informacija
-Name[ms]=Info Pengepala C/C++
-Name[nb]=C++-deklarasjonsfilinfo
-Name[nds]=C/C++-Koppdatei-Info
-Name[ne]=C/C++ Header info
-Name[nl]=C/C++ Header-info
-Name[nn]=C/C++-deklarasjonsinfo
-Name[pa]=C/C++ Header ਜਾਣਕਾਰੀ
-Name[pl]=Informacja z nagłówka C/C++
-Name[pt]=Informações do Cabeçalho de C/C++
-Name[pt_BR]=Informações sobre Cabeçalhos C/C++
-Name[ro]=Informaţii antet C/C++
-Name[ru]=Информация о файлах заголовков C/C++
-Name[sk]=Informácie o hlavičkách C/C++
-Name[sl]=Informacije o glavi C/C++
-Name[sr]=Информације о C/C++ заглављу
-Name[sr@Latn]=Informacije o C/C++ zaglavlju
-Name[sv]=Information om C/C++-deklarationsfiler
-Name[ta]= =C/C++ தலைப்பு தகவல்
-Name[tg]=Ахборот дар бораи сарлавҳаи файлҳои C/C++
-Name[th]=ข้อมูลแฟ้มส่วนหัว C/C++
-Name[tr]=C/C++ Başlık Bilgisi
-Name[uk]=Інформація по заголовкам C++
-Name[xh]=C/C++ Ulwazi lokubhaliweyo okuphezulu
-Name[zh_CN]=C/C++ 头文件信息
-Name[zh_TW]=C/C++ 檔頭資訊
+
+Type=Service
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_cpp
MimeType=text/x-chdr
diff --git a/tdefile-plugins/diff/CMakeLists.txt b/tdefile-plugins/diff/CMakeLists.txt
index 08493d8f..25aeffa8 100644
--- a/tdefile-plugins/diff/CMakeLists.txt
+++ b/tdefile-plugins/diff/CMakeLists.txt
@@ -22,7 +22,11 @@ link_directories(
##### other data ################################
-install( FILES tdefile_diff.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE tdefile_diff.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdefile-desktops
+)
##### tdefile_diff (module) #######################
diff --git a/tdefile-plugins/diff/tdefile_diff.desktop b/tdefile-plugins/diff/tdefile_diff.desktop
index f533b09f..27951ec0 100644
--- a/tdefile-plugins/diff/tdefile_diff.desktop
+++ b/tdefile-plugins/diff/tdefile_diff.desktop
@@ -1,56 +1,7 @@
[Desktop Entry]
-Type=Service
Name=Diff Stats
-Name[af]=Diff Statistiek
-Name[bg]=Статистика за разлики
-Name[br]=Stadegoù Diff
-Name[bs]=Diff statistika
-Name[ca]=Estadístiques de diff
-Name[cs]=Statistika rozdílů
-Name[cy]=Ystadegau Gwahaniaethau
-Name[da]=Diff-stats
-Name[de]=Diff-Statistiken
-Name[el]=Στατιστικά diff
-Name[es]=Estadísticas Diff
-Name[et]=Võrdlemise tulemused
-Name[eu]=Desberdintasun estatistikak
-Name[fa]=آمارهای Diff
-Name[fi]=Diff-tilastot
-Name[fr]=Statistiques de diff
-Name[ga]=Staitistic Diff
-Name[gl]=Estatísticas de diff
-Name[he]=סטטיסטיקת Diff
-Name[hi]=डिफ स्टेट्स
-Name[hr]=Diff statistike
-Name[hu]=Diff statisztika
-Name[it]=Statistiche di confronto
-Name[ja]=Diff 統計
-Name[kk]=Diff статистикасы
-Name[lt]=Skirtumų statistika
-Name[ms]=Stat Diff
-Name[nb]=Diff-statistikk
-Name[nds]=Verscheelstatistiken
-Name[ne]=भिन्न तथ्याङ्क
-Name[nl]=Diff-statistieken
-Name[nn]=Diff-statistikk
-Name[pa]=ਅੰਤਰ ਹਾਲਤ
-Name[pl]=Statystyka różnic
-Name[pt]=Estatísticas do diff
-Name[pt_BR]=Estados do Diff
-Name[ro]=Statistici Diff
-Name[ru]=Статистика различий
-Name[sk]=Štatistiky Diff
-Name[sl]=Statistike diff
-Name[sr]=Статистика разликовања
-Name[sr@Latn]=Statistika razlikovanja
-Name[sv]=Diff-statistik
-Name[ta]=டிப் ஸ்டட்ஸ்
-Name[tg]=Статистикаи фарқият
-Name[th]=สถานะแตกต่าง
-Name[tr]=Diff İstatistikleri
-Name[uk]=Статистика відмінностей
-Name[zh_CN]=Diff 统计
-Name[zh_TW]=Diff 狀態
+
+Type=Service
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_diff
MimeType=text/x-diff
diff --git a/tdefile-plugins/ts/CMakeLists.txt b/tdefile-plugins/ts/CMakeLists.txt
index ff95bff9..4308bb46 100644
--- a/tdefile-plugins/ts/CMakeLists.txt
+++ b/tdefile-plugins/ts/CMakeLists.txt
@@ -22,8 +22,11 @@ link_directories(
##### other data ################################
-install( FILES tdefile_ts.desktop
- DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE tdefile_ts.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdefile-desktops
+)
##### tdefile_ts (module) #########################
diff --git a/tdefile-plugins/ts/tdefile_ts.desktop b/tdefile-plugins/ts/tdefile_ts.desktop
index 84b4f641..c5ef3c7d 100644
--- a/tdefile-plugins/ts/tdefile_ts.desktop
+++ b/tdefile-plugins/ts/tdefile_ts.desktop
@@ -1,52 +1,7 @@
[Desktop Entry]
-Type=Service
Name=Qt Linguist File Info
-Name[bg]=Информация за файла Qt Linguist
-Name[br]=Restr titouroù Qt Linguist
-Name[bs]=Qt Linguist informacije o datoteci
-Name[ca]=Informació fitxer de Qt Linguist
-Name[cs]=Info o souboru Qt Linguist
-Name[cy]=Gwybodaeth Ffeil Qt Linguist
-Name[da]=Qt Linguist Fil-info
-Name[de]=Qt Linguist-Dateiinfo
-Name[el]=Πληροφορίες αρχείου Qt Linguist
-Name[es]=Información de archivo de Qt Linguist
-Name[et]=Qt Linguisti faili info
-Name[eu]=Qt Linguist fitxategi informazioa
-Name[fa]=اطلاعات پروندۀ زبان‌شناسQt
-Name[fi]=Qt Linquist -tiedoston tiedot
-Name[fr]=Fichier d'informations Qt Linguist
-Name[ga]=Eolas faoi Chomhad Qt Linguist
-Name[gl]=Información do Ficheiro de Qt Linguist
-Name[hi]=क्यूटी लिंग्विस्ट फ़ाइल जानकारी
-Name[hu]=Qt Linguist fájljellemzők
-Name[is]=Qt Linguist skráarupplýsingar
-Name[it]=Informazioni file per Qt Linguist
-Name[ja]=Qt Linguist ファイル情報
-Name[ka]=Qt Linguist ფაილის ინფორმაცია
-Name[kk]=Qt Linguist файл мәліметі
-Name[lt]=Qt Linguist bylos informacija
-Name[nb]=Informasjon om Qt Linguist-fil
-Name[nds]=QtLinguist-Datei-Info
-Name[ne]=Qt बहुभाषी फाइल सूचना
-Name[nl]=Qt Linquïst-bestandsinformatie
-Name[nn]=Informasjon om Qt Linguist-fil
-Name[pa]=Qt Linguist ਫਾਇਲ ਜਾਣਕਾਰੀ
-Name[pl]=Informacja pliku Qt Linguist
-Name[pt]=Informação do Ficheiro do Qt Linguist
-Name[pt_BR]=Arquivo de Informações de Lingüística do Qt
-Name[ru]=Информация о файле в формате Qt Linguist
-Name[sk]=Informácie pre Qt Linguist
-Name[sl]=Informacije o Qt Linguist
-Name[sr]=Информације о фајлу Qt Linguist-а
-Name[sr@Latn]=Informacije o fajlu Qt Linguist-a
-Name[sv]=Qt Linguist-filinformation
-Name[ta]=Qt மொழியியல் கோப்புகள் தகவல்
-Name[tg]=Ахборот дар бораи файл дар формати Qt Linguist
-Name[tr]=Qt Dilbilimci Dosya Bilgisi
-Name[uk]=інформація про файл формату Qt Linguist
-Name[zh_CN]=Qt 语言大师文件信息
-Name[zh_TW]=Qt 語言檔資訊
+
+Type=Service
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_ts
MimeType=application/x-linguist