yplassiard / nvda-translate Goto Github PK
View Code? Open in Web Editor NEWMake NVDA translate any spoken text to the desired language.
License: GNU General Public License v2.0
Make NVDA translate any spoken text to the desired language.
License: GNU General Public License v2.0
I went to go download the 2019 version of this add on and it is not compatible. The 2020 link actually gives a 404. Can this please be looked into? I actually miss using this add on as it enabled me to talk to someone from china, and translate other stuff on the fly.
Thanks.
The following error is occurring on the translation server, preventing translations from happening
svn status
mn/add-ons/instantTranslate/nvda.po:207: duplicate message definition...
mn/add-ons/instantTranslate/nvda.po:205: ...this is the location of the first definition
msgmerge: found 1 fatal error
mr addon2svn: command failed
I opened the translation cache files in Notepad++, and I saw that the text strings were mostly in readable form. By mostly, I mean for the languages that don't use non-Latten characters. Those languages show Unicode numbers I think.
I was wondering if it would be possible to edit the translation cache through an NVDA Speech Dictionaries dialogue? This way you could do things such as adding regular expressions. This would be useful in situations where you get a string of text that stays the same except for a certain part in the middle, i.e., "You have 5 pieces of gold" and "You have 6 pieces of gold". This way, the translate addon won't generate several instances of the same text, making the translation cache larger than necessary. This will also help me edit translations in the cache without having to do it manually and learn the Unicode characters.
The DeepL service provides extremely accurate machine translation for a growing number of languages, though not all of them just yet. In my personal experience its Japanese translations blow Microsoft, Google and Yandex out of the water with how understandable they are, and it does well with the test of taking text in English, translating it to Japanese and then translating the result back. The website has an API and python library already, though the user of course has to provide auth keys. I request the ability to select this service for the languages it supports, the choice of a free or pro server, and a field to enter an API key. Perhaps if this fails you could fall back to the system you're already using, this would cover the case of missing API keys or languages it can't detect. This would vastly improve the understandability of many dialogs in Japanese games I suspect.
Currently the NVDA's language (or Windows language) is used as the translation language by the add-on.
Would be good to be able to choose a language using a preferences dialog.
In some regions, the Google Translate Engine is not accessible, and attempting to turn on just-in-time translation will cause NVDA to freeze and NVDA must be restarted.
I'm guessing that the wait trying to request Google's servers is blocking NVDA.
Looks like this addon currently doesn't work with the latest NVDA snapshots, as this error is returned. Full log:
ERROR - globalPluginHandler.listPlugins (14:37:07.393) - MainThread (37948):
Error importing global plugin translate
Traceback (most recent call last):
File "C:\Users\flori\AppData\Roaming\nvda\addons\translate\globalPlugins\translate_init_.py", line 33, in
import mtranslate
File "C:\Users\flori\AppData\Roaming\nvda\addons\translate\globalPlugins\translate\mtranslate_init_.py", line 2, in
from .core import translate
File "C:\Users\flori\AppData\Roaming\nvda\addons\translate\globalPlugins\translate\mtranslate\core.py", line 36, in
import html.parser
ModuleNotFoundError: No module named 'html.parser'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "globalPluginHandler.pyc", line 23, in listPlugins
File "importlib_init_.pyc", line 127, in import_module
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\flori\AppData\Roaming\nvda\addons\translate\globalPlugins\translate_init.py", line 37, in
logHandler.log.exception("Failed to initialize translate addon", e)
File "logHandler.pyc", line 192, in exception
TypeError: 'ModuleNotFoundError' object is not subscriptable
It'd be awesome if this could be fixed :)
when clicking ctrl+shift+t it says translation enabled, but it dont translates.
Hi,
Thanks for creating this add-on.
translate.google.com
is not accessible in certain regions such as China.
I would like to have a settings panel for this add-on in the NVDA settings panel with a combo box to allow the user to choose which URL to use. It can include: translate.google.com, translate.google.cn, translate.google.hk
I noticed this when I was translating Danish text to English, and I'm not sure if it's something going on with the add-on itself since Google Translate seems to do it just fine when using the service separately from the NVDA add-on
For instance, if you have a link on the same line which contains a domain, like nvaccess.org, nvda.dk, etc, NVDA simply says link and nothing else. If you also enter it as simple text and read it using the down arrow and it is by itself on a line, NVDA remains silent.
This is using NVDA Version: alpha-16885,2ed7dbae mind you (also attempted with NVDA 2018.4.1) and add-on release 2019.03.
Given an input text from a designed user interface dialog in the add-on, add the ability yo ytanslate it to the desired language and copy the result to the clipboard.
For the "insert here" feature, the user shall be on an edit field (either multi-line or not) before using this gesture.
when will tis addon work with nvda 2021?
When NVDA interface language is set to ukrainian, addon does not work. Any text is translated into English. Please add the ability to use the application for users whose NVDA interface language is Ukrainian. Thanks.
Currently the translated text is only spoken, would be nice to have it written to the connected braille display as well.
Not compatible with nvda 2019.3 beta 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.