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:50:07 +0200 |
commit | 973ccd2d158a63ad581504ab32fdae872e57cbfd (patch) | |
tree | f1e6a4cb0763e57458c5fb6c86be2dc01e8ef492 /extras | |
parent | 761db40024a2195b2ab3f19357db8b236e25ad56 (diff) | |
download | kshutdown-973ccd2d158a63ad581504ab32fdae872e57cbfd.tar.gz kshutdown-973ccd2d158a63ad581504ab32fdae872e57cbfd.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 'extras')
-rw-r--r-- | extras/CMakeLists.txt | 17 | ||||
-rw-r--r-- | extras/hibernate.desktop | 3 | ||||
-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 | ||||
-rw-r--r-- | extras/shutdown/.directory | 3 | ||||
-rw-r--r-- | extras/shutdown/CMakeLists.txt | 13 | ||||
-rw-r--r-- | extras/shutdown/cancelshutdown.desktop | 7 | ||||
-rw-r--r-- | extras/shutdown/fsck.desktop | 7 | ||||
-rw-r--r-- | extras/system/.directory | 2 | ||||
-rw-r--r-- | extras/system/CMakeLists.txt | 13 | ||||
-rw-r--r-- | extras/system/adsl-stop.desktop | 7 | ||||
-rw-r--r-- | extras/system/kppp.desktop | 7 | ||||
-rw-r--r-- | extras/system/tdeeject.desktop | 7 |
20 files changed, 34 insertions, 108 deletions
diff --git a/extras/CMakeLists.txt b/extras/CMakeLists.txt index 4645d0a..848ccff 100644 --- a/extras/CMakeLists.txt +++ b/extras/CMakeLists.txt @@ -1,8 +1,11 @@ -add_subdirectory( multimedia ) -add_subdirectory( shutdown ) -add_subdirectory( system ) +file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop ) -install( - FILES hibernate.desktop - DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras -) +foreach( _source ${_files} ) + tde_create_translated_desktop( + SOURCE ${_source} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras + ) +endforeach() + +tde_auto_add_subdirectories( ) diff --git a/extras/hibernate.desktop b/extras/hibernate.desktop index 8a2b6f3..12cc457 100644 --- a/extras/hibernate.desktop +++ b/extras/hibernate.desktop @@ -1,12 +1,9 @@ [Desktop Entry] Comment=Hibernate Computer -Comment[pl]=Hibernuj Komputer -# Encoding: UTF-8 Exec=dcop kdesktop KScreensaverIface lock; dbus-send --system --dest="org.freedesktop.Hal" "/org/freedesktop/Hal/devices/computer" "org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate" Icon=hibernate MimeType= Name=requires DBus/HAL -Name[pl]=wymaga DBus/HAL Path= StartupNotify=true Terminal=false 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 diff --git a/extras/shutdown/.directory b/extras/shutdown/.directory index b67681f..31c8d6f 100644 --- a/extras/shutdown/.directory +++ b/extras/shutdown/.directory @@ -1,7 +1,4 @@ [Desktop Entry] -# Encoding: UTF-8 Type=Directory Icon=system-log-out Comment=Shut Down -Comment[pl]=Zamykanie Systemu -Comment[el]=Τερματισμός diff --git a/extras/shutdown/CMakeLists.txt b/extras/shutdown/CMakeLists.txt index f6c8d32..68be21c 100644 --- a/extras/shutdown/CMakeLists.txt +++ b/extras/shutdown/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/shutdown -) +foreach( _source ${_files} ) + tde_create_translated_desktop( + SOURCE ${_source} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras + ) +endforeach() diff --git a/extras/shutdown/cancelshutdown.desktop b/extras/shutdown/cancelshutdown.desktop index 2ec0dfc..443beb9 100644 --- a/extras/shutdown/cancelshutdown.desktop +++ b/extras/shutdown/cancelshutdown.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Cancel a running shutdown -Comment[de]=Herunterfahren aufhalten -Comment[it]=Annulla spegnimento programmato -Comment[pl]=Anuluj zamykanie systemu -Comment[el]=Ακύρωση τερματισμού Exec=/sbin/shutdown -c -GenericName= -GenericName[pl]= Icon=system-log-out MimeType= Path= diff --git a/extras/shutdown/fsck.desktop b/extras/shutdown/fsck.desktop index d6c8ccf..0dbb21e 100644 --- a/extras/shutdown/fsck.desktop +++ b/extras/shutdown/fsck.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Reboot and run `fsck' -Comment[it]=Riavvia ed esegui `fsck' -Comment[de]=Neustarten und `fsck` ausführen -Comment[pl]=Zrestartuj i uruchom `fsck' -Comment[el]=Επανεκκίνηση και εκτέλεση του `fsck' Exec=/sbin/shutdown -r -F 1 -GenericName= -GenericName[pl]= Icon=system-log-out MimeType= Path= diff --git a/extras/system/.directory b/extras/system/.directory index 6ff76eb..9764734 100644 --- a/extras/system/.directory +++ b/extras/system/.directory @@ -1,6 +1,4 @@ [Desktop Entry] -# Encoding: UTF-8 Type=Directory Icon=about_kde Comment=System -Comment[pl]=Systemowe diff --git a/extras/system/CMakeLists.txt b/extras/system/CMakeLists.txt index 6e6e107..a2d7e6d 100644 --- a/extras/system/CMakeLists.txt +++ b/extras/system/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/system -) +foreach( _source ${_files} ) + tde_create_translated_desktop( + SOURCE ${_source} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras + ) +endforeach() diff --git a/extras/system/adsl-stop.desktop b/extras/system/adsl-stop.desktop index 152195c..ec85389 100644 --- a/extras/system/adsl-stop.desktop +++ b/extras/system/adsl-stop.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Shut down a PPPoE link -Comment[de]=Eine PPPoE Verbindung trennen -Comment[it]=Disconnetti una connessione PPPoE -Comment[pl]=Zakończ połączenie PPPoE -Comment[el]=Τερματισμός μιας PPPoE σύνδεσης Exec=/usr/sbin/adsl-stop -GenericName= -GenericName[pl]= Icon=network_disconnected MimeType= Path= diff --git a/extras/system/kppp.desktop b/extras/system/kppp.desktop index 00cbf3d..94eff7f 100644 --- a/extras/system/kppp.desktop +++ b/extras/system/kppp.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Terminate an existing PPP connection -Comment[it]=Termina una connessione PPP esistente -Comment[de]=Eine bestehende PPP Verbindung trennen -Comment[pl]=Przerwij trwające połączenie -Comment[el]=Τερματισμός μιας υπάρχουσας PPP σύνδεσης Exec=kppp -k -GenericName= -GenericName[pl]= Icon=kppp MimeType= Path= diff --git a/extras/system/tdeeject.desktop b/extras/system/tdeeject.desktop index 409fbc4..fab14f9 100644 --- a/extras/system/tdeeject.desktop +++ b/extras/system/tdeeject.desktop @@ -1,13 +1,6 @@ [Desktop Entry] -# Encoding: UTF-8 Comment=Eject CD -Comment[de]=CD auswerfen -Comment[it]=Espelli CD -Comment[pl]=Wysuń CD -Comment[el]=Εξαγωγή CD Exec=tdeeject /dev/cdrom -GenericName= -GenericName[en_US]= Icon=media-optical-cdrom-unmounted MimeType= Path= |