translatoid

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

31
6 .8
Description:

translator using google translator!
And it's my first plasmoids!!

svn co svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/translatoid
Last changelog:

9 years ago

-clear code
-add Catalan flag
-Add language title
- use Frame for the maintitle.
- Correct some encodage bug
- and more....

===0.4
- use kde svn :
http://websvn.kde.org/trunk/playground/base/plasma/applets/translatoid
- use PopupApplet! Now, Translatoid can be dock inside the main bar!
- Change language selection method! Now, You have to click and a KlistWidget appear !
- Add Copy and Past button
- Add AutoDetection language in languageList
- Add TooTip Message

Now, I need translator for translate, this translator... :)

===0.4.1
add Licence
add GPL2 header
replace setIcon() by nativeWidget()->seticon()

=====0.5
Add ListWidgetFlag inside the plasma and it appear with a Plasma::Animation!
Add Voice TTS support.

TODO : auto select - enter key - flag disabled for fedora!

======0.6
-AutoPaste the copy selection and autotranslate when you active Popup.
-GrabKeyboard when you active Popup
-Add "Clear Button"
-remove Cancel Button from DialogBox
-Add Po language file.
- Change inverse language icon
- Add Fedora Package without flags

====0.6.1
- Add new Icon
- change name : translatoid to plasma-applet-translatoid

======0.7
add New popup icon which can change his flags
use KConfigGroup for save favorite language
add FavoriteLanguage config dialog
some update of the code

=======0.8
IMPORTANT RELEASE :
change the algorithm of source translation. Now it use Post Method. It means that you can translate big text. And if you type 1 word, it get you the dictionnary result ! :) Thanks lexnewton.
=======0.9
-add new flags list ! Use a plasma::treeview with a QAbstractModel
-copy from the clipboard! Now, you just have to select a source text from anywhere, and active the popup, by cliking on the popup, or by a plasma shortcut.
-Change QTextEdit source event. Now, press Enter to translate, and press Shift+Enter to add a new line.

=======1.0
Change icon
Change a lot by aseigo , use KJob, nice animation during translate.
change the structure of translatoid
Will remove voice button, because KTTSD do the same job.
add estonishlanguage
===RC
After some error of myself! This is the good one :
- Set text color with theme color
- save your automaticaly last languages in use.

==1.1beta==== MAJOR CORRECTION
Now Translatoid use extender
Add Reminder extender to remind you some word after clicking on the star
Replace parsing by Json parsing. YOU NEED TO INSTALL libqjson
Clear some code and probably add some new bug.. :)
If you have some probs, contact me!

---1.1
Add new language :
"Afrikaans"
"Albanais"
"Albanais"
"Belarusian"
"Irish""Icelandic"
"Macedonian"
"Malaysia"
"Maltese"
"Persan"
"Swahili"
"Turkish"
"Yiddish"

1.12 ( Minor fix)
Just fix Icon installation...Sorry)
A new release will come out quickly

1.2 ( Minor fix)
Correct Html rending

1.21
Correct text color in "remind" area

1.30
Correct Json parser with new Google Api. Thanks alex789

1.30 bis
dominique fix

dglent

11 years ago

great work! and very usefull plasmoid. I like the option that the source string is taken from the klipper! keep going

here a rpm for mandriva
http://www.mediafire.com/file/y3xe2zujtnf/plasma-applet-translatoid-0.8-1mdv2009.1.i586.rpm

Report

dkarnout

11 years ago

i find more useful when "Enter" key translates the text instead of adding a new line.

Congratulations although, it is a very useful plasmoid!

P.S. You also do what kopete does: numpad enter adds a new line and keypad enter sends the message.

Report

dkarnout

11 years ago

Thank you! Great update. The most useful plasmoid for me.

Report

pejakm

11 years ago

Serbian flag is wrong! Please, correct this.

Report

eliwap

11 years ago

Will there be a noflag version of 0.8?

It would be really easier in the long run, I think, if you're willing to do this, to be able to throw some kind of cmake option. some equivalent to make's option of --without-option. So essentially you would only have to do this once.

Thanks

Report

C

dridk

11 years ago

Some bug in compilation in 0.8... Sorry I will fix it !!!

Report

mbaszczewski

11 years ago

Nice. I really like this little app :)

Report

