Bug 126470 - A typo is in the first 3 Buttons of KMAIL (new mail, save and print) there is a space behind the tool tips
Summary: A typo is in the first 3 Buttons of KMAIL (new mail, save and print) there is...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 0.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-29 14:17 UTC by Mac
Modified: 2009-12-25 23:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mac 2006-04-29 14:17:51 UTC
Version:           1.9.1 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu0 breezy)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.12-10-k7

After the buttons "new mail", "save mail" and "print" is a space after the last word in the tool tip. It's in the German translation. Also behind "search message" is a space in the tool tip.

I will write the report in German, too, because i saw that in the german translation:

Hinter "Neue Nachricht", "Speichern unter" und "Drucken" also den die Tool Tips der ersten Drei buttons, sowieso hinter dem Tool Tip von Drucken ist ein leerzeichen zu viel.
Comment 1 Stephan Johach 2006-09-24 12:33:59 UTC
I had a look, and I see it too here with current branch translations. But there is no translation string "Neue Nachricht " anywhere, so I suspect this is a QT issue when calculating the width of the tooltip. There are other tooltips e.g. in konqueror like "Webseite archivieren" with a trailing blank space.
Comment 2 Thomas Reitelbach 2006-10-21 18:45:43 UTC
It's a bug somewhere in KDEs code, probably somewhere in the libs for KAction.

The Tool Tip name is automatically generated from the original action name, which is in this case "Neue Nachricht ...". Obviously the code generates the tool tip name by simply cutting off the last three characters from "Neue Nachricht ..." which results in the trailing space.

This is confusing and i guess it will lead to much more trouble in other languages.
Comment 3 Thomas Reitelbach 2006-10-21 19:26:11 UTC
Ok, at least i know that the tooltip is beeing generated from the menutext of the action. Qt actually tries to strip the trailing white space from it:

/usr/lib/qt3/src/widgets/qaction.cpp has this code:
static QString qt_stripMenuText( QString s )
{
    s.remove( QString::fromLatin1("...") );
    s.remove( QChar('&' ) );
    return s.stripWhiteSpace();
}

Either stripWhiteSpace() does not work for whatever reason or some KDE code re-adds the trailing whitespace afterwards.

But one thing is definitely clear: It's not a translators fault, so i can't do anything more :( The KMail developers aren't responsible either. So whom do we assign this bug now?
Comment 4 Björn Ruberg 2009-12-25 23:36:13 UTC
Cannot confirm in KDE 4.3