summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-28 18:13:33 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-28 18:13:33 +0200
commit440bda1096cdb137746ce5474434a22650cb0e76 (patch)
tree0791a5b051127df5b2375f2dda78eaa1171951e0 /misc
parent5e7b4208af67228e8dae4bfb4f08d4dd69107102 (diff)
downloadcodeine-440bda1096cdb137746ce5474434a22650cb0e76.tar.gz
codeine-440bda1096cdb137746ce5474434a22650cb0e76.zip
Add CMakeL10n rules.
Update translation templates. Use common cmake rules for documentation. Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'misc')
-rw-r--r--misc/CMakeL10n.txt6
-rw-r--r--misc/CMakeLists.txt13
-rw-r--r--misc/codeine.desktop55
-rw-r--r--misc/codeine_part.desktop8
-rw-r--r--misc/codeine_play_dvd.desktop29
5 files changed, 30 insertions, 81 deletions
diff --git a/misc/CMakeL10n.txt b/misc/CMakeL10n.txt
new file mode 100644
index 0000000..337401d
--- /dev/null
+++ b/misc/CMakeL10n.txt
@@ -0,0 +1,6 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/codeine-desktops"
+ SOURCES *.desktop
+)
diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt
index 30786a7..99c0db2 100644
--- a/misc/CMakeLists.txt
+++ b/misc/CMakeLists.txt
@@ -15,17 +15,14 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
-install(
- FILES ${PROJECT_NAME}_part.desktop
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
-install(
- FILES ${PROJECT_NAME}_play_dvd.desktop
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}_play_dvd.desktop
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
)
diff --git a/misc/codeine.desktop b/misc/codeine.desktop
index 9aded75..853fb18 100644
--- a/misc/codeine.desktop
+++ b/misc/codeine.desktop
@@ -1,41 +1,14 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=Codeine
-Exec=codeine %u
-Icon=codeine
-Type=Application
-Terminal=false
-MimeType=video/x-theora;video/x-ogm;video/x-ms-wmv;video/x-msvideo;video/x-ms-asf;video/x-matroska;video/mpeg;video/avi;video/quicktime;video/vnd.rn-realvideo;video/x-flic;
-Categories=Qt;TDE;AudioVideo;Player
-Comment=Video player for TDE designed to be as simple as possible
-Comment[de]=Videoabspieler für TDE entworfen zur einfachen Bedienung
-GenericName=Media Player
-GenericName[br]=Soner liesvedia
-GenericName[ca]=Reproductor multimèdia
-GenericName[cs]=Přehrávač médií
-GenericName[cy]=Chwaraeydd Cyfryngau
-GenericName[da]=Medieafspiller
-GenericName[el]=Αναπαραγωγέας μέσων
-GenericName[es]=Reproductor multimedia
-GenericName[et]=Meediamängija
-GenericName[fr]=Lecteur multimédia
-GenericName[ga]=Seinnteoir Meán
-GenericName[he]=נגן מדיה
-GenericName[hi]=मीडिया प्लेयर
-GenericName[hu]=Médialejátszó
-GenericName[it]=Lettore multimediale
-GenericName[lt]=Media grotuvas
-GenericName[mk]=Изведувач на мултимедиа
-GenericName[nl]=Mediaspeler
-GenericName[pa]=ਮੀਡਿਆ ਪਲੇਅਰ
-GenericName[pt]=Leitor Multimédia
-GenericName[pt_BR]=Tocador de Mídia
-GenericName[ru]=Медиаплеер
-GenericName[sr]=Медија плејер
-GenericName[sr@Latn]=Medija plejer
-GenericName[sv]=Mediaspelare
-GenericName[tr]=Medya Oynatıcı
-GenericName[xh]=Umdlali we Midia
-GenericName[xx]=xxMedia Playerxx
-GenericName[zh_CN]=媒体播放器
-GenericName[zu]=Umdlali Wezezindaba
+[Desktop Entry]
+Encoding=UTF-8
+Name=Codeine
+
+GenericName=Media Player
+
+Comment=Video player for TDE designed to be as simple as possible
+
+Type=Application
+Exec=codeine %u
+Icon=codeine
+Terminal=false
+MimeType=video/x-theora;video/x-ogm;video/x-ms-wmv;video/x-msvideo;video/x-ms-asf;video/x-matroska;video/mpeg;video/avi;video/quicktime;video/vnd.rn-realvideo;video/x-flic;
+Categories=Qt;TDE;AudioVideo;Player
diff --git a/misc/codeine_part.desktop b/misc/codeine_part.desktop
index c8f8d73..4d7962d 100644
--- a/misc/codeine_part.desktop
+++ b/misc/codeine_part.desktop
@@ -1,10 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
-Icon=codeine
-MimeType=video/x-theora;video/x-ogm;video/x-ms-wmv;video/x-msvideo;video/x-ms-asf;video/x-matroska;video/mpeg;video/avi;video/quicktime;video/vnd.rn-realvideo;video/x-flic;
Name=Codeine
+
Comment=Embeddable Video Player
-X-TDE-ServiceTypes=KParts/ReadOnlyPart
+
Type=Service
+Icon=codeine
+MimeType=video/x-theora;video/x-ogm;video/x-ms-wmv;video/x-msvideo;video/x-ms-asf;video/x-matroska;video/mpeg;video/avi;video/quicktime;video/vnd.rn-realvideo;video/x-flic;
+X-TDE-ServiceTypes=KParts/ReadOnlyPart
X-TDE-Library=libcodeine
X-TDE-InitialPreference=9
diff --git a/misc/codeine_play_dvd.desktop b/misc/codeine_play_dvd.desktop
index 36ce1cf..11b6f13 100644
--- a/misc/codeine_play_dvd.desktop
+++ b/misc/codeine_play_dvd.desktop
@@ -6,34 +6,5 @@ X-TDE-Priority=TopLevel
[Desktop Action Play]
Name=Play DVD with Codeine
-Name[bg]=Възпроизвеждане на DVD с Codeine
-Name[bn]=ক্যাফিন দিয়ে ডিভিডি চালাও
-Name[br]=Seniñ an DVD gant Codeine
-Name[ca]=Reprodueix DVD amb Codeine
-Name[cs]=Přehrát DVD v Codeine
-Name[da]=Spil dvd med Codeine
-Name[de]=DVD mit Codeine abspielen
-Name[el]=Αναπαραγωγή DVD με το Codeine
-Name[es]=Reproducir DVD con Codeine
-Name[et]=Esita DVD Codeine'is
-Name[fi]=Toista dvd-levy Codeinessa
-Name[fr]=Lire le DVD avec Codeine
-Name[ga]=Seinn DVD le Codeine
-Name[he]=נגן תקליטור DVD עם Codeine
-Name[it]=Riproduci DVD con Codeine
-Name[ja]=CodeineでDVDを再生
-Name[nb]=Spill DVD med Codeine
-Name[nl]=DVD met Codeine afspelen
-Name[nn]=Spel DVD med Codeine
-Name[pa]=ਕੈਫੀਨ ਨਾਲ DVD ਚਲਾਓ
-Name[pl]=Odtwarzaj DVD w Codeine
-Name[pt]=Ver o DVD com o Codeine
-Name[pt_BR]=Reproduzir o DVD com o Codeine
-Name[sr]=Пусти DVD Codeine-ом
-Name[sr@Latn]=Pusti DVD Codeine-om
-Name[sv]=Spela dvd med Codeine
-Name[tr]=DVD'yi Codeine ile oynat
-Name[xx]=xxPlay DVD with Codeinexx
-Name[zh_CN]=用 Codeine 播放 DVD
Icon=codeine
Exec=codeine --play-dvd %u