HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.26k stars 2.26k forks source link

Translation ZeroNet #1200

Open ghost opened 6 years ago

ghost commented 6 years ago

I believe that you need to make an API translator for websites. This is a very convenient function but in the zeronet translator from the browser does not work. I very often use an interpreter, it is also part of anonymity.

anoadragon453 commented 6 years ago

I believe you are asking about being able to translate the contents of an entire ZeroNet page using online APIs.

This would be useful, although should certainly be an opt-in thing, as it would require sending the site address to an online server and having it send back the translated HTML.

Essentially a ZeroNet site would have to be created that can read other sites and send the HTML data off to Google APIs to be translated. I do not believe any changes to the core infrastructure would be required (and should not be done as this relies on 3rd party, proprietary services).

If there is a JS or Python translation library that could do it locally, then that'd be another story.

skwerlman commented 6 years ago

0net supports plugins, correct? I assume it should be possible to supply this functionality as a 3rd-party plugin. Besides, I don't think many people really want external integrations in the main codebase.

Another option would be to allow the site to supply its own translation files listed in something like a translation.json file, which could be chosen from using the 0 menu. It could even be possible to allow user-supplied translations as well, splitting up the burden of translation. That's functionality I would love to see in the main codebase. This is apparently already a thing.

HelloZeroNet commented 6 years ago

I'm not sure what you mean. For the site messages you can use the built-in, json based translator solution. If you want to translate the user submitted content, then it's much harder and probably you need to use a third party service for that (eg. google translate) via a browser plugin

ghost commented 6 years ago

I like the idea of anoadragon453 Essentially a ZeroNet site would have to be created that can read other sites and send the HTML data off to Google APIs to be translated.