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

eliwap

10 years ago

K. Thanks for that.

Three more things.

In passing I noticed that the Yiddish translation was not working.

The second... Do you know if the fix that you have suggested works with kde 4.3.4 or is it just for 4.4?

Last... Are you aware if the fixes you have suggested will be packaged in an official release soon?

Report

3

chepioq

10 years ago

Hi...
1) I also notice that Yiddish translation was not working.
2) The fix I have suggested work also for Kde 4.3 (I test it with ths svn version of Translatoid.)
3) I am not the maintainer of Translatoid, send your question to dridk, who has create this plasmoid...

Report

eliwap

10 years ago

Thank you very much for your help and for the information.

Eli

Report

eliwap

10 years ago

Hi

I;m the package maintainer for kde-plasma-translatoid for Fedora.

I have built and installed tranlatoid 1.1 and installed against qjson 0.7.1 and kde 4.4 RC1.

On top of the problem of accepting only one sentence, the translation is always produced with a trailing </hr>

It would seem that there is some kine of parsing error.

I hope that this can be fixed.

Thanks

Eli

Report

eliwap

10 years ago

One other thing to note, I compiled Translatoid from SVN available earlier today, and the problem persists

Report

3

chepioq

10 years ago

I have same problem with fedora rawhide and kde 4.4
There is <hr/> at end of translation.
I look for code and I change in "ktranslatoid.cpp" the line 342:
textToReturn+="<hr/>";

to

textToReturn+="";

and now I have not the <hr/> at the end of translation...

Report

eliwap

10 years ago

Confirmed. That the trailing </hr> tag is gone. Well done :)

However, I can still only translate 1 sentence.

Report

3

chepioq

10 years ago

Quote:However, I can still only translate 1 sentence.
I have not this problem, I can translate more than one sentence...

Report

eliwap

10 years ago

OK... :) I just build translatoid from svn and made the suggested change. And yes. I can translate more than one sentence.

Report

eliwap

10 years ago

The patch seems to be working. Thanks for that.

Eli

Report

ronanjardim

10 years ago

This problem is caused because the plasmoid try to ouput HTML text without passing <HTML><BODY> tags.

The best option is to add <HTML><BODY> tags before the text to be displayed and </BODY></HTML> after. I have done this with the following patch and everything is working fine with kde 4.4.

The option mentioned before doesn't solve the problem that occurs if you try to translate only one word, when google also send other informations and HTML tags is displayed on translatoid (<b>, </b>, etc)

Patch:

--- old/translatoid/ktranslatoid.cpp 2010-02-25 14:45:17.494316281 -0300
+++ new/translatoid/ktranslatoid.cpp 2010-02-25 14:36:33.006314441 -0300
@@ -327,7 +327,7 @@
if (result.contains("dict"))
dict = result["dict"].toList();

-
+ textToReturn += "<HTML><BODY>";
foreach (QVariant trad , sentences)
{

@@ -363,6 +363,7 @@
}

textToReturn += dictionnary;
+ textToReturn += "</BODY></HTML>";
m_destText->setText(textToReturn);
}

Regards,
Ronan Arraes Jardim Chagas

Report

eliwap

10 years ago

Looked at 1.1 on KDE 4.3.4 the </hr> tag isn't there but Translatoid still only returned the translation of the first of multiple sentence text.

Report

qwertz-1

10 years ago

Why is the size of the applet set so strictly? I would like to make the applet smaller but it is not possible. I don't want it so big. Can you please allow to change size of the applet? Thanks

Report

3

chepioq

10 years ago

In your README file you wrote:
Quote:Compiled with kde 4.2.60 ( neon projet)
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/kde-nightly/
But with that I have no flag.
I have flags with:
Quote:cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

And Translatoid work fine.

Report

C

dridk

11 years ago

"Multi sentence translation" bug is now correctec and avaible on svn.

About translatoid , please send me any suggestion to improve it. Interface ? New fonctionnality ? etc?....

Report

Leiche

11 years ago

Hi,

works now fine, but i need the app a little bit smaller.
http://img213.imageshack.us/img213/2401/bild15.jpg

So can you it do?

Thanks...

Report

alex789

10 years ago

+1

last version of translatoid is very big - I need small plasmoid

Please, fix it

thanks

Report

C

dridk

11 years ago

Ok I will do it.

Otherwise, you can propose a patch. You just have to change some setStyleSheet in ktranskatoid.cpo

Report

Leiche

11 years ago

done it, but created not a patch, because i've no idea , how to that...

Report

montoya

11 years ago

In google-translate page, there are more available language, for example "Hungarian", and more :)

Moreover, the tips "Do you remember", for me, must be hide at default. It will be visible while user press the button in the bottom.

Sorry for my bad english :)

Report

ingame

11 years ago

If after the point at the end of the first sentence and the beginning of the second sentence there is no space, the first word of the second sentence is not translated.

Report

C

dridk

11 years ago

Bug corrected on SVN.
IF you want the new release, upload it from svn.

Report

montoya

11 years ago

Are you sure? The last commit was in 20 nov 2009...

Report

lukipuki

11 years ago

I got this strange result (translating from Swedish to English):
stängs

{"sentences":[{"trans":"closed","orig":"stängs","translit":""}],"src":"sv"}

Maybe Google has changed the API. Can you correct this? I am using SVN revision 1052859.

And Sweden has the wrong flag in the list, but this is just a minor issue.

Report

lukipuki

11 years ago

Oh sorry, this works in the SVN version. I installed the SVN version but 0.9 was still active on my desktop. Also the Swedish flag was fixed.

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 6