NetLogo / NetLogo/Galapagos

Google translate and exported HTML

Open
#344 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Beak contributor-friendly
Dominant language
CoffeeScript
Stars
65
Forks
47
PR merge metrics
No merged PRs in 30d

Description

A potentially great feature of the web version is that models can be automatically translated to over 100 languages.

When I load

http://www.netlogoweb.org/web?http://m.modelling4all.org/p/9oJf503_AM446-E7xFl25g.nlogo

nothing is translated. When I export the HTML and load it then sliders and text widgets are translated from German to English while all the graphs remain in German. This is in Chrome in Window 7.

More significantly the author of the page, Andreas (andreasdueringarch@gmail.com), says that when the page is translated a monitor stays at 0 unlike when running with translation turned off. And one of the graphs was missing one of its plots.

Also when I tried to enter the original URL into Google Translate I get errors:

https://translate.google.co.uk/translate?sl=de&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fwww.netlogoweb.org%2Fweb%3Fhttp%3A%2F%2Fm.modelling4all.org%2Fp%2F9oJf503_AM446-E7xFl25g.nlogo&edit-text=

notranslate can be added to the class of any DOM element that shouldn't be translated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the linked model in Chrome by comparing the web version, exported HTML, and Google Translate URL. Check the translated monitor and graph behavior, including the missing plot and untranslated graph labels. Done means translation works consistently without changing monitor values or graph contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.