we are showing the shortcut to the user so use QKeySequence::NativeText to get it translated

svn path=/trunk/KDE/kdebase/workspace/; revision=878359
This commit is contained in:
Albert Astals Cid 2008-10-31 23:51:01 +00:00
parent 6581455b93
commit 102be68572

View file

@ -2466,7 +2466,7 @@ void Workspace::helperDialog( const QString& message, const Client* c )
KAction* action = qobject_cast<KAction*>(keys->action( "Window Operations Menu" ));
assert( action != NULL );
QString shortcut = QString( "%1 (%2)" ).arg( action->text() )
.arg( action->globalShortcut().primary().toString());
.arg( action->globalShortcut().primary().toString(QKeySequence::NativeText));
args << "--msgbox" <<
i18n( "You have selected to show a window without its border.\n"
"Without the border, you will not be able to enable the border "
@ -2480,7 +2480,7 @@ void Workspace::helperDialog( const QString& message, const Client* c )
KAction* action = qobject_cast<KAction*>(keys->action( "Window Operations Menu" ));
assert( action != NULL );
QString shortcut = QString( "%1 (%2)" ).arg( action->text() )
.arg( action->globalShortcut().primary().toString());
.arg( action->globalShortcut().primary().toString(QKeySequence::NativeText));
args << "--msgbox" <<
i18n( "You have selected to show a window in fullscreen mode.\n"
"If the application itself does not have an option to turn the fullscreen "