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/shutdown | |
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/shutdown')
-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 |
4 files changed, 8 insertions, 22 deletions
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= |