Merge pull request #6 from OdyX/dev-level-help-translation-infra

"Help" files and "Level scene description" files gettext-based translation infrastructure
dev-ui
Piotr Dziwiński 2013-11-10 13:53:38 -08:00
commit 1a06bcee23
2129 changed files with 142174 additions and 5700 deletions

View File

@ -10,7 +10,6 @@ endif()
install(DIRECTORY ai DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
install(DIRECTORY fonts DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
install(DIRECTORY help DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
install(DIRECTORY icons DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
install(DIRECTORY models DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
#install(DIRECTORY models-new DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
@ -18,4 +17,5 @@ install(DIRECTORY music DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
install(DIRECTORY sounds DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
install(DIRECTORY textures DESTINATION ${COLOBOT_INSTALL_DATA_DIR})
add_subdirectory(help)
add_subdirectory(levels)

33
help/CMakeLists.txt Normal file
View File

@ -0,0 +1,33 @@
cmake_minimum_required(VERSION 2.8)
set(LEVELS_I18N_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../levels-i18n/)
# Handle all help categories' translations
foreach(LEVEL_CODENAME cbot;object)
set(SCENEFILE)
set(SCENEDEST)
set(PODIR "${LEVEL_CODENAME}/po/")
set(HELPDIR "${LEVEL_CODENAME}/")
set(HELPDEST "${LEVEL_CODENAME}")
message(STATUS "Managing translations for '${LEVEL_CODENAME}' help category")
include(${LEVELS_I18N_PATH}/CMakeLists.txt)
endforeach()
set(LEVEL_CODENAME generic)
set(SCENEFILE)
set(SCENEDEST)
set(PODIR "${LEVEL_CODENAME}/po/")
set(HELPDIR "${LEVEL_CODENAME}/")
set(HELPDEST "")
message(STATUS "Managing translations for '${LEVEL_CODENAME}' help category")
include(${LEVELS_I18N_PATH}/CMakeLists.txt)
set(LEVEL_CODENAME bots)
set(SCENEFILE)
set(SCENEDEST)
set(PODIR "${LEVEL_CODENAME}/po/")
set(HELPDIR "${LEVEL_CODENAME}/")
set(HELPDEST "object/")
message(STATUS "Managing translations for '${LEVEL_CODENAME}' help category")
include(${LEVELS_I18N_PATH}/CMakeLists.txt)

1121
help/bots/po/bots.pot Normal file

File diff suppressed because it is too large Load Diff

1121
help/bots/po/de.po Normal file

File diff suppressed because it is too large Load Diff

1121
help/bots/po/fr.po Normal file

File diff suppressed because it is too large Load Diff

1121
help/bots/po/pl.po Normal file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More