Localization Header 2 (.LH2)

The .LH2 format is a string table used for localization. Strings are typically encoded in Windows-1252.

Header

Offset Type Name Description
0x00 Char[4] Magic "2HCL" signature.
0x04 Byte[4] Padding Skipped.
0x10 UInt32 EntryCount Number of string IDs.
0x14 UInt32 TableCount Number of language tables (columns).

Data Structure

The file uses a structure of offset arrays followed by string data. All offsets are absolute.

1. ID Array

Located at 0x20.

2. Pointer Matrix

Located immediately after the ID Array.

3. String Data

Strings are stored at the offsets pointed to by the matrix. Strings are null-terminated and typically use cp1252 encoding.