Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Translator - MetaTrader 5 Library | Trading Script Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Translator - library for MetaTrader 5

This class is designed for message localization in MQL5 programs. In short, everything output in the log with the help of the Print() function and the text messages displayed in Alert(), Comment(), MessageBox() can be done in multiple languages ​​in one code.

As an illustrative example, the Sample.mq5 script and its two attached language files can be translated into Russian and Japanese. Result of the script working (first it is run in the chart, the parameters are translated into Russian, then into Japanese):

Translator - library for MetaTrader 5

suggestion:


Attachment download

📎 translator.mqh (8.05 KB)

📎 languagesenum.mqh (1.33 KB)

📎 sample.mq5 (1.75 KB)

Source: MQL5 #1484

Verification code Refresh