ManeraKai / simplytranslate_mobile

Privacy friendly frontend to Google Translate
https://manerakai.github.io/simplytranslate_mobile/
GNU General Public License v3.0
173 stars 15 forks source link

Switching translation languages #38

Closed Valdnet closed 3 years ago

Valdnet commented 3 years ago

Steps:

  1. Paste the text for translation.
  2. Switch translation languages with "<>".

The translated text automatically appears in the second window, while the top window is blank.

Screenshot:

obraz

App: Simply Translate 1.0.0

ManeraKai commented 3 years ago

No need for the pasting step. Just type and don't submit (Enter) .The Translate button won't be triggered. Therefore no text is translated. Switching will take the original text and swap it with the not translated yet text which will be blank. Do you want to trigger translation when pressing the Switch button?

Valdnet commented 3 years ago

Do you want to trigger translation when pressing the Switch button?

Yes. Each language switch should be translated. So first it translates and then changes the text. This is what Google Translator does. The second reason that the first blank window looks strange is when the second window contains text.

Valdnet commented 3 years ago

Scheme of translation, so as not to "get lost" 😁.

A - upper window with the text to be translated B - bottom window with translated text <-> - language change button aaa - text to be translated bbb - translated text ccc - next translation ddd, eee - next translation of the translation

  1. The first with only the text entered in window A and pressing the button <->: A - aaa B - empty <-> A - empty B - empty

  2. Text translation by the Translate button and subsequent language change with the <-> button: A - aaa B - empty Translate A - aaa B - bbb <-> A - bbb B - ccc

  3. Next language changes with the <-> button: A - bbb B - ccc <-> A - ccc B - ddd

  4. Deleting the text from window A with the X button and then changing the language with the <-> button: A - empty X B - ddd <-> A - ddd B - eee

Summary: When switching languages with the <-> button, the text from window B should be copied to window A, sent for translation and the new translation downloaded to window B.

This is how the translation function should work properly :wink:.

When translating the text, e.g. from PL -> EN and back to PL (to be checked and corrected), you can choose the best words in the sentence to make it understandable in the translated text.

ManeraKai commented 3 years ago

When translating the text, e.g. from PL -> EN and back to PL (to be checked and corrected), you can choose the best words in the sentence to make it understandable in the translated text.

How?

Valdnet commented 3 years ago

How?

This is "magic" :grin:. Note that this is just, or up, a program that translates according to your scripts. One word in a sentence can be translated differently. And with the method that I described earlier, you can choose the words so that the end result of the sentence makes sense.