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

Cherkah

13 days ago

that is i got:

1) cmake .. -DCMAKE_INSTALL_PREFIX='/usr/bin/qtpaths --install-prefix' -DKDE_INSTALL_QTPLUGINDIR='/usr/bin/qtpaths --plugin-dir'

** -- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
-- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.47.0")
-- Found KF5Service: /usr/lib/x86_64-linux-gnu/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.47.0")
-- Found KF5Runner: /usr/lib/x86_64-linux-gnu/cmake/KF5Runner/KF5RunnerConfig.cmake (found version "5.47.0")
-- Found KF5TextWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF5TextWidgets/KF5TextWidgetsConfig.cmake (found version "5.47.0")
-- Found KF5ConfigWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.47.0")
-- Found KF5PlasmaQuick: /usr/lib/x86_64-linux-gnu/cmake/KF5PlasmaQuick/KF5PlasmaQuickConfig.cmake (found version "5.47.0")
-- Found KF5: success (found version "5.47.0") found components: I18n Service Runner TextWidgets ConfigWidgets PlasmaQuick
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/abdul/Téléchargements/krunner-translator-master/build **

2) make
** Scanning dependencies of target kcm_krunner_translator_autogen
[ 9%] Automatic MOC for target kcm_krunner_translator
[ 9%] Built target kcm_krunner_translator_autogen
[ 18%] Generating ui_translator_config.h
Scanning dependencies of target kcm_krunner_translator
[ 27%] Building CXX object CMakeFiles/kcm_krunner_translator.dir/config/translator_config.cpp.o
In file included from /home/abdul/Téléchargements/krunner-translator-master/config/translator_config.cpp:20:
/home/abdul/Téléchargements/krunner-translator-master/helper.h:22:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const bool stringToBool(QString s)
^~~~~
/home/abdul/Téléchargements/krunner-translator-master/helper.h:31:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const char * const boolToString(bool b)
^~~~~
[ 36%] Building CXX object CMakeFiles/kcm_krunner_translator.dir/kcm_krunner_translator_autogen/mocs_compilation.cpp.o
[ 45%] Linking CXX shared module kcm_krunner_translator.so
[ 45%] Built target kcm_krunner_translator
Scanning dependencies of target krunner_translator_autogen
[ 54%] Automatic MOC for target krunner_translator
[ 54%] Built target krunner_translator_autogen
Scanning dependencies of target krunner_translator
[ 63%] Building CXX object CMakeFiles/krunner_translator.dir/translator.cpp.o
In file included from /home/abdul/Téléchargements/krunner-translator-master/api/glosbe.h:24,
from /home/abdul/Téléchargements/krunner-translator-master/translator.cpp:21:
/home/abdul/Téléchargements/krunner-translator-master/helper.h:22:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const bool stringToBool(QString s)
^~~~~
/home/abdul/Téléchargements/krunner-translator-master/helper.h:31:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const char * const boolToString(bool b)
^~~~~
[ 72%] Building CXX object CMakeFiles/krunner_translator.dir/api/glosbe.cpp.o
In file included from /home/abdul/Téléchargements/krunner-translator-master/api/glosbe.h:24,
from /home/abdul/Téléchargements/krunner-translator-master/api/glosbe.cpp:19:
/home/abdul/Téléchargements/krunner-translator-master/helper.h:22:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const bool stringToBool(QString s)
^~~~~
/home/abdul/Téléchargements/krunner-translator-master/helper.h:31:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const char * const boolToString(bool b)
^~~~~
[ 81%] Building CXX object CMakeFiles/krunner_translator.dir/api/yandex.cpp.o
[ 90%] Building CXX object CMakeFiles/krunner_translator.dir/krunner_translator_autogen/mocs_compilation.cpp.o
[100%] Linking CXX shared module krunner_translator.so
[100%] Built target krunner_translator **

Report

Cherkah

13 days ago


