Browse Source

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>
pull/5/head
Slávek Banko 2 years ago
parent
commit
6f3d0003b3
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 5
      CMakeLists.txt
  2. 22
      doc/CMakeLists.txt
  3. 15
      doc/tdeioslave/CMakeLists.txt
  4. 2
      src/CMakeL10n.txt
  5. 1
      translations/CMakeLists.txt
  6. 14
      translations/messages/CMakeLists.txt
  7. 13853
      translations/messages/bg.po
  8. 15755
      translations/messages/ca.po
  9. 13881
      translations/messages/da.po
  10. 13275
      translations/messages/de.po
  11. 14408
      translations/messages/es.po
  12. 13900
      translations/messages/fr.po
  13. 16025
      translations/messages/hu.po
  14. 13719
      translations/messages/it.po
  15. 14228
      translations/messages/ja.po
  16. 12769
      translations/messages/kvpnc.pot
  17. 14405
      translations/messages/nl.po
  18. 15217
      translations/messages/pl.po
  19. 15220
      translations/messages/pt_BR.po
  20. 15671
      translations/messages/ru.po
  21. 14193
      translations/messages/sk.po
  22. 16000
      translations/messages/sv.po
  23. 15757
      translations/messages/tr.po
  24. 15324
      translations/messages/zh_CN.po

5
CMakeLists.txt

@ -69,9 +69,8 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
##### directories
add_subdirectory( src )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
##### write configure files

22
doc/CMakeLists.txt

@ -1,6 +1,18 @@
add_subdirectory( de )
add_subdirectory( en )
add_subdirectory( fr )
add_subdirectory( sv )
add_subdirectory( man )
file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
list( REMOVE_ITEM _dirs "tdeioslave" )
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()
add_subdirectory( tdeioslave )

15
doc/tdeioslave/CMakeLists.txt

@ -1 +1,14 @@
add_subdirectory( en )
file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
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()

2
src/CMakeL10n.txt

@ -1,3 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "kvpnc" )
tde_l10n_create_template( "messages/kvpnc" )

1
translations/CMakeLists.txt

@ -0,0 +1 @@
tde_auto_add_subdirectories()

14
translations/messages/CMakeLists.txt

@ -0,0 +1,14 @@
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
foreach( _po ${po_files} )
get_filename_component( _lang ${_po} NAME_WE )
if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
if( "${_po}" MATCHES "^([^/]*)/.*" )
string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
else( )
set( _component "${PROJECT_NAME}" )
endif( )
tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
endif( )
endforeach( )

13853
translations/messages/bg.po

File diff suppressed because it is too large Load Diff

15755
translations/messages/ca.po

File diff suppressed because it is too large Load Diff

13881
translations/messages/da.po

File diff suppressed because it is too large Load Diff

13275
translations/messages/de.po

File diff suppressed because it is too large Load Diff

14408
translations/messages/es.po

File diff suppressed because it is too large Load Diff

13900
translations/messages/fr.po

File diff suppressed because it is too large Load Diff

16025
translations/messages/hu.po

File diff suppressed because it is too large Load Diff

13719
translations/messages/it.po

File diff suppressed because it is too large Load Diff

14228
translations/messages/ja.po

File diff suppressed because it is too large Load Diff

12769
translations/messages/kvpnc.pot

File diff suppressed because it is too large Load Diff

14405
translations/messages/nl.po

File diff suppressed because it is too large Load Diff

15217
translations/messages/pl.po

File diff suppressed because it is too large Load Diff

15220
translations/messages/pt_BR.po

File diff suppressed because it is too large Load Diff

15671
translations/messages/ru.po

File diff suppressed because it is too large Load Diff

14193
translations/messages/sk.po

File diff suppressed because it is too large Load Diff

16000
translations/messages/sv.po

File diff suppressed because it is too large Load Diff

15757
translations/messages/tr.po

File diff suppressed because it is too large Load Diff

15324
translations/messages/zh_CN.po

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save