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§

FileCacheLanguagePackSource
LanguagePackAutoUpdateOptions
LanguagePackAutoUpdateOutcome
LanguagePackFile
LanguagePackInstallOptions
LanguagePackManifest
LanguagePackManifestEntry
LanguagePackRemoteUpdateOptions
LanguagePackStatus
LanguagePackStatusEntry
LanguageStore
MinimalFallbackLanguagePackSource

Enums§

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

Traits§

LanguagePackSource

Functions§

auto_update_language_pack
default_language_pack_cache_root
ensure_allowed_language_pack_remote_scheme
import_language_pack_dir
install_language_pack_files
language_pack_manifest_url
language_pack_sha256_hex
language_pack_status
normalize_language_id
Normalize an OpenD app language id the same way C++ FTQueryLanguage does.
record_language_pack_update_error
translate_embedded_key
translate_embedded_key_with_template
translate_runtime_key
translate_runtime_key_with_template
update_language_pack_from_endpoint