schollidesign

11 years ago

Hi and thanks again for your Plasmoid :) I have a problem with the mini flags on the tray-Icon, so I changed the Icon for dictionary and I have them very small on the panel. It's looks bad this kind. It would be very kind from you to include in the settings a "unable" this feature. The second is that I wish a setting for choosing the default-languages for A and B. Because after every restart of KDM language A is french and B is english. :(
I saw the setting for this in your Plasmoid, but seems like it's losing after every KDM-restart his changes. *confusing*
Can you fix this? I will appreciate it very much. :)

Sincerly scholli

Report

C

dridk

11 years ago

Strange.. I will look that and fixed that!

Report

patkoscsaba

11 years ago

The languages are even reverting to default while there are no changes on the desktop or X is not restarted.

Just between 2 consequent translations I observed the from language switching back to French. (Note: the plasmoid was in the panel, and it was hidden between the 2 translations). However, this is not happening all the time... strange.

And my wishes to the wishlist:
- change the icon color. Your icon is almost identical with the dictionary plasmoid icon. I have both of them on the panel. I use a very thin panel and the 2 icons are hard to distinguish.
- a shortcut for the translate button. It would be handy to type in a word and just hit a key instead of having to take the mouse and click on "Translate"

Report

schollidesign

11 years ago

Yes it's true. Here a screeny:

http://ubuntu-pics.de/bild/11381/bildschirmfoto_Mcpkeq.png

CWP saves his changes. Maybe do something similar?
A Mini-Flags-unable would be nice, too. See screeny. :)

Report

Masterofpsi

11 years ago

When I tried (on a whim) to do a translation while I was not connected to a network, Plasma crashed.

Report

hoihappen

11 years ago

When trying to translate something the result is: "Networking is disabled. Cannot connect to google", but the other plasmoids are connected to the internet.
It doesn't matter which language I choose.

Report

D--

11 years ago

same problem here

Report

D--

11 years ago

i first noticed this problem in version 0.7, it worked fine in 0.6 and previous

Report

deprecat

11 years ago

same here too, doesn't work version 0.7 and 0.8... :-(

Report

Zielony

11 years ago

I have the same.

Report

gimox

11 years ago

On the README you say - for people that don't have nightly - to install

$KDEDIR/lib/kde4/translatoid.so
$KDEDIR/share/kde4/services/plasma-applet-translatoid.desktop

i havent' find translatoid.so, so i renamed plasma-applet-translatoid.so in that way and i copied in that folder. Afterwards i've copied plasma-applet-translatoid.desktop in the other folder.

Then i've restarted plasma and nothing has changed... :(

Report

C

dridk

11 years ago

the readme is too old . you didnt have to rename anythink. did you 'make install'?

Report

gimox

11 years ago

Haven't tried yet... so if the readme is too old should i use this?

cmake .. -DCMAKE_INSTALL_PREFIX=/opt/kde-nightly/

or it's too old too?

Report

loony

11 years ago

Hi, I tried your plasmoid and it crashes plasma:
Anwendung: Plasma-Arbeitsfläche (plasma), Signal SIGSEGV
[Current thread is 0 (LWP 6944)]

