Skip to main content

Module localization

Module localization 

Source
Expand description

Stable API — C++ language-pack compatible text lookup.

Used by public API handlers that receive FTStringDefine.StringID from backend protocols and must project it to the same user-visible string as C++ OpenD. C++ OpenD-compatible language-pack lookup.

C++ loads Resources/Languages/{zh_cn,en}/*.ini at GUI startup and then resolves FTStringDefine.StringID through core::lang::tr(...). Refs:

  • FutuOpenD/Src/FTGatewayGui/Application.cpp:66-99
  • FutuOpenD/Src/NNProtoCenter/Basic/MultiLanguage/FTQueryLanguage.cpp:285-334
  • FutuOpenD/Src/NNProtoCenter/Basic/MultiLanguage/FTQueryLanguage.cpp:380-401

Structs§

LanguageStore

Enums§

LanguageId
C++ language ids that are actually accepted by FTQueryLanguage.

Functions§

normalize_language_id
Normalize an OpenD app language id the same way C++ FTQueryLanguage does.
translate_embedded_key
translate_embedded_key_with_template