Helping translators by putting widget's text into clipboard
Nick Shaforostoff
shaforostoff at gmail.com
Wed Sep 10 11:11:00 BST 2008
I'd like to reimplement QApplication::x11EventFilter in KApplication
to detect some special action (e.g. middle mouse button double
clicking), then, if the widget under the mouse (via qwidget::find())
is qlabel, qmenu, qbutton, qcheckbox etc, put it's text into clipboard
and (optionaly) run some qprocess (defined in hidden config property -
for example run lokalize and try to find this message).
This hack will only be enabled when e.g. --clicktocopy option is specified.
of course this won't work for special cases like %1 substituions, but
still i believe this would ease translator's life a lot - bacause this
way he/she knows the context of the message so can translate it better
(higher quality)
ok for me to proceed?
More information about the kde-core-devel
mailing list