Code Monkey home page Code Monkey logo

Comments (12)

minshifu avatar minshifu commented on May 26, 2024 1

Thank you for your reports and suggestions, i consider it and will fix in near time.

Do you have some assumptions about cause of first problem with auto detect? I already fixed a similar problem, and the reason was that lang attrubute set too late. I added one more chech after awaiting load page to fix it.

Popup with original text already in plans, but at this time i not have idea about grouping text for show result. For example i over my mouse on paragrapth from text on your screen, whats text this popup should show?
Text of all childs? Then what if user hover on body element? It will show text of all page in popup?

Thank you for your kind feedback.

  1. As for your first question, sorry I am a layman when it comes to coding and programming. So I cannot offer any help with this.

  2. I think original text shoud be shown paragraph by paragraph. Actually the following screenshot is from another translation addon S3.Translator. Its Original Text Popup function is very good. When that addon is used, original text will be shown paragraph by paragraph or even sentence by sentence as shown by the picture below. The shortcomings of that addon are that it fails to automatically translate many webpages and the offical Google Translate webpage often pops out. Perhaps you could refer to that addon for the Original Text Popup function.
    Best regards!

图片

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

Thank you for your reports and suggestions, i consider it and will fix in near time.

Do you have some assumptions about cause of first problem with auto detect? I already fixed a similar problem, and the reason was that lang attrubute set too late. I added one more chech after awaiting load page to fix it.

Popup with original text already in plans, but at this time i not have idea about grouping text for show result. For example i over my mouse on paragrapth from text on your screen, whats text this popup should show?
Text of all childs? Then what if user hover on body element? It will show text of all page in popup?

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

I will work on it in near time

  • Fix auto detect langs
  • Allow translate page with same language direction

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

Done. Check version 2.1.3

You can get it from releases page or wait few minutes for update from mozilla addons.

Test it and write your feedback about fixes.

Popup with original text will implement later, but in near future

from linguist.

minshifu avatar minshifu commented on May 26, 2024

Done. Check version 2.1.3

You can get it from releases page or wait few minutes for update from mozilla addons.

Test it and write your feedback about fixes.

Popup with original text will implement later, but in near future

So far the Auto Detection and Translation funcion works well. But the Same Language Translation function does not work.
Although the blue button can be clicked now, the Indonesian words on the linkedin page fails to be translated into English.
Thank you and Best regards!

https://www.linkedin.com/search/results/people/?keywords=menteri%20pendidikan&origin=CLUSTER_EXPANSION&sid=6ld

图片

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

Try use "auto detect" in languages list. Is it work for your case?

from linguist.

minshifu avatar minshifu commented on May 26, 2024

Try use "auto detect" in languages list. Is it work for your case?

Hi, so far the Auto Detection function works well. But the Same Language Translation function does not work on the following page.

https://www.linkedin.com/search/results/people/?keywords=menteri%20pendidikan&origin=CLUSTER_EXPANSION&sid=6ld

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

Translate behavior depends on translation service modules. One module can translate mixed languages, when other can't.

We should not change this behavior to avoid convoluted logic. Site define page language as "english", then we should suggest english even it it not that actually.

We could add option which will detect cases when language set by page is different from actual text on the page and in this case set default language as "undetected" and suggest auto detection if translator support this feature and language which page set otherwise.

What you think about it? This option is would satisfy you?

from linguist.

minshifu avatar minshifu commented on May 26, 2024

Translate behavior depends on translation service modules. One module can translate mixed languages, when other can't.

We should not change this behavior to avoid convoluted logic. Site define page language as "english", then we should suggest english even it it not that actually.

We could add option which will detect cases when language set by page is different from actual text on the page and in this case set default language as "undetected" and suggest auto detection if translator support this feature and language which page set otherwise.

What you think about it? This option is would satisfy you?

I tried the "Auto Detect" just now. So far it works great. But could you enable the addon to remember the choice? After reloading, the choice will revert to English each time. Thus one has to repeat opening the menu and choosing "Auto Detect" for each page or after reloading. Or chould the function of Chrome browser translation be emulated? That is, no matter what the original language is or whether they are mixed languages or not, the webpage can always be translated into English by just clicking the Context Menu button as shown by the picture below. Thank you!
图片

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

I don't sure that you really want enable option for remember language.

Pages usually have dynamic content and you will have to change language even more often. Even if direction remember functional will bind to domain

But i make issue for feature which can be useful for you: #37

What you think? Is it can satisfy you?

from linguist.

minshifu avatar minshifu commented on May 26, 2024

I don't sure that you really want enable option for remember language.

Pages usually have dynamic content and you will have to change language even more often. Even if direction remember functional will bind to domain

But i make issue for feature which can be useful for you: #37

What you think? Is it can satisfy you?

Thank you so much. What I mean is enabling the addon to remember the choice of "Auto Detect" not a certain language. So far the addon works great. I will continue to try it and offer my thoughts here. Hope the future Original Text Popup function will be similar to that of addon S3.Translator. Best regards!

from linguist.

vitonsky avatar vitonsky commented on May 26, 2024

You know, maybe the remember "auto detect" it is not bad function. I will think about it.

Thank for your contribution. In future if you want report or suggest something more, create new issue to maintain cleanliness

from linguist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.