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 15:53:49 +0200 |
commit | 71d3dec76ce1160a038dfbdac339fc6c349e8578 (patch) | |
tree | ff9737518d1d326298f61e4d99a8a4b4b6edcf69 /src | |
parent | 1d3e19e0a4fabc9c12ff0662b0447fa1e4b67e58 (diff) | |
download | tdeio-locate-71d3dec76ce1160a038dfbdac339fc6c349e8578.tar.gz tdeio-locate-71d3dec76ce1160a038dfbdac339fc6c349e8578.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>
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 |