
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
translator using google translator!
And it's my first plasmoids!!
svn co svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/translatoid
10 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
10 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
eusonig
11 years ago
/storage/auxiliar/descargas/translatoid/ktranslatoid.cpp: In member function ‘void KTranslatoid::constructForm()’:
/storage/auxiliar/descargas/translatoid/ktranslatoid.cpp:116: error: ‘class Plasma::ToolButton’ has no member named ‘setIcon’
/storage/auxiliar/descargas/translatoid/ktranslatoid.cpp:117: error: ‘class Plasma::ToolButton’ has no member named ‘setIcon’
make[2]: *** [CMakeFiles/translatoid.dir/ktranslatoid.o] Error 1
make[1]: *** [CMakeFiles/translatoid.dir/all] Error 2
make: *** [all] Error 2
I'm using KDE 4.2 final release.
Report
horchi
11 years ago
here the same compile error on KDE 4.2.
It compiles after changing this two lines in ktransloid.cpp:
// pastButton->setMinimumSize(QSize(20,20));
// copyButton->setMinimumSize(QSize(20,20));
pastButton->setImage("edit-paste.png");
copyButton->setImage("edit-copy.png");
But unfortunately it don't appear in the 'add plasmoid' dialog, even after restarting plasma.
Regards
horchi
Report
eusonig
11 years ago
pastButton->nativeWidget()->setIcon(KIcon("edit-paste.png"));
copyButton->nativeWidget()->setIcon(KIcon("edit-copy.png"));
works for me.
Report
dridk
11 years ago
Report
eliwap
11 years ago
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
Report
horchi
11 years ago
// pastButton->setIcon(KIcon("edit-paste.png"));
// copyButton->setIcon(KIcon("edit-copy.png"));
pastButton->setImage("edit-paste.png");
copyButton->setImage("edit-copy.png");
Compile and install works fine but i still can't find the plasmoid in the add dialog ... ?
horchi
Report
dridk
11 years ago
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
horchi
11 years ago
yes, both in the same directory than the files of the other plugins, the right mask looks also good, even a complete KDE restart doesn't help
20:12:56,wendel@horchi:/data/src/plasmoids/translatoid> dir /usr/lib/kde4/translatoid.so /usr/share/kde4/services/plasma-applet-translatoid.desktop
-rw-r--r-- 1 root root 86948 2009-01-31 11:12 /usr/lib/kde4/translatoid.so
-rw-r--r-- 1 root root 592 2009-01-31 11:12 /usr/share/kde4/services/plasma-applet-translatoid.desktop
20:13:36,wendel@horchi:/data/src/plasmoids/translatoid> file /usr/lib/kde4/translatoid.so /usr/share/kde4/services/plasma-applet-translatoid.desktop
/usr/lib/kde4/translatoid.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
/usr/share/kde4/services/plasma-applet-translatoid.desktop: ASCII text
Regards
horchi
Report
horchi
11 years ago
Thanks, nice plugin!
Regards
horchi
Report
eliwap
11 years ago
pastButton->setMinimumSize(QSize(20,20));
copyButton->setMinimumSize(QSize(20,20));
// pastButton->setImage("edit-paste.png");
// copyButton->setImage("edit-copy.png");
Report
kozer
12 years ago
BTW very useful plasmoid
Thank you
Report
eusonig
12 years ago
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/lib/kde4/translatoid.so
-- Up-to-date: /usr/share/kde4/services/plasma-applet-translatoid.desktop
CMake Error at cmake_install.cmake:51 (FILE):
file INSTALL cannot find file
"/storage/auxiliar/descargas/translatoid/title.png" to install.
Report
dridk
12 years ago
#install(
# FILES title.png
# DESTINATION ${ICON_INSTALL_DIR}
# )
Report
rbb
12 years ago
It flickers between white and the default window theme background.
Using 4.1.96.
Report
dridk
12 years ago
http://dridk.blogspot.com/2009/01/translation-tool-for-help-developpers.html
hoping that this will be useful like for me
Report
eusonig
12 years ago
Now a few hotkeys suggestions :).
1) A hotkey to translate it would be great. For example Ctrl+Enter.
2) Also a hotkey to swap translation would be useful.
3) Finally a hotkey to send the translation to the clipboard.
Translatoid is great but its use is a little slow.
And a bug:
1) The context menu of controls is hidden by other controls.
Report
dridk
12 years ago
http://dridk.blogspot.com/2009/01/translation-tool-for-help-developpers.html
hoping that this will be useful like for me
About the bug in context... it's from qt.. need to wait...
Report
eusonig
12 years ago
One tip, you only need:
echo $resultat | xsel -b
to put translated text into the clipboard with xsel.
On the other hand, I like more display translated text with kdialog --passivepopup that --msgbox.
Report
eusonig
12 years ago
qdbus org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents "$TRANSLATED_TEXT"
Report
rajputrajat
12 years ago
Report
smihael
12 years ago
Report
dridk
12 years ago
http://www.qt-apps.org/content/show.php/gtranslate?content=97863
Report
eusonig
12 years ago
en: It's great!
ja: ããã¯ãããï¼
but translating from japanese to english works well:
ja: すごいですね!
en: It's great!
On the other side, a button to quick toggle languages must be useful :).
Report
dridk
12 years ago
Report
eusonig
12 years ago
I hope you fix this soon, and put a swap button ;), because your plasmoid is great.
Report