Language: Difference between revisions

1,675 bytes added ,  1 year ago
Updated with further information.
(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...")
 
(Updated with further information.)
Line 1:
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.
 
= Layout =
== PS432-bit ==
=== LanguageResource ===
{| class="wikitable"
! Offset !! Size !! 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 || LanguageResourceHashEntry * || mpEntries || || LanguageResourceHashEntry formatEntries ||
|}
 
=== LanguageHashEntry ===
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || uint32_t || muHash || Hash ||of untranslated string (string ID) ||
|-
| 0x4 || 0x4 || CgsUtf8 * || mpString || Translated ||UTF-8 string ||
|}
== PS4 ==
 
== 64-bit ==
=== LanguageResource ===
{| class="wikitable"
! Offset !! Size !! 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 || 0x8 || LanguageResourceHashEntry * || mpEntries || || LanguageResourceHashEntry formatEntries ||
|}
=== LanguageHashEntry ===
{| class="wikitable"
! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x80x4 || uint64_tuint32_t || muHash || Hash ||of untranslated string (string ID) ||
|-
| 0x4 || 0x4 || || || padding ||
|-
| 0x8 || 0x8 || CgsUtf8 * || mpString || Translated ||UTF-8 string ||
|}
 
= Enumerations =
=== CgsLanguage::Sku::ELanguage ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
| 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
| 0x0 || 0x8 || uint64_t || muHash || || ||
|-
| E_LANGUAGE_TOTAL || 25 ||
| 0x8 || 0x8 || CgsUtf8 * || mpString || || ||
|}