VsTranslator icon indicating copy to clipboard operation
VsTranslator copied to clipboard

Double translation?

Open tarelka95 opened this issue 6 years ago • 3 comments

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.

default

tarelka95 avatar Dec 13 '18 13:12 tarelka95

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

Kerwin1202 avatar Dec 13 '18 15:12 Kerwin1202

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.

tarelka95 avatar Dec 13 '18 17:12 tarelka95

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.

Kerwin1202 avatar Dec 14 '18 01:12 Kerwin1202