3) sudo make install
** Scanning dependencies of target kcm_krunner_translator_autogen
[ 9%] Automatic MOC for target kcm_krunner_translator
[ 9%] Built target kcm_krunner_translator_autogen
[ 18%] Generating ui_translator_config.h
Scanning dependencies of target kcm_krunner_translator
[ 27%] Building CXX object CMakeFiles/kcm_krunner_translator.dir/config/translator_config.cpp.o
In file included from /home/abdul/Téléchargements/krunner-translator-master/config/translator_config.cpp:20:
/home/abdul/Téléchargements/krunner-translator-master/helper.h:22:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const bool stringToBool(QString s)
^~~~~
/home/abdul/Téléchargements/krunner-translator-master/helper.h:31:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const char * const boolToString(bool b)
^~~~~
[ 36%] Building CXX object CMakeFiles/kcm_krunner_translator.dir/kcm_krunner_translator_autogen/mocs_compilation.cpp.o
[ 45%] Linking CXX shared module kcm_krunner_translator.so
[ 45%] Built target kcm_krunner_translator
Scanning dependencies of target krunner_translator_autogen
[ 54%] Automatic MOC for target krunner_translator
[ 54%] Built target krunner_translator_autogen
Scanning dependencies of target krunner_translator
[ 63%] Building CXX object CMakeFiles/krunner_translator.dir/translator.cpp.o
In file included from /home/abdul/Téléchargements/krunner-translator-master/api/glosbe.h:24,
from /home/abdul/Téléchargements/krunner-translator-master/translator.cpp:21:
/home/abdul/Téléchargements/krunner-translator-master/helper.h:22:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const bool stringToBool(QString s)
^~~~~
/home/abdul/Téléchargements/krunner-translator-master/helper.h:31:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const char * const boolToString(bool b)
^~~~~
[ 72%] Building CXX object CMakeFiles/krunner_translator.dir/api/glosbe.cpp.o
In file included from /home/abdul/Téléchargements/krunner-translator-master/api/glosbe.h:24,
from /home/abdul/Téléchargements/krunner-translator-master/api/glosbe.cpp:19:
/home/abdul/Téléchargements/krunner-translator-master/helper.h:22:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const bool stringToBool(QString s)
^~~~~
/home/abdul/Téléchargements/krunner-translator-master/helper.h:31:8: warning: les qualificatifs de type sont ignorés sur le type retourné par la fonction [-Wignored-qualifiers]
inline const char * const boolToString(bool b)
^~~~~
[ 81%] Building CXX object CMakeFiles/krunner_translator.dir/api/yandex.cpp.o
[ 90%] Building CXX object CMakeFiles/krunner_translator.dir/krunner_translator_autogen/mocs_compilation.cpp.o
[100%] Linking CXX shared module krunner_translator.so
[100%] Built target krunner_translator
abdul@MSIAbdul:~/Téléchargements/krunner-translator-master/build$ sudo make install
[sudo] Mot de passe de abdul :
[ 9%] Automatic MOC for target kcm_krunner_translator
[ 9%] Built target kcm_krunner_translator_autogen
[ 45%] Built target kcm_krunner_translator
[ 54%] Automatic MOC for target krunner_translator
[ 54%] Built target krunner_translator_autogen
[100%] Built target krunner_translator
Install the project...
-- Install configuration: ""
-- Installing: /usr/bin/qtpaths --plugin-dir/krunner_translator.so
-- Set runtime path of "/usr/bin/qtpaths --plugin-dir/krunner_translator.so" to "/usr/bin/qtpaths --install-prefix/lib/x86_64-linux-gnu"
-- Installing: /usr/bin/qtpaths --plugin-dir/kcm_krunner_translator.so
-- Set runtime path of "/usr/bin/qtpaths --plugin-dir/kcm_krunner_translator.so" to "/usr/bin/qtpaths --install-prefix/lib/x86_64-linux-gnu"
-- Installing: /usr/bin/qtpaths --install-prefix/share/kservices5/plasma-runner-translator.desktop
-- Installing: /usr/bin/qtpaths --install-prefix/share/kservices5/plasma-runner-translator_config.desktop **

do you see anything relevants cause i do not!!
thx

Report

C

Naraku

13 days ago

