summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-04-04 19:59:50 +0200
committerSlávek Banko <[email protected]>2020-04-04 20:00:18 +0200
commit7e6b5127982acb4e318fc98bb5b5e711e5746ce5 (patch)
tree22131fe68aedd1a76a16da63bd49c1bff3829fd6 /doc
parent274f9be9365f7bf244a3150c971bc2ee94185cf2 (diff)
downloadfilelight-7e6b5127982acb4e318fc98bb5b5e711e5746ce5.tar.gz
filelight-7e6b5127982acb4e318fc98bb5b5e711e5746ce5.zip
Move translations to a new directory layout.
Add support for LINGUAS for listing translations to install. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 8e90c28fb2501009f259a084bb2e30388ab8e85e)
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