GFx Translator
UFG::UIGfxTranslator
UIGfxTranslator is an extension of the Scaleform::GFx::Translator class, which handles translation for the game’s dictionary map.
- All dictionaries are loaded from files that contains
UILocalizationChunk
.
Methods
Method | Description |
---|---|
Translate | Looks up and returns a translation string for the given key. |
Translate
const char* Translate(uint32_t hash);
Example:
// UFG::qStringHash32("SGTITLE_UNCLE_PO")const char* str0 = m_translator->Translate(0xA0A751E2); // "UNCLE PO" (English Translation)const char* str1 = m_translator->Translate(0x12345678); // nullptr (failed to find)