diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-30 00:57:03 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-30 00:57:05 +0200 |
commit | ff3f2006ce72b2edabc534188a4ad006e89b4f84 (patch) | |
tree | c81f41ffa6e329ddadd048e07b553af2154f5e16 /tdemid | |
parent | 9817ad52c6376ae54f5e4e4d11a31d958cc85faa (diff) | |
download | tdemultimedia-ff3f2006ce72b2edabc534188a4ad006e89b4f84.tar.gz tdemultimedia-ff3f2006ce72b2edabc534188a4ad006e89b4f84.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>
Diffstat (limited to 'tdemid')
-rw-r--r-- | tdemid/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | tdemid/CMakeLists.txt | 13 | ||||
-rw-r--r-- | tdemid/tdemid.desktop | 63 | ||||
-rw-r--r-- | tdemid/x-karaoke.desktop | 55 |
4 files changed, 17 insertions, 120 deletions
diff --git a/tdemid/CMakeL10n.txt b/tdemid/CMakeL10n.txt index c511041f..f68e20fe 100644 --- a/tdemid/CMakeL10n.txt +++ b/tdemid/CMakeL10n.txt @@ -29,3 +29,9 @@ tde_l10n_create_template( CATALOG "tdemid" SOURCES "." "instrname.cpp.tde_l10n" ) + +tde_l10n_create_template( + CATALOG "desktop_files/tdemid-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/tdemid/CMakeLists.txt b/tdemid/CMakeLists.txt index dfab0c5b..fd9f5989 100644 --- a/tdemid/CMakeLists.txt +++ b/tdemid/CMakeLists.txt @@ -84,8 +84,17 @@ add_custom_target( instrname.i18n ##### other data ################################ -install( FILES tdemid.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) -install( FILES x-karaoke.desktop DESTINATION ${MIME_INSTALL_DIR}/audio ) +tde_create_translated_desktop( + SOURCE tdemid.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdemid-desktops +) + +tde_create_translated_desktop( + SOURCE x-karaoke.desktop + DESTINATION ${MIME_INSTALL_DIR}/audio + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdemid-desktops +) + install( FILES tdemidui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid ) install( FILES tdemid_partui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid ) install( FILES audiomidi.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) diff --git a/tdemid/tdemid.desktop b/tdemid/tdemid.desktop index 6d45094b..879a7946 100644 --- a/tdemid/tdemid.desktop +++ b/tdemid/tdemid.desktop @@ -3,69 +3,6 @@ Name=TDEMid GenericName=MIDI/Karaoke Player -GenericName[af]=MIDI/Kareokie Speler -GenericName[ar]=مشغل MIDI/Karaoke -GenericName[bg]=MIDI/Karaoke плеър -GenericName[br]=C'hoarier MIDI/Karaoke -GenericName[bs]=Preglednik MIDI/Karaoke datoteka -GenericName[ca]=Reproductor MIDI/Karaoke -GenericName[cs]=Přehrávač MIDI/Karaoke -GenericName[cy]=Chwaraewr MIDI/Karaoke -GenericName[da]=MIDI/Karaoke-afspiller -GenericName[de]=MIDI-/Karaokewiedergabe -GenericName[el]=Αναπαραγωγέας MIDI/Karaoke -GenericName[eo]=Ludilo por MIDI/Karaoko-dosieroj -GenericName[es]=Un reproductor MIDI/Karaoke -GenericName[et]=MIDI/karaoke mängija -GenericName[eu]=MIDI/Karaoke erreproduzigailua -GenericName[fa]=پخشکنندۀ MIDI/Karaoke -GenericName[fi]=MIDI/Karaokesoitin -GenericName[fr]=Platine MIDI / Karaoké -GenericName[ga]=Seinnteoir MIDI/Karaoke -GenericName[gl]=Reproductor de MIDI/Karaoke -GenericName[he]=נגן MIDI/קריוקי -GenericName[hi]=मिडी/कराओके प्लेयर -GenericName[hr]=MIDI/Karaoke player -GenericName[hu]=MIDI/Karaoke-lejátszó -GenericName[is]=MIDI / Karaoke spilari -GenericName[it]=Lettore MIDI/Karaoke -GenericName[ja]=MIDI/カラオケプレーヤ -GenericName[kk]=MIDI/Караоке ойнатқышы -GenericName[km]=កម្មវិធីចាក់ MIDI/ខារ៉ាអូខេ -GenericName[ko]=미디/노래방 재생기 -GenericName[lt]=MIDI/Karaoke grotuvas -GenericName[lv]=MIDI/Karaoke Atskaņotājs -GenericName[mk]=MIDI/Karaoke изведувач -GenericName[ms]=Pemain MIDI/Karaoke -GenericName[nb]=MIDI-/karaokespiller -GenericName[nds]=MIDI-/Karaoke-Afspeler -GenericName[ne]=मिडि/कारावके प्लेयर -GenericName[nl]=MIDI/karaokespeler -GenericName[nn]=MIDI-/karaoke-spelar -GenericName[pl]=Odtwarzacz MIDI/Karaoke -GenericName[pt]=Leitor de MIDI/Karaoke -GenericName[pt_BR]=Reprodutor de MIDI/Karaokê -GenericName[ro]=Program de redare MIDI/Karaoke -GenericName[ru]=Проигрыватель MIDI/караоке -GenericName[se]=MIDI-/karaoke-čuojaheaddji -GenericName[sk]=Prehrávač MIDI/Karaoke -GenericName[sl]=Predvajalnik datotek MIDI/Karaoke -GenericName[sr]=MIDI/караока плејер -GenericName[sr@Latn]=MIDI/karaoka plejer -GenericName[sv]=MIDI/Karaoke-spelare -GenericName[ta]=ஒரு மிடி/கரயோக்கே இயக்கி -GenericName[tg]=Бозингари MIDI/Karaoke -GenericName[th]=โปรแกรมเล่นแฟ้มมิดี้/คาราโอเกะ -GenericName[tr]=MIDI ve Karaoke Yürütücü -GenericName[uk]=Програвач MIDI/Karaoke -GenericName[uz]=MIDI/Karaoki pleyer -GenericName[uz@cyrillic]=MIDI/Караоки плейер -GenericName[ven]=MIDI/Tshitambi tsha Karaoke -GenericName[xh]=Umdlali we MIDI/Karaoke -GenericName[zh_CN]=MIDI/卡拉 OK 播放器 -GenericName[zh_HK]=MIDI/卡拉OK 播放器 -GenericName[zh_TW]=MIDI/卡拉OK播放器 -GenericName[zu]=Umdlali weMIDI/Karaoke MimeType=audio/x-karaoke;audio/x-midi;audio/midi; Exec=tdemid %u diff --git a/tdemid/x-karaoke.desktop b/tdemid/x-karaoke.desktop index faa66f67..8b17abb6 100644 --- a/tdemid/x-karaoke.desktop +++ b/tdemid/x-karaoke.desktop @@ -4,58 +4,3 @@ MimeType=audio/x-karaoke Icon=audio-x-generic Patterns=*.kar;*.KAR; Comment=Karaoke File -Comment[ar]=ملف Karaoke -Comment[bg]=Файл на Karaoke -Comment[bn]=কারাওকে ফাইল -Comment[br]=Restr Karaoke -Comment[bs]=Karaoke datoteka -Comment[ca]=Fitxer karaoke -Comment[cs]=Karaoke soubor -Comment[cy]=Ffeil Karaoke -Comment[da]=Karaoke-fil -Comment[de]=Karaoke-Datei -Comment[el]=Αρχείο Karaoke -Comment[eo]=Karaoko-dosiero -Comment[es]=Archivo Karaoke -Comment[et]=Karaoke fail -Comment[eu]=Karaoke fitxategia -Comment[fa]=پروندۀ Karaoke -Comment[fi]=Karaoketiedosto -Comment[fr]=Fichier de karaoké -Comment[ga]=Comhad Karaoke -Comment[gl]=Ficheiro Karaoke -Comment[he]=קובץ קריוקי -Comment[hi]=कराओके फ़ाइल -Comment[hu]=Karaoke-fájl -Comment[is]=Karaoke skrá -Comment[ja]=カラオケファイル -Comment[kk]=Караоке файлы -Comment[km]=ឯកសារខារ៉ាអូខេ -Comment[ko]=노래방 파일 -Comment[lt]=Karaoke byla -Comment[mk]=Karaoke датотека -Comment[nb]=Karaokefil -Comment[nds]=Karaoke-Datei -Comment[ne]=कारावके फाइल -Comment[nl]=Karaoke-bestand -Comment[nn]=Karaokefil -Comment[pl]=Plik Karaoke -Comment[pt]=Ficheiro de Karaoke -Comment[pt_BR]=Arquivo Karaokê -Comment[ro]=Fişier karaoke -Comment[ru]=Файл караоке -Comment[sk]=Karaoke súbor -Comment[sl]=Datoteka Karaoke -Comment[sr]=Караоке фајл -Comment[sr@Latn]=Karaoke fajl -Comment[sv]=Karaoke-fil -Comment[ta]=கரோக்கி கோப்பு -Comment[tg]=Файли Karaoke -Comment[th]=แฟ้มคาราโอเกะ -Comment[tr]=Karaoke Dosyası -Comment[uk]=Файл Karaoke -Comment[uz]=Karaoki fayli -Comment[uz@cyrillic]=Караоки файли -Comment[zh_CN]=卡拉 OK 文件 -Comment[zh_HK]=卡拉OK 檔案 -Comment[zh_TW]=卡拉OK檔案 |