|
21.
|
|
|
As Ren'Py is a visual novel engine, we expect most translation to involve dialogue. Ren'Py includes a flexible framework that allows dialogue to be split, combined, reordered, and omitted entirely.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:69
|
|
22.
|
|
|
Translation Units
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:74
|
|
23.
|
|
|
The fundamental unit of translation is a block of zero or more translatable statements, optionally followed by a single say statement. Translatable statements are the voice and nvl statements. For example take the following game::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:76
|
|
24.
|
|
|
This is broken up into multiple translation units. Each unit has an identifier assigned to it, with the identifier being generated from the label preceding the unit, and the code inside the unit. (If multiple units would be assigned the same translation number, a serial number to the second and later units to distinguish them.)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:90
|
|
25.
|
|
|
In the example above, the first unit generated is assigned the identifier start_636ae3f5, and contains the statement::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:96
|
|
26.
|
|
|
The second unit is given the identifier start_bd1ad9e1m and contains::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:101
|
|
27.
|
|
|
The third unit has the identifier start_9e949aac, and contains::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:105
|
|
28.
|
|
|
These units are created automatically by Ren'Py when the game script is loaded.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:109
|
|
29.
|
|
|
Translate Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:113
|
|
30.
|
|
|
When you generate translations for a language, Ren'Py will generate a translate statement corresponding to each translation unit. When translating the code above, Ren'Py will generate::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:115
|