mirror of
https://github.com/znc/znc.git
synced 2026-07-07 02:11:20 +02:00
Add framework for translating ZNC to different languages
This commit is contained in:
+14
-1
@@ -75,10 +75,19 @@ else()
|
||||
set(moddisable_modtcl true)
|
||||
endif()
|
||||
|
||||
set(actual_modules)
|
||||
|
||||
foreach(modpath ${all_modules})
|
||||
string(REGEX MATCH "/([-a-zA-Z0-9_]+)\\.([a-z]+)$" unused "${modpath}")
|
||||
if(NOT "${modpath}" MATCHES "/([-a-zA-Z0-9_]+)\\.([a-z]+)$")
|
||||
continue()
|
||||
endif()
|
||||
set(mod "${CMAKE_MATCH_1}")
|
||||
set(modtype "${CMAKE_MATCH_2}")
|
||||
if(mod STREQUAL "CMakeLists" OR mod STREQUAL "Makefile")
|
||||
continue()
|
||||
endif()
|
||||
|
||||
list(APPEND actual_modules "${modpath}")
|
||||
|
||||
set(modenabled true)
|
||||
|
||||
@@ -107,5 +116,9 @@ foreach(modpath ${all_modules})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(HAVE_I18N)
|
||||
add_subdirectory(po)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY data/
|
||||
DESTINATION "${CMAKE_INSTALL_DATADIR}/znc/modules")
|
||||
|
||||
Reference in New Issue
Block a user