Let's discuss joint projects in the editor - why and where they are going - page 13
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
There has already been an answer. Through compilation language defines. Things that should have multiple languages - settings for example - are written for each language.
I'm a bit confused, is it possible to change the language of EA settings programmatically depending on the terminal language ???
Programmatically at the program level - no. At compile level, yes.
Programmatically at the programme level, no. At compile level, yes.
I.e. if I have 54 settings in the program and I need to make several versions of the program in different languages, with different descriptions and different links, I do not need to translate and combine settings for each version?
I.e. if I have 54 settings in the program and I need to make several versions of the program in different languages, with different descriptions and different links, do I need to translate the settings and combine them for each version?
Yes, I do.
Everything that is displayed by the program during its operation can be linked to the terminal language, and the settings - only to the code itself. To do this, you need to make several versions of input parameters in the program and select the desired settings language by defining them during compilation.
I have to.
Everything that is output by a program when it is running can be tied to the terminal language, and the settings are only tied to the code itself. To do this, you need to make several versions of input parameters in the program and select the desired settings language by defines when compiling.
I have no idea how... I seem to have a gap in my knowledge, can I ask for a small example ?
I have no idea how... I seem to have a gap in my knowledge, can I ask for a small example ?
Example:
Example:
Thank you! I see, I thought there was something simpler...
If I forgot to take out the Russian version, I took it out, compiled the English one, if I forgot to take it out, I got a file in the same language...
I'm doing things a bit differently now, I'm trying to eliminate the mistakes I made on the fly...
I made my template-project and it looks like this
Project Expert
It scares me a bit with what activity the developers started to do everything in projects and immediately made the program description on the main page of the project, which takes priority over the description which is in the code...
There is a risk that to create different versions of one program you have to make different projects and generate a bunch of folders and files...
Why? Well, the pluses have done so historically, since the computers were weak and used split compilation. In addition you can pass to the customer in compiled format + headers in .h
Simple, it's convenient.
And on the plus side, it's still relevant today.
There's already been an answer. Through the compilation language define. Things that should have more than one language - settings for example - are written for each language.
I have long been putting settings in a separate .mqh file. There is a multiplatform core .mq4/5, it is ideally invariant, except for plugins, most of which are also multiplatform class definitions.
With this approach it is much easier to make a new robot, you just need to inherit from the signal class and write your own algorithm of opening/closing. And some cosmetics + sugar.
Made it all my own, as the classes concerning EA creation are one of the few things I strongly dislike about SB.
Thank you! I see, I thought there was something simpler...
If I forgot to take out the Russian version, I downloaded the excerpt, compiled the English one, if I forgot to take out the excerpt, I got a file in the same language...
I'm doing things a bit differently now, I'm trying to eliminate the mistakes I made on the fly...
I made my template-project and it looks like this
Project Expert
It scares me a bit with what activity the developers started to do everything in projects and immediately made the program description on the main page of the project, which takes priority over the description which is in the code...
This threatens that to create different versions of the same program you will have to make different projects and multiply a lot of folders and files...
I agree, I don't write anything in this field, it's superfluous.