summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-17 17:59:07 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-17 18:00:40 +0200
commita2e54731b70c9251cd67fd2e88f71ba64fb230d7 (patch)
tree1c07d2aec19f98cc91b7befac303ba7e72c15ab7 /lib
parente4949db30c6b8cc92c9059fd882e7a8f0158db3a (diff)
downloadkchmviewer-a2e54731b70c9251cd67fd2e88f71ba64fb230d7.tar.gz
kchmviewer-a2e54731b70c9251cd67fd2e88f71ba64fb230d7.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 a0ea767dd23501e1ad91f6e329c71221e711fe6b)
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeL10n.txt3
-rw-r--r--lib/tdeio-msits/CMakeL10n.txt6
-rw-r--r--lib/tdeio-msits/CMakeLists.txt11
-rw-r--r--lib/tdeio-msits/msits.protocol14
4 files changed, 15 insertions, 19 deletions
diff --git a/lib/CMakeL10n.txt b/lib/CMakeL10n.txt
new file mode 100644
index 0000000..b585ce4
--- /dev/null
+++ b/lib/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/lib/tdeio-msits/CMakeL10n.txt b/lib/tdeio-msits/CMakeL10n.txt
new file mode 100644
index 0000000..81e35fd
--- /dev/null
+++ b/lib/tdeio-msits/CMakeL10n.txt
@@ -0,0 +1,6 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kchmviewer-desktops"
+ SOURCES *.desktop *.protocol
+)
diff --git a/lib/tdeio-msits/CMakeLists.txt b/lib/tdeio-msits/CMakeLists.txt
index 203fe5c..9dd5ec2 100644
--- a/lib/tdeio-msits/CMakeLists.txt
+++ b/lib/tdeio-msits/CMakeLists.txt
@@ -31,12 +31,13 @@ tde_add_kpart( tdeio_msits
##### other data
-install(
- FILES msits.protocol
+tde_create_translated_desktop(
+ SOURCE msits.protocol
DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}.desktop
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
diff --git a/lib/tdeio-msits/msits.protocol b/lib/tdeio-msits/msits.protocol
index 835e935..e58ed02 100644
--- a/lib/tdeio-msits/msits.protocol
+++ b/lib/tdeio-msits/msits.protocol
@@ -7,19 +7,5 @@ reading=true
listing=Name,Type,Size
defaultMimetype=text/html
Description=A tdeioslave for displaying WinHelp files
-Description[da]=En tdeioslave til visning af Windows hjælpefiler
-Description[de]=Ein Ein-/Ausgabemodul zur Anzeige von WinHelp-Dateien
-Description[es]=Un tdeioslave para mostrar archivos WinHelp
-Description[et]=WinHelp-failide kuvamise IO-moodul
-Description[fr]=Un module d'entrée / sortie pour l'affichage des fichiers WinHelp
-Description[hu]=TDE-protokoll WinHelp-fájlok megjelenítéséhez
-Description[it]=Un tdeioslave per mostrare i file WinHelp
-Description[nl]=Een tdeioslave voor het weergeven van WinHelp-bestanden
-Description[pl]=tdeioslave do pokazywania plików WinHelp
-Description[pt]=A 'tdeioslave' para mostrar ficheiros WinHelp
-Description[pt_BR]=Um tdeioslave para exibir arquivos WinHelp
-Description[ru]=Обработчик ввода-вывода для файлов WinHelp
-Description[sv]=En I/O-slav för att visa WinHelp-filer
-Description[xx]=xxA tdeioslave for displaying WinHelp filesxx
Icon=help
X-DocPath=tdeioslave/msits/index.html