Thread 3 (Thread 0xa9c24b90 (LWP 6958)):
#0 0xb80d3424 in __kernel_vsyscall ()
#1 0xb597e075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2 0xb6547bbd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3 0xb67316f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4 0xb7a8a532 in ?? () from /usr/lib/libQtNetwork.so.4
#5 0xb67306ae in ?? () from /usr/lib/libQtCore.so.4
#6 0xb597a50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0xb6539a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xa9321b90 (LWP 6962)):
#0 0xb80d3424 in __kernel_vsyscall ()
#1 0xb597e075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2 0xb6547bbd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3 0xb67316f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4 0xa9d63c8a in RenderThread::run (this=0xa0eea0c) at /build/buildd/kdebase-workspace-4.2.0/plasma/wallpapers/image/renderthread.cpp:91
#5 0xb67306ae in ?? () from /usr/lib/libQtCore.so.4
#6 0xb597a50f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0xb6539a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb54f76c0 (LWP 6944)):
[KCrash Handler]
#6 0xb6b0a0bc in QWidget::setParent () from /usr/lib/libQtGui.so.4
#7 0xb6b0aa31 in QWidgetPrivate::init () from /usr/lib/libQtGui.so.4
#8 0xb6b0ae73 in QWidget::QWidget () from /usr/lib/libQtGui.so.4
#9 0xb6e40885 in QFrame::QFrame () from /usr/lib/libQtGui.so.4
#10 0xb78de80a in KHBox (this=0xae0c898, parent=0xbfbd2588) at /build/buildd/kde4libs-4.2.0/kdeui/widgets/khbox.cpp:40
#11 0xb7934e31 in KVBox (this=0xae0c898, parent=0xbfbd2588) at /build/buildd/kde4libs-4.2.0/kdeui/widgets/kvbox.cpp:23
#12 0xb77695b3 in KConfigDialog::KConfigDialogPrivate::addPageInternal (this=0xbfbd2578, page=0xac2bcf0, itemName=@0xbfbd23a8, pixmapName=@0xbfbd23a0, header=@0xbfbd239c)
at /build/buildd/kde4libs-4.2.0/kdeui/dialogs/kconfigdialog.cpp:149
#13 0xb77696a8 in KConfigDialog::addPage (this=0xbfbd2540, page=0xac2bcf0, itemName=@0xbfbd23a8, pixmapName=@0xbfbd23a0, header=@0xbfbd239c, manage=true)
at /build/buildd/kde4libs-4.2.0/kdeui/dialogs/kconfigdialog.cpp:112
#14 0xa93d537e in KTranslatoid::createConfigurationInterface (this=0xad11d70, parent=0xbfbd2540) at /home/gmud/download/plasmoids/translatoid/ktranslatoid.cpp:374
#15 0xb7ef2a03 in Plasma::Applet::save () from /usr/lib/libplasma.so.3
#16 0xb7ef3a28 in Plasma::Applet::timerEvent () from /usr/lib/libplasma.so.3
#17 0xb683053f in QObject::event () from /usr/lib/libQtCore.so.4
#18 0xb7070447 in QGraphicsWidget::event () from /usr/lib/libQtGui.so.4
#19 0xb6ab08ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#20 0xb6ab872e in QApplication::notify () from /usr/lib/libQtGui.so.4
#21 0xb7814fed in KApplication::notify (this=0x9d1d358, receiver=0xad11d70, event=0xbfbd2aac) at /build/buildd/kde4libs-4.2.0/kdeui/kernel/kapplication.cpp:307
#22 0xb6820e61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#23 0xb684ed81 in ?? () from /usr/lib/libQtCore.so.4
#24 0xb684b520 in ?? () from /usr/lib/libQtCore.so.4
#25 0xb57bf6f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb57c2da3 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0xb57c2f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb684b478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#29 0xb6b4aea5 in ?? () from /usr/lib/libQtGui.so.4
#30 0xb681f52a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#31 0xb681f6ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#32 0xb6821da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#33 0xb6ab0767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#34 0xb8058456 in kdemain (argc=1, argv=0xbfbd2e84) at /build/buildd/kdebase-workspace-4.2.0/plasma/shells/desktop/main.cpp:54
#35 0x08048712 in main (argc=) at /build/buildd/kdebase-workspace-4.2.0/obj-i486-linux-gnu/plasma/shells/desktop/plasma_qgv_dummy.cpp:3



Also, it would be cool if it supports offline translation like "ding" that uses dictionaries stored on the local disk.

Report

Mar91

11 years ago

Another thing..
I found that if you put a text in more than a line, transloid will translate only the first line.. Maybe string fault ?

Report

C

dridk

11 years ago

Good Idea!!! I added in my Todo List

Report

Mar91

11 years ago

The plasmoid is really usefull. I think you should make this improvement:
make the language in which convert the word as system language. ( Try to look to kde language using an api).
For example.
I am italian and i usually convert word or senteces from english to italian, i'd like that the plasmoid ask kde enviroment its language, and the plasmoid will set to it.
Ask if you didn't understand well =)

Report

torkiano

11 years ago

Thank you for the _most_ useful plasma-widget!!

Report

9 years ago

-clear code
-add Catalan flag
-Add language title
- use Frame for the maintitle.
- Correct some encodage bug
- and more....

