Description:

This is a plugin for Plasma 5 KRunner. It's a translator and it translates text. Please have a look at the README or the github page for a detailed description.

Example: fr-en maison

this will translate the french word "maison" into english

Thanks for your feedback and kudos!

Development takes place on github. For more details please go to https://github.com/naraesk/krunner-translator

dimkard

1 month ago

After looking for a glosbe translator plugin and having found nothing, I decided to develop a new one. So, I started studying on your work, since “how different can a yandex plugin be from a glosbe one?”… Then, I found out that krunner-translator is actually a glosbe single-word translator!

Congratulations, you have created what I was looking for!

Just a couple of suggestions:

1. Please mention in README that this is a glosbe plugin.

2. Add a switch so as to select between yandex/glosbe

3. A short list of glosbe examples after translations would make the plugin just perfect!



Report

C

Naraku

1 month ago

Thanks for your feedback!

1. Sure, will do this.

2. Glosbe can't translate sentences, it only translates perfect machtes. Therefore, currently yandex is used for sentences/phrases and glosbe is always used for translating single words. Can you specify how the switch should work? From my point of view it is convenient that the runner selects the best plugin according to the input.

3. The current examples in the README are already glosbe examples, or what do you mean?

Report

dimkard

1 month ago

2. Looking into your code, I understand that if I just look for a single word, glosbe will always be used. Nevertheless, a set of flags or sth similar in plugin settings, would let the user get translations from the service (yandex/glosbe) she/he prefers

3. I am talking about glosbe example sentences of the word under translation. E.g., you may use this parameter
tm - whether to include examples (make translation memories search), values: 'true' or 'false', default: 'false'
parse the response and display a short list of examples fetched.

Report

C

Naraku

1 month ago

Ok, I see. Maybe I'll find some time on the next weekend, then I can add this.

Report

C

Naraku

1 month ago

Have a look at the new version. :-)

Report

edouardduliege

1 year ago

Hi,
I'm on Fedora 23, I've recently updated to 0.6.1. I have issue with the yandex key since 2 words translation doesn't work.

So I have a yandex key, which starts with trnsl then a bunch of dots and numbers. I've double clicked on the translator_config.ui file, which opened in Qt4 Designer. Then I copied the whole key (including the trnsl), then saved the file.

Is there anything I missed or did improperly? Thanks for the constant improvements ;)
Cheers

Report

C

Naraku

1 year ago

Hi,

yes, the yandex key starts with trnsl. However, there is no need to edit the config file. Once you installed the runner there is a config menu available where you can enter the key.

Report

edouardduliege

1 year ago

Hi,
Ok I solved the problem, thanks for the hint ;) works like a charm now!

Report

dovidhalevi

1 year ago

No action typing stuff like fr-en maison
No notice of this runner on the "search options" dialog.

Running up-to-date Debian Sid.

Report

C

Naraku

1 year ago

Could you paste the output of the cmake and make commands?

Did you restart krunner after installation?

Report

sxe

1 year ago

Checked the latest version based on the new API.

Works good, thx for that.

One suggestion: Would be awesome if you could add the possibility to set a default source language.

Example:
1. Set source langage to "de"
2. search like this: en DeWord (en is the target language)
3. Result: DeWord in English

This would make the translation shorter again (As it was with googles auto language detection).

Regards

Report

C

Naraku

1 year ago

Thanks for you feedback and have a look at the new version (0.6). You can specify a primary and secondary language in the config dialog. What do you think about it?

Further, see README for instructions to reenable translation of sentences.

Report

sxe

1 year ago

Wow works great well done.

The only complain i have is that it's hard to understand how the primary and secondary language settings are working.

I think it should be self explanatory to a point where a short help text in the GUI is enough to understand it. When you install it via a package manager you have no readme file.

Suggestion:
Rename "Translator Config" to "Source language settings".
Call it "Default" and "Alternative"
If qt allows it. Add a hint somewhere that explains what each does.
1. "Default - Defines the default source language so you can translate a string with providing the target language only. (EXAMPLE)"
2. "Alternative - Will be used when the target language is the same as the default language."

