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/system | |
| 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/system')
| -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 |
5 files changed, 8 insertions, 28 deletions
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= |
