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
Last changelog:

1 year ago

0.6.1
-------------------
"¢ improve configuration user interface

0.6
-------------------
"¢ support for yandex.com
"¢ primary and secondary language for simplified syntax

0.5.0
-------------------
"¢ use glosbe instead of google translate
"¢ always use ssl

0.4.1
--------------------
"¢ bugfix installation directory
"¢ code cleanup

0.4
--------------------
"¢ porting to kf5
"¢ fix copy to clipboard

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

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

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

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

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

1 year ago

It used to work nicely

Report

Naraku

1 year ago

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

Report

Naraku

1 year 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

1 year ago

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

Report

Naraku

1 year 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

Naraku

1 year ago

But yandex seems to support oauth, this may work.

Report

pioneer

1 year ago

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

Report

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

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

1 year 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

Naraku

1 year ago

Please post the output of kf5-config --prefix and kf5-config --qt-plugins.

Report

tomXx

1 year ago

here it comes:

kf5-config --prefix
/usr

kf5-config --qt-plugins
/usr/lib/qt/plugins

Report

Naraku

1 year ago

Okay, looks good. Could you please post the complete output of makepkg somewhere?

Report

tomXx

1 year ago

Hi,

sorry for not respondig earlier. But as it seems, I know now why the package won't insall on my machine. I do build my packages in a clean chroot environment and ther the kf5-config command is not available. Now, need to look for a fix on my end

Sorry for the inconvenience

tom

Report

edouardduliege

1 year ago

Hi,

Many thanks for the port!

On my Fedora 22, I installed the following packages:
install qt5-qtbase-devel
install extra-cmake-modules.noarch
kf5-ki18n-devel.x86_64
kf5-plasma-devel.x86_64
kf5-krunner-devel.x86_64

then compiled and installed successfully. I had to use the trick you provide in the INSTALL file to move the .so file in the correct location.

However krunner-translator doesn"t seem to work. Nothing happens when I hit alt F2 then type "fr-en maison".

Please let me know if I can provide any other information to help you solve this ;)

Best,
Edouard

Report

1 year ago

0.6.1
-------------------
"¢ improve configuration user interface

0.6
-------------------
"¢ support for yandex.com
"¢ primary and secondary language for simplified syntax

0.5.0
-------------------
"¢ use glosbe instead of google translate
"¢ always use ssl

0.4.1
--------------------
"¢ bugfix installation directory
"¢ code cleanup

0.4
--------------------
"¢ porting to kf5
"¢ fix copy to clipboard

Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 75%
75.00 Likes
25 Dislikes
Details
version
0.6.1
updated Apr 29 2017
added Jan 17 2013
downloads
page views 3674