Not perfect by any means but maybe it helps somehow. Just a quick idea.

Report

C

Naraku

1 year ago

Yep, currently any hints and explenations are missing. Your suggestions sounds good, will do it on the weekend.

It's the same with the api key. Could you follow my instructions?

Report

sxe

1 year ago

Haven't tried yandex yet i am happy with the other API so far.

Report

MartinZ

2 years ago

It used to work nicely

Report

C

Naraku

2 years ago

Thanks for the note, I can reproduce this. I'll have a look at it after christmas.

Report

C

Naraku

2 years ago

Had a look into it: Seems like it's not related to Plasma 5.5. Google made some changes to their api, probably they do not want their service to be used like that. Therefore it seems not reasonable to try to bypass this somehow since it will be broken in some weeks again.

I guess I have to look at other apis. Hopefully there is a high-quality and open source friendly api available.

Report

pioneer

2 years ago

Please check this https://tech.yandex.com/translate/.

Report

C

Naraku

2 years ago

Thanks for the tip. However, you need an api key to access the api. Since I'm not allowed to share my key, every user has to create an account there, get an api key, and enter it somewhere in a config file or so and only then the plugin would work. This is to complicate I think.

However .... haven't found a better solution yet.

Report

C

Naraku

2 years ago

But yandex seems to support oauth, this may work.

Report

pioneer

2 years ago

Yes, a bit complicated, but anyway Yandex offer great translation quality and huge amount of languages.

Report

C

Naraku

1 year ago

Finally ... it should work again!

For the momemnt it uses glosbe.com, but I'll add yandex too. Unfourtunately I had to drop language detection and translation of sentences.

Report

C

Naraku

1 year ago

yandex.com is now supported! Configuration is a bit complicate but once it is working it is almost as comfortable as it was with google translate.

Report

tomXx

2 years ago

Thanks a lot for the new PKGBUILD.

Compiling went fine but anyhow installation aborted due to existing /lib64. This is a least what pacman says when I try to install via pacman -U

Any tips how to solve that?

txh

Report

product-maker vmorenomarin Jan 20 2018

product-maker dimkard Jan 14 2018

After looking for a glosbe translator plugin and having found nothing, I decided to develop a new one. So, I started studying on your work, since “how different can a yandex plugin be from a glosbe one?”… Then, I found out that krunner-translator is actually a glosbe single-word translator! Congratulations, you have created what I was looking for! Just a couple of suggestions: 1. Please mention in README that this is a glosbe plugin. 2. Add a switch so as to select between yandex/glosbe 3. A short list of glosbe examples after translations would make the plugin just perfect!

product-maker PeterKabin Feb 29 2016

product-maker MartinZ Dec 21 2015

product-maker gennadyx Sep 11 2015

product-maker janet Aug 22 2015

product-maker rauul28 Aug 21 2015

product-maker jota Aug 21 2015

product-maker tomXx Aug 20 2015

product-maker FallenX Oct 16 2014

product-maker Stryzhevskyi Sep 22 2014

product-maker Murz Feb 03 2014

product-maker molecule-eye Apr 09 2013

product-maker koko2k Apr 09 2013

product-maker Eldarion Apr 06 2013

product-maker vgezer Mar 24 2013

product-maker pacorayban Mar 07 2013

product-maker Psifidotos Feb 26 2013

product-maker Hmpf Feb 23 2013

product-maker hurufu Feb 18 2013

product-maker seaman123 Feb 14 2013

product-maker wevertonmarx Feb 12 2013

product-maker herrbatka Feb 12 2013

product-maker vitoubien Feb 11 2013

product-maker avlas Feb 10 2013

product-maker karaytanto Feb 07 2013

product-maker Maldoror Jan 20 2013

product-maker cichys Jan 18 2013

product-maker sxe Jan 18 2013

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.0.0
updated Jan 20 2018
added Jan 17 2013
downloads today
0
page views today 10
View More kde