Open main menu

Difference between revisions of "Supporting GUI Translation/Translations DAT Format"

Update description for new format.
(Description of the translations.dat binary file)
 
(Update description for new format.)
Line 1: Line 1:
__NOTOC__
The ''translations.dat'' file is generated from the ''po/*.po'' files in the ScummVM source code repository. It contains the data needed by ScummVM to display a translated GUI.
The ''translations.dat'' file is generated from the ''po/*.po'' files in the ScummVM source code repository. It contains the data needed by ScummVM to display a translated GUI.


Line 10: Line 12:
# a block with the translated messages for language n
# a block with the translated messages for language n


The following description is valid for version 1 of the file format.
The following description is valid for version 2 of the file format. Version 1 is very similar but does not contain the context strings in the [[#Translated messages|translated messages]].


== The header ==
== The header ==
Line 104: Line 106:
|-
|-
|String  || ??    ||            || Translated message
|String  || ??    ||            || Translated message
|-
|uint16 || 2    || BE        || Size (in bytes) of the context string (including the terminating '\0').<br>Size is 0 when there is no context.
|-
|String  || ??    ||            || Context string (if a context is defined).
|}
|}
TrustedUser
2,147

edits