Colobot Gold 0.1.2-alpha

dev-ui colobot-gold-0.1.2-alpha
Piotr Dziwinski 2013-11-26 00:40:29 +01:00
commit 9730bd20f5
2623 changed files with 169037 additions and 5798 deletions

View File

@ -1,48 +0,0 @@
*IN-DEVELOPEMENT*
----------------
Make licence explicit: it is GPLv3 as per the conditions of the source
code dump from Epsitec.
Fix URL of colobot repository.
Render README for Markdown.
Ease git-based releasing.
Handle levels iternationalisation with po4a.
Drop translations as they are built from colobot itself.
----------------
2012-10-05
Release for Colobot Gold pre-alpha
Updated scene files to ones from colobot-level repository
Fixed incorrectly converted relief files
----------------
2012-09-22
Updated level files (resource paths and extensions)
----------------
2012-09-13
Added models converted to new text format
Added translation files
Removed unused files
----------------
2012-08-03
Added fonts
Changed other texture names to lowercase
----------------
2012-07-27
Changed indexed and grayscale PNG images to RGB
----------------
2012-07-22
Initial release made from files from original package by Epsitec
Minor changes:
- some files were not copied, as unnecessary, or dubious
- changed file names to lowercase
- changed all texture and image formats to PNG

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)

110
README.i18n.md Normal file
View File

@ -0,0 +1,110 @@
# Colobot data translation
The translation of Colobot level titles, level hierarchy and help files
is managed through [gettext](https://www.gnu.org/software/gettext/).
## Level scene description files
Level scene description files have english headers that are used in the
Colobot interface to describe the levels. Level scene description files
are levels/$level/scene.txt and translations are handled in the
level-specific po/ directory: levels/$levels/po/. The .pot file is the
source translation file, the *.po files are the translations.
## Help files
Helpfiles are divided in two categories:
* Generic helpfiles, about the game, the objects, the syntax, etc. These
are stored in help/ , in four sub-categories: generic, bots, object
and bots.
* Level-specific helpfiles, about the level, instructions, example
programs, etc. These are stored in levels/$level/help/.
Helpfiles have their source in english, always stored in the E/
subdirectory. To ensure retro-compatibility, existing translations have
not been integrated in the gettext-based translation mechanisms and are
stored in their respective one-character directories. New translations
snd updates to existing ones should really use the gettext-based
translation.
## Colobot syntax
Colobot parses a specific syntax to enable some formatting in the game
interface.
To ease translation, this syntax is transformed into a pseudo-HTML
syntax in the gettext files.
Here is the table of transformations and their meanings:
<table>
<thead>
<tr>
<td>Transformed label</td>
<td>Colobot native label</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><tt>&lt;button $buttonID/&gt;</tt></td>
<td><tt>\button $buttonID;</tt></td>
<td>Indicates a UI button. <tt>$buttonID</tt> is a number</td>
</tr>
<tr>
<td><tt>&lt;key $keyCode/&gt;</tt></td>
<td><tt>\key $keyCode;</tt></td>
<td>Indicates a keyboard key. <tt>$keyCode</tt> is a code, such as <tt>action</tt></td>
</tr>
<tr>
<td><tt>&lt;format $formatID&gt;Formatted text&lt;/format&gt;</tt></td>
<td><tt>\$formatID;Formatted text\norm;</tt></td>
<td>Changes text formatting in the marker. <tt>$formatID</tt> can be <tt>const</tt>, <tt>type</tt>, <tt>token</tt> or <tt>key</tt>.</td>
</tr>
<tr>
<td><tt>&lt;$formatID/&gt;</tt></td>
<td><tt>\$formatID;</tt></td>
<td>Toggle text formatting. <tt>$formatID</tt> can be <tt>const</tt>, <tt>type</tt>, <tt>token</tt>, <tt>key</tt> or <tt>norm</tt>.</td>
</tr>
<tr>
<td><tt>&lt;a $link&gt;Link text&lt;/a&gt;</tt></td>
<td><tt>\l;Link text\u $link;</tt></td>
<td>Direct hyper-link. <tt>$link</tt> can be direct or in a category (such as <tt>cbot\abstime</tt>)</td>
</tr>
<tr>
<td><tt>&lt;a $linkcat|$link&gt;Link text&lt;/a&gt;</tt></td>
<td><tt>\l;Link text\u $linkcat\$link;</tt></td>
<td>In-category hyper-link, <tt>linkcat</tt> can only be <tt>cbot</tt>, <tt>bots</tt> or <tt>object</tt>.</td>
</tr>
<tr>
<td><tt>&lt;code&gt;CBot code&lt;/code&gt;</tt></td>
<td><tt>\c;CBot code\n;</tt></td>
<td>Code formatting</td>
</tr>
<tr>
<td><tt>&lt;s/&gt;</tt></td>
<td><tt>\s;</tt></td>
<td>Typewriter line indicator (usually verbatim code)</td>
</tr>
<tr>
<td><tt>&lt;t/&gt;</tt></td>
<td><tt>\t;</tt></td>
<td>Title line indicator</td>
</tr>
<tr>
<td><tt>&lt;b/&gt;</tt></td>
<td><tt>\b;</tt></td>
<td>Subtitle line indicator</td>
</tr>
<tr>
<td><tt>&lt;c/&gt;</tt></td>
<td><tt>\c;</tt></td>
<td>Typewriter formatting toggle</td>
</tr>
<tr>
<td><tt>&lt;n/&gt;</tt></td>
<td><tt>\n;</tt></td>
<td>Normal formatting toggle</td>
</tbody>
</table>

View File

@ -1,19 +1,26 @@
# Colobot Data Files
## *IN-DEVELOPEMENT* Release
This package contains the data files for the Colobot project (https://github.com/colobot/colobot).
It includes (or will include):
* textures, background images, etc.
* model files,
This repository contains the data files for the Colobot project (https://github.com/colobot/colobot).
It currently includes:
* mission files
* textures
* model files
* sounds and music
* ai scripts
* in-game help
* some documents describing the formats
* conversion scripts and tools for packaging
This is a development release that will be modified and updated as necessary.
File paths, names, formats are subject to change, so don't take them for granted.
All packages released will be labeled with date of release in format RRRR-MM-DD and released as often as
changes are made in the files.
# Installation
CMake project files in main and data repositories are integrated and when invoked during compilation,
produce output files to be installed. As of 0.1.2-alpha, the generated files are different from source
files. Consequently, running the game with data files directly from this source repository is not supported.
Please see the [INSTALL.md](https://github.com/colobot/colobot/blob/master/INSTALL.md) instructions
in main repository for details.
Some details of how data file translation is achieved can be found in
[README.i18n.md](https://github.com/colobot/colobot-data/blob/master/README.i18n.md) file.
# License

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

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