Language: Difference between revisions
m
Normalization
(Conform to format documentation guidelines and add CgsUtf8 typedef.) |
m (Normalization) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1:
{{ParadiseResourceTypeInfobox
| name = Language
| example = [[File:Paradise Language Example.png|frameless|320px]]<br />English.lang viewed in Bundle Manager.
| resourcenames = *.lang<br /><sup><small>*Language name, e.g. English_UK</small></sup>
| id = 0x27
| category = Generic
| memdist = Main Memory only
| editor = Yes<br />Use [https://github.com/burninrubber0/Bundle-Manager/releases/latest Bundle Manager]
Language resources contain the majority of strings displayed in the game, as well as all non-English strings. Each Language resource contains the same IDs (for the most part) so a single string ID may be translated into multiple languages. Strings are stored as UTF-8 character arrays.
= Structures =
== 32-bit ==▼
=== CgsResource::LanguageResource ===
▲==== 32-bit ====
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || uint32_t || meLanguageID || Language file ID || See [[#CgsLanguage::Sku::ELanguage
|-
| 0x4 || 0x4 || uint32_t || muSize || Number of entries ||
|-
| 0x8 || 0x4 || [[#CgsResource::LanguageResourceHashEntry
|}
==== 64-bit ====▼
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || uint32_t ||
|-▼
▲|}
▲== 64-bit ==
! Offset !! Length !! Type !! Name !! Description !! Comments▼
|-
| 0x4 || 0x4 || uint32_t || muSize || Number of entries ||
|-
| 0x8 || 0x8 || [[#CgsResource::LanguageResourceHashEntry
|}
=== CgsResource::LanguageResourceHashEntry ===
==== 32-bit ====
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
Line 41 ⟶ 42:
| 0x0 || 0x4 || uint32_t || muHash || Hash of untranslated string (string ID) ||
|-
| 0x4 || 0x4 || [[CgsUtf8]]* || mpString ||
|}
====
{| class="wikitable"
▲! Offset !! Length !! Type !! Name !! Description !! Comments
▲|-
| 0x0 || 0x4 || uint32_t || muHash || Hash of untranslated string (string ID) ||
|-
| 0x4 || 0x4 || || || Padding ||
|-
| 0x8 || 0x8 || [[CgsUtf8]]* ||
|}
|