Language: Difference between revisions

2,223 bytes added ,  7 months ago
m
Normalization
(Created page with "=== LanguageResource === {| class="wikitable" ! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments |- | 0x0 || 0x4 || uint32_t || meLanguageID || || || |- | 0x4 || 0x4 || uint32_t || muSize || || || |- | 0x8 || 0x4 || LanguageResourceHashEntry * || mpEntries || || LanguageResourceHashEntry format || |} === LanguageHashEntry === {| class="wikitable" ! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments |- | 0x0...")
 
m (Normalization)
 
(12 intermediate revisions by the same user not shown)
Line 1:
{{ParadiseResourceTypeInfobox
=== LanguageResource ===
| 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 =
=== CgsResource::LanguageResource ===
==== 32-bit ====
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || uint32_t || meLanguageID || Language ||file ID || See [[#CgsLanguage::Sku::ELanguage|ELanguage]]
|-
| 0x4 || 0x4 || uint32_t || muSize || Number ||of entries ||
|-
| 0x8 || 0x4 || [[#CgsResource::LanguageResourceHashEntry |LanguageResourceHashEntry]]* || mpEntries || || LanguageResourceHashEntry formatEntries ||
|}
 
=== LanguageHashEntry ===
==== 64-bit ====
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || uint32_t || muHashmeLanguageID || Language ||file ID || See [[#CgsLanguage::Sku::ELanguage|ELanguage]]
|-
| 0x4 || 0x4 || CgsUtf8 *uint32_t || mpStringmuSize || Number ||of entries ||
|-
| 0x8 || 0x8 || [[#CgsResource::LanguageResourceHashEntry|LanguageResourceHashEntry]]* || mpEntries || Entries ||
|}
== PS4 ==
 
=== CgsResource::LanguageResourceHashEntry ===
=== LanguageResource ===
==== 32-bit ====
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || uint32_t || meLanguageIDmuHash || Hash ||of untranslated string (string ID) ||
|-
| 0x4 || 0x4 || uint32_t[[CgsUtf8]]* || muSizempString || Translated ||UTF-8 string ||
|}
 
==== 64-bit ====
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x80x0 || 0x80x4 || LanguageResourceHashEntry *uint32_t || mpEntriesmuHash || Hash ||of untranslated string LanguageResourceHashEntry(string formatID) ||
|-
| 0x00x4 || 0x80x4 || uint64_t || muHash || || Padding ||
|-
| 0x8 || 0x8 || [[CgsUtf8 ]]* || mpString || Translated ||UTF-8 string ||
|}
 
=== LanguageHashEntry ===
= Enumerations =
=== CgsLanguage::Sku::ELanguage ===
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
! Name !! Value !! Comments
| 0x0 || 0x8 || uint64_t || muHash || || ||
|-
| E_LANGUAGE_INVALID || -1 ||
|-
| E_LANGUAGE_ARABIC || 0 ||
|-
| E_LANGUAGE_CHINESE || 1 ||
|-
| E_LANGUAGE_CHINESE_SIMPLIFIED || 2 || Bundle 0012
|-
| E_LANGUAGE_CHINESE_TRADITIONAL || 3 || Bundle 0013
|-
| E_LANGUAGE_CZECH || 4 || Bundle 0010
|-
| E_LANGUAGE_DANISH || 5 ||
|-
| E_LANGUAGE_DUTCH || 6 ||
|-
| E_LANGUAGE_ENGLISH_US || 7 || Bundle 0001
|-
| E_LANGUAGE_ENGLISH_UK || 8 || Bundle 0002
|-
| E_LANGUAGE_FINNISH || 9 ||
|-
| E_LANGUAGE_FRENCH || 10 || Bundle 0003
|-
| E_LANGUAGE_GERMAN || 11 || Bundle 0006
|-
| E_LANGUAGE_GREEK || 12 || Bundle 0008
|-
| E_LANGUAGE_HEBREW || 13 ||
|-
| E_LANGUAGE_HUNGARIAN || 14 || Bundle 0011
|-
| E_LANGUAGE_ITALIAN || 15 || Bundle 0005
|-
| E_LANGUAGE_JAPANESE || 16 || Bundle 0007
|-
| E_LANGUAGE_KOREAN || 17 ||
|-
| E_LANGUAGE_NORWEGIAN || 18 ||
|-
| E_LANGUAGE_POLISH || 19 || Bundle 0009
|-
| E_LANGUAGE_PORTUGUESE_BRAZIL || 20 ||
|-
| E_LANGUAGE_PORTUGUESE_PORTUGAL || 21 ||
|-
| E_LANGUAGE_SPANISH || 22 || Bundle 0004
|-
| E_LANGUAGE_SWEDISH || 23 ||
|-
| E_LANGUAGE_THAI || 24 || Bundle 0014
|-
| E_LANGUAGE_TOTAL || 25 ||
| 0x8 || 0x8 || CgsUtf8 * || mpString || || ||
|}