Thanks, you have a typo in your cmake command: It has to be ` instead of ' before and after the qtpath commands. When you copy it from the README.md it it should be correct.

Report

Cherkah

13 days ago

you'r rigth about the typo's stuff, but i should change the `` by '' cause i get after

*** cmake .. -DCMAKE_INSTALL_PREFIX=`/usr/bin/qtpaths --install-prefix` -DKDE_INSTALL_QTPLUGINDIR=`/usr/bin/qtpaths --plugin-dir` ***

that:

qtpaths: could not find a Qt installation of ''
qtpaths: could not find a Qt installation of ''
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
-- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.47.0")
-- Found KF5Service: /usr/lib/x86_64-linux-gnu/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.47.0")
-- Found KF5Runner: /usr/lib/x86_64-linux-gnu/cmake/KF5Runner/KF5RunnerConfig.cmake (found version "5.47.0")
-- Found KF5TextWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF5TextWidgets/KF5TextWidgetsConfig.cmake (found version "5.47.0")
-- Found KF5ConfigWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.47.0")
-- Found KF5PlasmaQuick: /usr/lib/x86_64-linux-gnu/cmake/KF5PlasmaQuick/KF5PlasmaQuickConfig.cmake (found version "5.47.0")
-- Found KF5: success (found version "5.47.0") found components: I18n Service Runner TextWidgets ConfigWidgets PlasmaQuick
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/abdul/Téléchargements/krunner-translator-master/build

Report

C

Naraku

13 days ago

That's strange. You have a proper KDE/Qt installation through your package manager I guess? Then qtpath should return the installation directories.
/usr/bin/qtpaths --install-prefix returns /usr on my system
/usr/bin/qtpaths --plugin-dir returns /usr/lib/qt/plugins on my system

Please verify your systems the same directories, than you simple can replace the qtpath commands with the directory paths.

Report

Cherkah

13 days 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

13 days ago

Then installation went wrong, probably. Have you followed the installation instructions? Any errors?

Report

emmanog

1 month ago

I used it in kde4, now after compiling it in kde neon (plasma 5.13.1), when trying to save the configuration the application crash

Report

emmanog

1 month ago

crash report
Application: System Settings Module (kcmshell5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f58f8d0a940 (LWP 5166))]

Thread 4 (Thread 0x7f58caa45700 (LWP 5170)):
#0 0x00007f58efde1a94 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f58efd9d381 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f58efd9d712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f58cc41d9d6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4 0x00007f58efdc3bb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f58f22316ba in start_thread (arg=0x7f58caa45700) at pthread_create.c:333
#6 0x00007f58f86e641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f58cb246700 (LWP 5169)):
#0 0x00007f58f86da74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f58efd9d38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f58efd9d49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f58efd9d4d9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f58efdc3bb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f58f22316ba in start_thread (arg=0x7f58cb246700) at pthread_create.c:333
#6 0x00007f58f86e641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f58da765700 (LWP 5168)):
#0 0x00007f58f86da74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f58efd9d38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f58efd9d49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f58f58adbeb in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4 0x00007f58f58551ca in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5 0x00007f58f568a5e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6 0x00007f58f71d9f35 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7 0x00007f58f5695727 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8 0x00007f58f22316ba in start_thread (arg=0x7f58da765700) at pthread_create.c:333
#9 0x00007f58f86e641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f58f8d0a940 (LWP 5166)):
[KCrash Handler]
#6 0x00007f58f57112f7 in QString::toUtf8_helper(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7 0x00007f58f7a6039e in KConfigGroup::writeEntry(char const*, QString const&, QFlags) () from /usr/lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
#8 0x00007f58bb1a67d7 in TranslatorConfig::save() () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_krunner_translator.so
#9 0x00007f58f83b6d67 in KCModuleProxy::save() () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#10 0x00007f58f83bfb5c in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#11 0x00007f58f83c01a7 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#12 0x00007f58f5883eb6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f58f6718202 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f58f6718434 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f58f671a0de in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f58f671a25d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f58f665f518 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f58f662029c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f58f662853b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f58f5856e38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f58f6626ebf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f58f667985d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f58f667c26b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f58f662029c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f58f6627917 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f58f5856e38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f58f5e1a93f in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#28 0x00007f58f5e1c995 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007f58f5df4dfb in QWindowSystemInterface::sendWindowSystemEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007f58e6412c1b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#31 0x00007f58f58551ca in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f58f585e2d4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f58f89b1974 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kcmshell5.so
#34 0x00007f58f85ff830 in __libc_start_main (main=0x4006b0, argc=2, argv=0x7ffd744841e8, init=, fini=, rtld_fini=, stack_end=0x7ffd744841d8) at ../csu/libc-start.c:291
#35 0x00000000004006e9 in _start ()

Report

C

Naraku

1 month ago

Thanks for reporting! Just released v1.1.1 which should fix this bug.

Report

dimkard

7 months 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

7 months 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

7 months 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

7 months ago

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

Report

C

Naraku

6 months ago

Have a look at the new version. :-)

Report

edouardduliege

2 years 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

2 years 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

2 years ago

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

Report

dovidhalevi

2 years 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

2 years ago

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

Did you restart krunner after installation?

Report

sxe

2 years 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

2 years 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

2 years 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

2 years 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

2 years ago

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

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 Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv3
version
1.1.1
updated Jan 20 2018
added Jan 17 2013
downloads today
0
page views today 8