Implementing Chinese-English Localization in FMZ Strategies
Summary
This FMZ guide explains how to display strategy names and parameter descriptions in Chinese or English, and how to localize Markdown descriptions and usage instructions. It describes paired Chinese and English text formats for labels and a translation marker for other text, with a page refresh required after changing the selected language. The guide also notes that string arguments in strategy functions can use the same translation mechanism, including log messages, status displays, and error text.
Examples in JavaScript, Python, Rust, and C++ show localized logging and a status table with translated headings and values. They also illustrate an exception or panic message using localized text. Button labels are handled as a special case in the examples and do not use the translation marker. This is platform documentation rather than a trading method: it teaches interface localization for strategy users and operators. It does not discuss market logic, testing, or trading performance.
Key ideas
- Strategy names and parameter descriptions can pair Chinese and English text for automatic display selection.
- A translation marker can localize Markdown descriptions and other user-facing strings.
- Log messages, status displays, and error messages can also contain localized text.
- The guide demonstrates the approach in JavaScript, Python, Rust, and C++.
- The examples indicate that button labels use a different format from other translated strings.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.