diff options
author | Slávek Banko <[email protected]> | 2020-04-04 19:59:50 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-04-04 20:00:18 +0200 |
commit | 7e6b5127982acb4e318fc98bb5b5e711e5746ce5 (patch) | |
tree | 22131fe68aedd1a76a16da63bd49c1bff3829fd6 /doc | |
parent | 274f9be9365f7bf244a3150c971bc2ee94185cf2 (diff) | |
download | filelight-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.txt | 15 | ||||
-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) | bin | 11948 -> 11948 bytes | |||
-rw-r--r-- | doc/en/config_scan.png (renamed from doc/filelight/config_scan.png) | bin | 12905 -> 12905 bytes | |||
-rw-r--r-- | doc/en/filemap.png (renamed from doc/filelight/filemap.png) | bin | 12209 -> 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) | bin | 19721 -> 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 Binary files differindex 794fa71..794fa71 100644 --- a/doc/filelight/config_appear.png +++ b/doc/en/config_appear.png diff --git a/doc/filelight/config_scan.png b/doc/en/config_scan.png Binary files differindex 05f50d3..05f50d3 100644 --- a/doc/filelight/config_scan.png +++ b/doc/en/config_scan.png diff --git a/doc/filelight/filemap.png b/doc/en/filemap.png Binary files differindex 4686996..4686996 100644 --- a/doc/filelight/filemap.png +++ b/doc/en/filemap.png 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 Binary files differindex 36d2396..36d2396 100644 --- a/doc/filelight/main.png +++ b/doc/en/main.png |