diff options
author | Slávek Banko <[email protected]> | 2020-05-30 00:57:03 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-30 01:05:29 +0200 |
commit | d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d (patch) | |
tree | 060933b7cc6b5aa928a37c4868330f58fb5b6294 /kscd | |
parent | 77d1049eb65f4d8bd24351c5c1a8d6344bf3ec62 (diff) | |
download | tdemultimedia-d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d.tar.gz tdemultimedia-d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d.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 <[email protected]>
(cherry picked from commit ff3f2006ce72b2edabc534188a4ad006e89b4f84)
Diffstat (limited to 'kscd')
-rw-r--r-- | kscd/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kscd/CMakeLists.txt | 21 | ||||
-rw-r--r-- | kscd/audiocd_play.desktop | 46 | ||||
-rw-r--r-- | kscd/kscd.desktop | 64 | ||||
-rw-r--r-- | kscd/xmcd.desktop | 67 |
5 files changed, 24 insertions, 180 deletions
diff --git a/kscd/CMakeL10n.txt b/kscd/CMakeL10n.txt index b877e6ae..6ce30ed8 100644 --- a/kscd/CMakeL10n.txt +++ b/kscd/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "kscd" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kscd-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kscd/CMakeLists.txt b/kscd/CMakeLists.txt index d6f74be7..ee3ea4ab 100644 --- a/kscd/CMakeLists.txt +++ b/kscd/CMakeLists.txt @@ -59,8 +59,23 @@ tde_add_executable( kscd AUTOMOC install( PROGRAMS workman2cddb.pl DESTINATION ${BIN_INSTALL_DIR} ) -install( FILES kscd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) -install( FILES xmcd.desktop DESTINATION ${MIME_INSTALL_DIR}/text ) +tde_create_translated_desktop( + SOURCE kscd.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kscd-desktops +) + +tde_create_translated_desktop( + SOURCE xmcd.desktop + DESTINATION ${MIME_INSTALL_DIR}/text + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kscd-desktops +) + install( FILES kscd.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) + install( FILES kscd.profile.xml DESTINATION ${DATA_INSTALL_DIR}/profiles ) -install( FILES audiocd_play.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) + +tde_create_translated_desktop( + SOURCE audiocd_play.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kscd-desktops +) diff --git a/kscd/audiocd_play.desktop b/kscd/audiocd_play.desktop index 1fca3f9a..35636793 100644 --- a/kscd/audiocd_play.desktop +++ b/kscd/audiocd_play.desktop @@ -5,51 +5,5 @@ X-TDE-Priority=TopLevel [Desktop Action Play] Name=Play -Name[bg]=Старт -Name[bn]=চালাও -Name[br]=Seniñ -Name[bs]=Sviraj -Name[ca]=Reproducció -Name[cs]=Přehrát -Name[cy]=Chwarae -Name[da]=Spil -Name[de]=Abspielen -Name[el]=Αναπαραγωγή -Name[eo]=Ludi -Name[et]=Esitus -Name[fa]=پخش -Name[fi]=Soita -Name[fr]=Lecture -Name[ga]=Seinn -Name[gl]=Reproducir -Name[he]=נגן -Name[hu]=Lejátszás -Name[is]=Spila -Name[it]=Riproduci -Name[kk]=Ойнату -Name[km]=ចាក់ -Name[ko]=재생 -Name[lt]=Groti -Name[mk]=Пушти -Name[nb]=Spill -Name[nds]=Afspelen -Name[ne]=प्ले -Name[nl]=Afspelen -Name[nn]=Spel -Name[pa]=ਵਜਾਓ -Name[pl]=Odtwarzaj -Name[pt]=Tocar -Name[pt_BR]=DjPlay -Name[ru]=Воспроизведение -Name[sl]=Predvajaj -Name[sv]=Spela -Name[ta]=தொடங்கு -Name[th]=เล่น -Name[tr]=Çal -Name[uk]=Пуск -Name[wa]=Djouwer -Name[zh_CN]=播放 -Name[zh_HK]=播放 -Name[zh_TW]=播放 Exec=kscd -s -caption "%c" %i %m %u Icon=kscd diff --git a/kscd/kscd.desktop b/kscd/kscd.desktop index c9bb4cdb..607564c8 100644 --- a/kscd/kscd.desktop +++ b/kscd/kscd.desktop @@ -3,70 +3,6 @@ Name=KsCD GenericName=CD Player -GenericName[af]=Cd Speler -GenericName[ar]=مشغل الأقراص المدمجة -GenericName[bg]=Плеър за аудио дискове -GenericName[bn]=সিডি প্লেয়ার -GenericName[br]=Ur c'hoarier CD -GenericName[ca]=Reproductor de CD -GenericName[cs]=CD přehrávač -GenericName[cy]=Chwaraewr CD -GenericName[da]=Cd-afspiller -GenericName[de]=CD-Wiedergabe -GenericName[el]=Αναπαραγωγέας CD -GenericName[eo]=Ludilo por muzikaj lumdiskoj -GenericName[es]=Reproductor de CDs -GenericName[et]=CD mängija -GenericName[eu]=CD erreproduzigailua -GenericName[fa]=پخشکنندۀ دیسک فشرده -GenericName[fi]=CD-soitin -GenericName[fr]=Lecteur de CD audio -GenericName[ga]=Seinnteoir Dlúthdhioscaí -GenericName[gl]=Reproductor de CD -GenericName[he]=נגן תקליטורים -GenericName[hi]=सीडी प्लेयर -GenericName[hu]=CD-lejátszó -GenericName[is]=CD spilari -GenericName[it]=Lettore CD -GenericName[ja]=CD プレーヤ -GenericName[kk]=CD ойнатқышы -GenericName[km]=កម្មវិធីចាក់ស៊ីឌី -GenericName[ko]=CD 재생기 -GenericName[lt]=CD grotuvas -GenericName[lv]=CD Atskaņotājs -GenericName[mk]=CD плеер -GenericName[ms]=Pemain CD -GenericName[nb]=CD-spiller -GenericName[nds]=CD-Afspeler -GenericName[ne]=सीडी प्लेयर -GenericName[nl]=CD-speler -GenericName[nn]=CD-spelar -GenericName[pa]=CD ਪਲੇਅਰ -GenericName[pl]=Odtwarzacz CD -GenericName[pt]=Leitor de CDs -GenericName[pt_BR]=Reprodutor de CDs -GenericName[ro]=Redare CD audio -GenericName[ru]=Проигрыватель аудиодисков -GenericName[se]=CD-čuojaheaddji -GenericName[sk]=CD prehrávač -GenericName[sl]=Predvajalnik CD-jev -GenericName[sr]=CD плејер -GenericName[sr@Latn]=CD plejer -GenericName[sv]=Cd-spelare -GenericName[ta]=குறுந்தகடு இயக்கி -GenericName[tg]=Бозингари Диски Фишурда -GenericName[th]=โปรแกรมเล่นซีดี -GenericName[tr]=CD Çalar -GenericName[uk]=Програвач КД -GenericName[uz]=Kompakt-disk pleyer -GenericName[uz@cyrillic]=Компакт-диск плейер -GenericName[ven]=Tshitambi tsha CD -GenericName[wa]=Djoweu di plakes lazer -GenericName[xh]=Umdlali We CD -GenericName[zh_CN]=CD 播放器 -GenericName[zh_HK]=CD 播放器 -GenericName[zh_TW]=CD 播放器 -GenericName[zu]=Umdlali we CD Exec=kscd -caption "%c" %i %m X-DocPath=kscd/index.html diff --git a/kscd/xmcd.desktop b/kscd/xmcd.desktop index 2f105a1e..521202e1 100644 --- a/kscd/xmcd.desktop +++ b/kscd/xmcd.desktop @@ -1,72 +1,5 @@ [Desktop Entry] Comment=CD Database File -Comment[af]=Cd Databasis Lêer -Comment[az]=CD Databeyzi Faylı -Comment[bg]=Файл с база от данни за КД -Comment[bn]=সিডি ডেটাবেস ফাইল -Comment[br]=Restr Stlennvon CD -Comment[bs]=CD baza podataka -Comment[ca]=Fitxer de base de dades de CD -Comment[cs]=Soubor CD databáze -Comment[cy]=Ffeil Cronfa Ddata CD -Comment[da]=Cd-databasefil -Comment[de]=CD-Datenbank-Datei -Comment[el]=Αρχείο βάσης δεδομένων CD -Comment[eo]=Lumdiskdatumbazo-dosiero -Comment[es]=Base de datos de CDs -Comment[et]=CD andmebaasi fail -Comment[eu]=CD datubase fitxategia -Comment[fa]=پروندۀ دادگان دیسک فشرده -Comment[fi]=CD-tietokantatiedosto -Comment[fr]=Banque de données pour CD -Comment[gl]=Ficheiro de base de datos de CD -Comment[he]=קובץ מסד נתוני תקליטור -Comment[hi]=सीडी डाटाबेस फ़ाइल -Comment[hr]=CD baza datoteka -Comment[hu]=CD-adatbázis fájl -Comment[id]=File Database CD -Comment[is]=CD gagnasafnsskrá -Comment[it]=File di database CD -Comment[ja]=CD データベースファイル -Comment[kk]=CD деректер қоры файлы -Comment[km]=ឯកសារមូលដ្ឋានទិន្នន័យស៊ីឌី -Comment[ko]=CD 데이터베이스 파일 -Comment[lt]=CD duomenų bazės Byla -Comment[lv]=CD Datubāzes Fails -Comment[mk]=Датотека за база на податоци за CD -Comment[ms]=Fail Pangkalan Data CD -Comment[mt]=Fajl Database tas-CDs -Comment[nb]=CD-databasefil -Comment[nds]=CD-Datenbankdatei -Comment[ne]=CD डाटाबेस फाइल -Comment[nl]=Bestand met cd-database -Comment[nn]=CD-databasefil -Comment[pa]=CD ਡਾਟਾਬੇਸ ਫਾਇਲ -Comment[pl]=Baza danych CD -Comment[pt]=Ficheiro de dados de CDs -Comment[pt_BR]=Arquivo de Dados de CDs -Comment[ro]=Fişier bază de date CD -Comment[ru]=Файл базы данных CD -Comment[se]=CD-diehtovuođđofiila -Comment[sk]=Databázový súbor CD -Comment[sl]=Zbirka podatkov o CD -Comment[sr]=Фајл CD базе података -Comment[sr@Latn]=Fajl CD baze podataka -Comment[sv]=Cd-databasfil -Comment[ta]=குறுந்தகடு தரவுத்தளக் கோப்பு -Comment[tg]=Файли Манбаъи Додаҳои Диски Фишурда -Comment[th]=แฟ้มฐานข้อมูลซีดี -Comment[tr]=CD Veritabanı Dosyası -Comment[uk]=Файл бази даних CD -Comment[uz]=CD maʼlumot baza fayli -Comment[uz@cyrillic]=CD маълумот база файли -Comment[ven]=CD ya databeizi ya faela -Comment[wa]=Båze di dnêyes des plakes -Comment[xh]=Ifayile yesiseko sedata ye CD -Comment[zh_CN]=CD 数据库文件 -Comment[zh_HK]=CD 資料庫檔案 -Comment[zh_TW]=CD 資料庫檔案 -Comment[zu]=Ifayela yesiseko sedata ye CD DefaultApp=kedit Icon=application-x-cda Type=MimeType |