===0.4
- use kde svn :
http://websvn.kde.org/trunk/playground/base/plasma/applets/translatoid
- use PopupApplet! Now, Translatoid can be dock inside the main bar!
- Change language selection method! Now, You have to click and a KlistWidget appear !
- Add Copy and Past button
- Add AutoDetection language in languageList
- Add TooTip Message

Now, I need translator for translate, this translator... :)

===0.4.1
add Licence
add GPL2 header
replace setIcon() by nativeWidget()->seticon()

=====0.5
Add ListWidgetFlag inside the plasma and it appear with a Plasma::Animation!
Add Voice TTS support.

TODO : auto select - enter key - flag disabled for fedora!

======0.6
-AutoPaste the copy selection and autotranslate when you active Popup.
-GrabKeyboard when you active Popup
-Add "Clear Button"
-remove Cancel Button from DialogBox
-Add Po language file.
- Change inverse language icon
- Add Fedora Package without flags

====0.6.1
- Add new Icon
- change name : translatoid to plasma-applet-translatoid

======0.7
add New popup icon which can change his flags
use KConfigGroup for save favorite language
add FavoriteLanguage config dialog
some update of the code

=======0.8
IMPORTANT RELEASE :
change the algorithm of source translation. Now it use Post Method. It means that you can translate big text. And if you type 1 word, it get you the dictionnary result ! :) Thanks lexnewton.
=======0.9
-add new flags list ! Use a plasma::treeview with a QAbstractModel
-copy from the clipboard! Now, you just have to select a source text from anywhere, and active the popup, by cliking on the popup, or by a plasma shortcut.
-Change QTextEdit source event. Now, press Enter to translate, and press Shift+Enter to add a new line.

=======1.0
Change icon
Change a lot by aseigo , use KJob, nice animation during translate.
change the structure of translatoid
Will remove voice button, because KTTSD do the same job.
add estonishlanguage
===RC
After some error of myself! This is the good one :
- Set text color with theme color
- save your automaticaly last languages in use.

==1.1beta==== MAJOR CORRECTION
Now Translatoid use extender
Add Reminder extender to remind you some word after clicking on the star
Replace parsing by Json parsing. YOU NEED TO INSTALL libqjson
Clear some code and probably add some new bug.. :)
If you have some probs, contact me!

---1.1
Add new language :
"Afrikaans"
"Albanais"
"Albanais"
"Belarusian"
"Irish""Icelandic"
"Macedonian"
"Malaysia"
"Maltese"
"Persan"
"Swahili"
"Turkish"
"Yiddish"

1.12 ( Minor fix)
Just fix Icon installation...Sorry)
A new release will come out quickly

1.2 ( Minor fix)
Correct Html rending

1.21
Correct text color in "remind" area

1.30
Correct Json parser with new Google Api. Thanks alex789

1.30 bis
dominique fix

12345678910
15
product-maker janet Aug 22 2015 9 excellent
product-maker Zolnierzu May 26 2012 9 excellent
product-maker fadnix Apr 04 2011 9 excellent
product-maker infectedsoundsystem Jan 19 2011 9 excellent
product-maker chepioq Jan 05 2011 3 bad
product-maker vitoubien Nov 30 2010 9 excellent
Be the first to comment
janet
Aug 22 2015
Zolnierzu
May 26 2012
papylhomme
Apr 18 2011
cruzki
Feb 14 2011
tigerfoot
Dec 12 2010
max99
Dec 05 2010
Senth
Aug 15 2010
Refused
Jun 21 2010
Siminin
Jan 11 2010
fadnix
Dec 06 2009
Leiche
Nov 25 2009
montoya
Nov 21 2009
jajaX
Nov 19 2009
lordlukas
Nov 19 2009
perezmeyer
Sep 30 2009
M3t4linux
Aug 18 2009
EinfachToll
Jul 28 2009
dualpretop
Jul 14 2009
Podstavsky
Jun 10 2009
jzakrzewski
Apr 30 2009
dkarnout
Apr 25 2009
gimox
Apr 21 2009
universe777
Apr 18 2009
okias
Mar 25 2009
brdn25
Mar 16 2009
glad
Mar 09 2009
mbaszczewski
Feb 26 2009
dimitrispan88
Feb 12 2009
its
Feb 12 2009
ingame
Feb 07 2009
torkiano
Jan 31 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.30
updated Nov 30 2010
added Jan 14 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1