Added automatic reading of languages list

This commit is contained in:
Marco Ciampa 2015-09-18 22:16:34 +02:00
parent 46b5e7a85d
commit 3a8bef69aa
2 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,8 @@ project( kicad-i18n NONE )
find_package( Gettext REQUIRED )
set( LANG_ARRAY ca cs de es fi fr hu it ja ko nl pl pt ru sl sv zh_CN )
file(STRINGS LINGUAS LANG_ARRAY REGEX "^[^#].*")
foreach( LANG ${LANG_ARRAY} )
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${LANG})

View File

@ -1,3 +1,5 @@
# please keep this list sorted alphabetically
#
bg
ca
cs