summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-04 19:59:50 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-04 19:59:50 +0200
commit8e90c28fb2501009f259a084bb2e30388ab8e85e (patch)
treef813bdc1e28abf47f525b635390b7abb3fcca90d /doc
parentfc6fd4701c95d426dc450e9544248dd36ad64343 (diff)
downloadfilelight-8e90c28fb2501009f259a084bb2e30388ab8e85e.tar.gz
filelight-8e90c28fb2501009f259a084bb2e30388ab8e85e.zip
Move translations to a new directory layout.
Add support for LINGUAS for listing translations to install. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt15
-rw-r--r--doc/en/CMakeLists.txt (renamed from doc/filelight/CMakeLists.txt)0
-rw-r--r--doc/en/config_appear.png (renamed from doc/filelight/config_appear.png)bin11948 -> 11948 bytes
-rw-r--r--doc/en/config_scan.png (renamed from doc/filelight/config_scan.png)bin12905 -> 12905 bytes
-rw-r--r--doc/en/filemap.png (renamed from doc/filelight/filemap.png)bin12209 -> 12209 bytes
-rw-r--r--doc/en/index.docbook (renamed from doc/filelight/index.docbook)0
-rw-r--r--doc/en/main.png (renamed from doc/filelight/main.png)bin19721 -> 19721 bytes
7 files changed, 13 insertions, 2 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 03be086..70d6348 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,3 +1,14 @@
-# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
+string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
-tde_auto_add_subdirectories( )
+foreach( _dir ${_dirs} )
+ if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} AND
+ EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt )
+ if( "${_dir}" STREQUAL "en" OR
+ "${_dir}" STREQUAL "man" OR
+ "${_linguas}" MATCHES "^;*$" OR
+ ";${_linguas};" MATCHES ";${_dir};" )
+ add_subdirectory( ${_dir} )
+ endif( )
+ endif()
+endforeach()
diff --git a/doc/filelight/CMakeLists.txt b/doc/en/CMakeLists.txt
index b003b84..b003b84 100644
--- a/doc/filelight/CMakeLists.txt
+++ b/doc/en/CMakeLists.txt
diff --git a/doc/filelight/config_appear.png b/doc/en/config_appear.png
index 794fa71..794fa71 100644
--- a/doc/filelight/config_appear.png
+++ b/doc/en/config_appear.png
Binary files differ
diff --git a/doc/filelight/config_scan.png b/doc/en/config_scan.png
index 05f50d3..05f50d3 100644
--- a/doc/filelight/config_scan.png
+++ b/doc/en/config_scan.png
Binary files differ
diff --git a/doc/filelight/filemap.png b/doc/en/filemap.png
index 4686996..4686996 100644
--- a/doc/filelight/filemap.png
+++ b/doc/en/filemap.png
Binary files differ
diff --git a/doc/filelight/index.docbook b/doc/en/index.docbook
index 7152d21..7152d21 100644
--- a/doc/filelight/index.docbook
+++ b/doc/en/index.docbook
diff --git a/doc/filelight/main.png b/doc/en/main.png
index 36d2396..36d2396 100644
--- a/doc/filelight/main.png
+++ b/doc/en/main.png
Binary files differ