diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-02 17:50:07 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-02 17:51:17 +0200 |
commit | bf18769c595215fa138ff23b9bd115bc238b99b9 (patch) | |
tree | a1af73b9258cb11c6718f0815cfb558176cd908d /extras/multimedia | |
parent | 3626b53227439960175160da61ea3cdb8cf9827b (diff) | |
download | kshutdown-bf18769c595215fa138ff23b9bd115bc238b99b9.tar.gz kshutdown-bf18769c595215fa138ff23b9bd115bc238b99b9.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 973ccd2d158a63ad581504ab32fdae872e57cbfd)
Diffstat (limited to 'extras/multimedia')
-rw-r--r-- | extras/multimedia/.directory | 3 | ||||
-rw-r--r-- | extras/multimedia/CMakeLists.txt | 13 | ||||
-rw-r--r-- | extras/multimedia/amarok.desktop | 5 | ||||
-rw-r--r-- | extras/multimedia/juk.desktop | 6 | ||||
-rw-r--r-- | extras/multimedia/kaffeine.desktop | 7 | ||||
-rw-r--r-- | extras/multimedia/kdetv.desktop | 5 | ||||
-rw-r--r-- | extras/multimedia/kscd.desktop | 7 | ||||
-rw-r--r-- | extras/multimedia/noatun.desktop | 5 | ||||
-rw-r--r-- | extras/multimedia/xmms.desktop | 5 |
9 files changed, 8 insertions, 48 deletions
diff --git a/extras/multimedia/.directory b/extras/multimedia/.directory index ed2e7cd..b215c16 100644 --- a/extras/multimedia/.directory +++ b/extras/multimedia/.directory @@ -1,7 +1,4 @@ [Desktop Entry] -# Encoding: UTF-8 Type=Directory Icon=media-playback-stop Comment=Multimedia -Comment[pl]=Multimedia -Comment[el]=Πολυμέσα diff --git a/extras/multimedia/CMakeLists.txt b/extras/multimedia/CMakeLists.txt index 00173e8..af70620 100644 --- a/extras/multimedia/CMakeLists.txt +++ b/extras/multimedia/CMakeLists.txt @@ -1,6 +1,9 @@ -file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop ) +file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop ) -install( - FILES ${_files} .directory - DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia -) +foreach( _source ${_files} ) + tde_create_translated_desktop( + SOURCE ${_source} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras + ) +endforeach() diff --git a/extras/multimedia/amarok.desktop b/extras/multimedia/amarok.desktop index 9fd92d9..8334d2d 100644 --- a/extras/multimedia/amarok.desktop +++ b/extras/multimedia/amarok.desktop @@ -1,10 +1,5 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Stop Playback -Comment[de]=Wiedergabe anhalten -Comment[it]=Interrompi riproduzione -Comment[pl]=Zatrzymaj odtwarzanie -Comment[el]=Σταμάτημα αναπαραγωγής Exec=dcop amarok player stop Icon=amarok Name=Amarok diff --git a/extras/multimedia/juk.desktop b/extras/multimedia/juk.desktop index 0e7f35a..d87cc84 100644 --- a/extras/multimedia/juk.desktop +++ b/extras/multimedia/juk.desktop @@ -1,12 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Stop Playback -Comment[de]=Wiedergabe anhalten -Comment[it]=Interrompi riproduzione -Comment[pl]=Zatrzymaj odtwarzanie -Comment[el]=Σταμάτημα αναπαραγωγής Exec=dcop juk Player stop -GenericName= Icon=juk MimeType= Name=JuK diff --git a/extras/multimedia/kaffeine.desktop b/extras/multimedia/kaffeine.desktop index f659895..14c1d5d 100644 --- a/extras/multimedia/kaffeine.desktop +++ b/extras/multimedia/kaffeine.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Stop Playback -Comment[de]=Wiedergabe anhalten -Comment[it]=Interrompi riproduzione -Comment[pl]=Zatrzymaj odtwarzanie -Comment[el]=Σταμάτημα αναπαραγωγής Exec=dcop kaffeine Kaffeine stop -GenericName= -GenericName[en_US]= Icon=kaffeine MimeType= Name=Kaffeine diff --git a/extras/multimedia/kdetv.desktop b/extras/multimedia/kdetv.desktop index de610f6..408da7e 100644 --- a/extras/multimedia/kdetv.desktop +++ b/extras/multimedia/kdetv.desktop @@ -1,14 +1,9 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Mute and quit -Comment[pl]=Wycisz i zakończ -Comment[el]=Κλείσιμο ήχου και τερματισμός Exec=KDETV_PID=`pidof kdetv`; dcop "kdetv-$$KDETV_PID" KdetvIface toggleMute; dcop "kdetv-$$KDETV_PID" MainApplication-Interface quit Icon=kdetv MimeType= Name=kdetv -Name[en_US]=kdetv -Name[el]=kdetv Path= StartupNotify=true Terminal=false diff --git a/extras/multimedia/kscd.desktop b/extras/multimedia/kscd.desktop index 968b40a..6c9dffe 100644 --- a/extras/multimedia/kscd.desktop +++ b/extras/multimedia/kscd.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Stop Playback -Comment[de]=Wiedergabe anhalten -Comment[it]=Interrompi riproduzione -Comment[pl]=Zatrzymaj odtwarzanie -Comment[el]=Σταμάτημα αναπαραγωγής Exec=dcop kscd CDPlayer stop -GenericName= -GenericName[pl]= Icon=kscd MimeType= Name=KsCD diff --git a/extras/multimedia/noatun.desktop b/extras/multimedia/noatun.desktop index bffcddf..0b2f68f 100644 --- a/extras/multimedia/noatun.desktop +++ b/extras/multimedia/noatun.desktop @@ -1,10 +1,5 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Stop Playback -Comment[de]=Wiedergabe anhalten -Comment[it]=Interrompi riproduzione -Comment[pl]=Zatrzymaj odtwarzanie -Comment[el]=Σταμάτημα αναπαραγωγής Exec=dcop noatun Noatun stop Icon=noatun MimeType= diff --git a/extras/multimedia/xmms.desktop b/extras/multimedia/xmms.desktop index 16e218c..66afd63 100644 --- a/extras/multimedia/xmms.desktop +++ b/extras/multimedia/xmms.desktop @@ -1,10 +1,5 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Stop current song -Comment[de]=Bei aktuellem Lied stoppen -Comment[it]=Interrompi canzone corrente -Comment[pl]=Zatrzymaj bieżący utwór -Comment[el]=Σταμάτημα αναπαραγωγής του τρέχοντος τραγουδιού Exec=xmms --stop Icon=xmms Name=XMMS |