Bug 71926 - wrong status text for KStdAction menu item
Summary: wrong status text for KStdAction menu item
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-05 19:42 UTC by Xiong Jiang
Modified: 2005-03-01 22:32 UTC (History)
0 users

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 Xiong Jiang 2004-01-05 19:42:36 UTC
Version:            (using KDE KDE 3.1.94)
Installed from:    Compiled From Sources
Compiler:          Gcc 3 
OS:          Linux

This problem is found in KDevelop.  The menuitem Preferences/&Configure KDevelop... is a KStdAction item, and the text "&Configure KDevelop..." is composed from i18n string "&Configure %1..." and app name "KDevelop".

The text on status bar for this menu item is "Configure KDevelop" in en_US locale. It is generated by manipulating the i18n string "&Configure %1..." to "Configure %1".

In many other language this won't work. For example in zh_CN we translate "&Configure %1..." to "???? %1 (&C)". So the forged status text in KDevelop becomes "???? KDevelop (C)". This is not neat or consistent with other status text.

Suggestion: don't manipulate i18n string "&Configure %1...", add to generate status text. Simply adding another i18n string "Configure %1" for KStdAction status text would correct it.
Comment 1 Stephan Binner 2004-01-05 19:51:25 UTC
beautifyToolTip() is a bad joke.
Comment 2 Matt Rogers 2005-03-01 22:32:14 UTC
CVS commit by mattr: 

Don't use beautifyToolTip on the KStdAction for 'Configure KDevelop'.
This fixes bug 71926 but since it involves an i18n change, so i won't backport
unless told to. Please advise.

BUG: 71926
CCMAIL: kde-i18n-doc@kde.org


  M +2 -2      mainwindowshare.cpp   1.50.2.1


--- kdevelop/src/mainwindowshare.cpp  #1.50:1.50.2.1
@@ -157,6 +157,6 @@ void MainWindowShare::createActions()
   action = KStdAction::preferences(this, SLOT(slotSettings()),
                 m_pMainWnd->actionCollection(), "settings_configure" );
-  action->setToolTip(beautifyToolTip(action->text()));
-  action->setWhatsThis(QString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you customize KDevelop.")));
+  action->setToolTip( i18n( "Configure KDevelop" ) );
+  action->setWhatsThis(QString("<b>%1</b><p>%2").arg(i18n( "Configure KDevelop" )).arg(i18n("Lets you customize KDevelop.")));
 
   m_toggleStatusbar = KStdAction::showToolbar(this, SLOT(slotToggleStatusbar()),m_pMainWnd->actionCollection(), "settings_statusbar");