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

st4nd3l

11 years ago

http://standa.schattke.cz/files/packages/plasma/plasma-applet-translatoid_0.61-1_i386.deb

Report

ingame

11 years ago

======0.6
- Change inverse language icon
_____________________________

1. Initially in OPENSUSE11.1/KDE4.2 no file latmove.png !!!
You may file a change of language originally included in the package ???

2. Error in icon catalan flag

Report

ingame

11 years ago

install for Suse user

cmake -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

But the problem remained for the change of language SUSE-user - there is no default in the distribution lastmoves.png file.

everything else works as it is ;)
Big thnx to to author ...

Report

rangerGR

11 years ago

Great work.

But can you keep the same folder structure into your tars? It makes a lot easier building your plasmoid with a script (a PKGBUILD for arch linux for example)
:)

Report

Fakakon

11 years ago

Thanks st4nd3l for de .deb :)

Report

st4nd3l

11 years ago

http://standa.schattke.cz/files/packages/plasma/plasma-translatoid_0.5-1_i386.deb

Report

eusonig

11 years ago

Amazing!!! You added TTS support and works great!. Two things only:

1) Configuration string saves your changes but, if you open configuration again "festival" is always selected.

2) A $LANG string like $SOURCE and $RESULT. Google uses international language codes like Espeak and other TTS systems and with your implementation TTS is valid for one language only.

As you can see, very small things compared with the big improvements of version 5.

Report

eliwap

11 years ago

Hi

This is a great plasmoid.

I'm working to get translatoid packaged and included into Fedora. We have a problem including the country flags due to packaging constraints. A patch has been developed and we've worked around the issue by replacing the country flags with country codes. The patch can currently be found at:

http://rezza.hofyland.cz/fedora/packages/kde-plasma-translatoid/kde-plasma-translatoid-ban-flags.patch

It is my feeling, of course if you are willing, that a better approach would be to provide the option to exclude the country flags.

If you can help with this issue, it would be very greatly appreaciated.

Thanks

Report

C

dridk

11 years ago

Hi, I m the translatoid developpers.
Why flag's doesn't work ?
Are you sure , you want disable all ? Maybe I can find a way! Exemple, I can integrate flags inside an other repertory!

Report

smihael

11 years ago

Maybe use of flags from Keyboard layout Systemsettings module

Report

ingame

11 years ago

schollidesig n, you're right ;)
I just changed the first and second languages by default on Russian and English in this file.Very convenient. :)

Report

schollidesign

11 years ago

Really a great tool! I have also managed to install it. Was not so hard;) Nevertheless, I have a problem with the icon between the two flags. What is the name of this icon? So I can include it in my IconSet. See my screenshot:

http://ubuntu-pics.de/bild/9433/bildschirmfoto_1_4PDo1v.png

Cheers

Report

ingame

11 years ago

I corrected this mistake in their own way.
Copy /usr/share/icons/kdeclassic/16x16/actions/hotsync.png in ' kbflags ' directory and changed line 101 in file ktranslatoid.cpp to

m_buttonChange->nativeWidget()->setIcon(KIcon("kbflags/hotsync.png"));

Delete all file in build-directory, recompile and install plasmoid. After this restart plasma-process.

it`s work :)
http://ubuntu-pics.de/bild/9485/trans_tV8h85.png

Report

ingame

11 years ago

I corrected this mistake in their own way.
Copy /usr/share/icons/kdeclassic/16x16/actions/hotsync.png in ' kbflags ' directory and changed line 101 in file ktranslatoid.cpp to

m_buttonChange->nativeWidget()->setIcon(KIcon("kbflags/hotsync.png"));

Delete all file in build-directory, recompile and install plasmoid. After this restart plasma-process.

it`s work :)
http://ubuntu-pics.de/bild/9485/trans_tV8h85.png

Report

ingame

11 years ago

I corrected this mistake in their own way.
Copy /usr/share/icons/kdeclassic/16x16/actions/hotsync.png in ' kbflags ' directory and changed line 101 in file ktranslatoid.cpp to

m_buttonChange->nativeWidget()->setIcon(KIcon("kbflags/hotsync.png"));

Delete all file in build-directory, recompile and install plasmoid. After this restart plasma-process.

it`s work :)
http://ubuntu-pics.de/bild/9485/trans_tV8h85.png

Report

schollidesign

11 years ago

Thank you ingame!!! You really was a big help ;) Greetings to russia :)

I did it so:

This go-next.png [we must stay with icons all IconSets contains ;) ] ...
http://ubuntu-pics.de/bild/9489/new_go_next_rLwx4h.png (rename it into "go-next.png" !!!)
comes into the ' kbflags ' directory and change the line 101 in ktranslatoid.cpp to:

m_buttonChange->nativeWidget()->setIcon(KIcon("kbflags/hotsync.png"));

In this source you can change also the first and the second language, too ;)


Delete all file in build-directory, recompile it so if you have Kubuntu or Suse installed:

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

Restart Plasma or reboot.

Finally you get this resuld:

http://ubuntu-pics.de/bild/9488/test2_Nc90T6.png

Thank you ingame and dridk for advance :)

Report

schollidesign

11 years ago

sry ... a mistake :(

correctly it is:

m_buttonChange->nativeWidget()->setIcon(KIcon("kbflags/go-next.png"));

;)

Report

ingame

11 years ago

I have also this bug :)

Report

ingame

11 years ago

Thanks - very useful plasmoid. I laid in OPENSUSE 11.1 KDE 4.2

Truth slightly different path to the installation

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

path from defauld suse11.1
/usr/lib/kde4/translatoid.so
/usr/share/kde4/services/plasma-applet-translatoid.desktop
/usr/share/icons/kbflags/*.png

Report

giorgioanzi

11 years ago

Hello,
I followed your README file but I don't have:
$KDEDIR/lib/kde4/translatoid.so
$KDEDIR/share/kde4/services/plasma-applet-translatoid.desktop


Where can I take translatoid.so in order to copy it in the right path?

Thanks in advance.

Giorgio

Report

schollidesign

11 years ago

Hi
I followed your install-instructions and restarted plasma.
If I searched for your Plasmoid I couldn't find ...
So I saw in your Readme-file:

If you don't have nighlty, you have to install :
$KDEDIR/lib/kde4/translatoid.so
$KDEDIR/share/kde4/services/plasma-applet-translatoid.desktop

If I need KDE-nightly I prefer to remove all from my hard-disk :( What I must delete for clean my system?

But maybe it isn't necessary if you can tell me how I get it run ... :)

Cheers

Report

C

dridk

11 years ago

be sure, you have : translatoid.so
and plasma-applet-translatoid.desktop
in good directory!
KDEDIR/lib/kde4/translatoid.so
KDEDIR/share/kde4/services/plasma-applet-translatoid.desktop

For exemple : locate plasma-applet-trash.desktop and plasma_applet_trash.so
And copy your file in the same directory corresponding.

Report

smihael

11 years ago

http://www.kde-look.org/content/show.php/translatoid+for+KUbuntu%2BDebian?content=97895

Report

gomezhyuuga1

11 years ago

Hello, i try to compile the plasmoid but an error appear when i put cmake configuration, the error is this:
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.0
-- Found KDE 4.2 include dir: /usr/include/kde4
-- Found KDE 4.2 library dir: /usr/lib/kde4/devel
-- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
-- Found automoc4: /usr/bin/automoc4
-- Configuring incomplete, errors occurred!

How can I do?

Report

gomezhyuuga1

11 years ago

Sorry I forget install gcc-c++ XD Now works

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 2