From d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 30 May 2020 00:57:03 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit ff3f2006ce72b2edabc534188a4ad006e89b4f84) --- xine_artsplugin/tools/CMakeL10n.txt | 3 ++ xine_artsplugin/tools/thumbnail/CMakeL10n.txt | 7 +++ xine_artsplugin/tools/thumbnail/CMakeLists.txt | 5 +- .../tools/thumbnail/videothumbnail.desktop | 63 ---------------------- 4 files changed, 14 insertions(+), 64 deletions(-) create mode 100644 xine_artsplugin/tools/CMakeL10n.txt create mode 100644 xine_artsplugin/tools/thumbnail/CMakeL10n.txt (limited to 'xine_artsplugin/tools') diff --git a/xine_artsplugin/tools/CMakeL10n.txt b/xine_artsplugin/tools/CMakeL10n.txt new file mode 100644 index 00000000..b585ce4a --- /dev/null +++ b/xine_artsplugin/tools/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) diff --git a/xine_artsplugin/tools/thumbnail/CMakeL10n.txt b/xine_artsplugin/tools/thumbnail/CMakeL10n.txt new file mode 100644 index 00000000..1f4eaf02 --- /dev/null +++ b/xine_artsplugin/tools/thumbnail/CMakeL10n.txt @@ -0,0 +1,7 @@ +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "desktop_files/videothumbnail.desktop/" + SOURCES videothumbnail.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/xine_artsplugin/tools/thumbnail/CMakeLists.txt b/xine_artsplugin/tools/thumbnail/CMakeLists.txt index 0517e975..4dbc9502 100644 --- a/xine_artsplugin/tools/thumbnail/CMakeLists.txt +++ b/xine_artsplugin/tools/thumbnail/CMakeLists.txt @@ -46,4 +46,7 @@ install( DESTINATION ${DATA_INSTALL_DIR}/videothumbnail ) -install( FILES videothumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE videothumbnail.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/xine_artsplugin/tools/thumbnail/videothumbnail.desktop b/xine_artsplugin/tools/thumbnail/videothumbnail.desktop index d684a47a..df4ce9df 100644 --- a/xine_artsplugin/tools/thumbnail/videothumbnail.desktop +++ b/xine_artsplugin/tools/thumbnail/videothumbnail.desktop @@ -1,69 +1,6 @@ [Desktop Entry] Type=Service Name=Video Files -Name[af]=Video Lêers -Name[ar]=ملفات مرئيات -Name[bg]=Видео файлове -Name[bn]=ভিডিও ফাইল -Name[br]=Restroù Video -Name[bs]=Video datoteke -Name[ca]=Fitxers de vídeo -Name[cs]=Video soubory -Name[cy]=Ffeiliau Fideo -Name[da]=Videofiler -Name[de]=Video-Dateien -Name[el]=Αρχεία βίντεο -Name[eo]=Vidaj dosieroj -Name[es]=Archivos de vídeo -Name[et]=Videofailid -Name[eu]=Bideo fitxategiak -Name[fa]=پرونده‌های ویدیویی -Name[fi]=Videotiedostot -Name[fr]=Fichiers vidéo -Name[ga]=Comhaid Fhíse -Name[gl]=Ficheiros de Video -Name[he]=קבצי וידאו -Name[hi]=वीडियो फ़ाइलें -Name[hr]=Video datoteke -Name[hu]=Videófájlok -Name[is]=Kvikmyndaskrár -Name[it]=File Video -Name[ja]=ビデオファイル -Name[kk]=Бейне файлдар -Name[km]=ឯកសារ​វីដេអូ -Name[ko]=비디오 파일 -Name[lt]=Video bylos -Name[mk]=Видео датотеки -Name[nb]=Videofiler -Name[nds]=Videodateien -Name[ne]=भिडियो फाइल -Name[nl]=Videobestanden -Name[nn]=Videofiler -Name[pa]=ਵੀਡਿਓ ਫਾਇਲਾਂ -Name[pl]=Pliki wideo -Name[pt]=Ficheiros de Vídeo -Name[pt_BR]=Arquivos de vídeo -Name[ro]=Fişiere video -Name[ru]=Видеофайлы -Name[sk]=Video súbory -Name[sl]=Video datoteke -Name[sr]=Видео фајлови -Name[sr@Latn]=Video fajlovi -Name[sv]=Videofiler -Name[ta]=படக்காட்சி கோப்புகள் -Name[tg]=Файлҳои Видео -Name[th]=แฟ้มวิดีโอ -Name[tr]=Video Dosyaları -Name[uk]=Відеофайли -Name[uz]=Video fayllar -Name[uz@cyrillic]=Видео файллар -Name[ven]=Dzifaela dza Video -Name[wa]=Fitchîs videyo -Name[xh]=Iifayile ze Video -Name[zh_CN]=视频文件 -Name[zh_HK]=視訊檔案 -Name[zh_TW]=視訊檔案 -Name[zu]=Amafayela Evidiyo X-TDE-ServiceTypes=ThumbCreator MimeTypes=video/*,application/vnd.ms-asf,application/vnd.rn-realmedia X-TDE-Library=videothumbnail -- cgit v1.2.1