diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-08-27 15:01:57 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-08-27 16:50:26 +0200 |
commit | babbfefe8b285343b4a4e4e5f6ba682f64650f50 (patch) | |
tree | d0ba0f8605356fbd77123c56d8e3071ab5af26b6 /src | |
parent | ae6f6c975fcaf2fed893b0a6bfefd3bf528d4ca6 (diff) | |
download | tdeio-locate-babbfefe8b285343b4a4e4e5f6ba682f64650f50.tar.gz tdeio-locate-babbfefe8b285343b4a4e4e5f6ba682f64650f50.zip |
Copy translations to a new directory layout.
Use common rules for build and install translations.
Added translation of .desktop files.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 71d3dec76ce1160a038dfbdac339fc6c349e8578)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeL10n.txt | 9 | ||||
-rw-r--r-- | src/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/locate.desktop | 3 | ||||
-rw-r--r-- | src/locate.protocol | 7 | ||||
-rw-r--r-- | src/locater.protocol | 7 | ||||
-rw-r--r-- | src/rlocate.protocol | 7 |
6 files changed, 33 insertions, 15 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index b95d5c5..ab9a2bc 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,10 @@ ##### create translation templates ############## -tde_l10n_create_template( "tdeio-locate" ) +tde_l10n_create_template( "messages/tdeio-locate" ) + +tde_l10n_create_template( + CATALOG "desktop_files/tdeio-locate-desktops" + SOURCES + *.desktop + *.protocol +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0e58011..7943241 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,10 +25,17 @@ link_directories( ##### other data ################################ -install( FILES locate.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES locater.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES rlocate.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES locate.desktop DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders ) +tde_create_translated_desktop( + SOURCE + locate.protocol + locater.protocol + rlocate.protocol + DESTINATION ${SERVICES_INSTALL_DIR} +) +tde_create_translated_desktop( + SOURCE locate.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders +) ##### tdeio_locate ############################## diff --git a/src/locate.desktop b/src/locate.desktop index a218ffa..000c7ed 100644 --- a/src/locate.desktop +++ b/src/locate.desktop @@ -1,7 +1,8 @@ [Desktop Entry] +Name=locate - Search for local files + Encoding=UTF-8 Type=Service -Name=locate - Search for local files X-TDE-ServiceTypes=SearchProvider Keys=locate Query=locate:\\{@} diff --git a/src/locate.protocol b/src/locate.protocol index 179561d..c69bcc1 100644 --- a/src/locate.protocol +++ b/src/locate.protocol @@ -1,12 +1,13 @@ [Protocol] -exec=tdeio_locate +Description=TDE I/O Slave for the locate command + protocol=locate +Icon=edit-find +exec=tdeio_locate input=none output=filesystem listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link reading=true -Icon=edit-find -Description=TDE I/O Slave for the locate command # Using this will e.g. display previews etc. Class=:local diff --git a/src/locater.protocol b/src/locater.protocol index cac299c..ac40189 100644 --- a/src/locater.protocol +++ b/src/locater.protocol @@ -1,12 +1,13 @@ [Protocol] -exec=tdeio_locate +Description=TDE I/O Slave for the locate command + protocol=locater +Icon=edit-find +exec=tdeio_locate input=none output=filesystem listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link reading=true -Icon=edit-find -Description=TDE I/O Slave for the locate command # Using this will e.g. display previews etc. Class=:local diff --git a/src/rlocate.protocol b/src/rlocate.protocol index 4b4802b..1cbfa88 100644 --- a/src/rlocate.protocol +++ b/src/rlocate.protocol @@ -1,12 +1,13 @@ [Protocol] -exec=tdeio_locate +Description=TDE I/O Slave for the locate command + protocol=rlocate +Icon=edit-find +exec=tdeio_locate input=none output=filesystem listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link reading=true -Icon=edit-find -Description=TDE I/O Slave for the locate command # Using this will e.g. display previews etc. Class=:local |