Open tarelka95 opened 5 years ago
Hi, Because I am Chinese, and there are several translation platforms involved, these translation platforms do not have a unified language code. For example, English->en Chinese->zh-CN, combined with me is Chinese, so I only set a fixed Chinese
From the point of view of "temporary implementation", your position is correct.
From the point of view of the "source code", which will be further developed, it is necessary to make a "layer". As a "layer" is created by the example of OOP (Object-oriented programming): by creating its own class "unified language". Which interacts with the "dependent_platform language" through inheritance. This makes it easy to add other "translation platforms". If the "translation platform" does not have a language specified in the "unified language" class, then a default language is assigned ("Select a language" (non-preserving parameter) or "Chinese" or "English"), which is in "translation platform" everyone has it.
P.S. My English can be corrupted by the "translation platform", as my main Russian language. If you do not understand something, ask again. I will try to rephrase.
I understand what you said. I originally planned to do this at first, but since most of the platforms have a lot of languages, it will take a lot of time, so I simply didn't write this layer.
It would be desirable, that the function of "double translation" was not only from Chinese language. Specifically, copy the language from "3" to "4" line.