Kaydet (Commit) ec266879 authored tarafından Caolán McNamara's avatar Caolán McNamara

tdf#125447 get rid of ~ in STR_UNDO string

Change-Id: Ifdd3df50b98641785a4b1d258092efe531e98e7d
Reviewed-on: https://gerrit.libreoffice.org/72870
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst dfc75c36
......@@ -22,8 +22,10 @@
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
// To translators: tdf#125447 use no mnemonic in this string
#define STR_UNDO NC_("STR_UNDO", "Undo: ")
#define STR_REDO NC_("STR_REDO", "Re~do: ")
// To translators: tdf#125447 use no mnemonic in this string
#define STR_REDO NC_("STR_REDO", "Redo: ")
#define STR_REPEAT NC_("STR_REPEAT", "~Repeat: ")
#define STR_FORMAT_STRING NC_("STR_FORMAT_STRING", "Unformatted text")
......
......@@ -79,7 +79,6 @@
#include <basic/sbstar.hxx>
#include <basic/sberrors.hxx>
#include <xmloff/autolayout.hxx>
#include <vcl/mnemonic.hxx>
using namespace ::com::sun::star;
......@@ -172,7 +171,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
{
// Set the necessary string like in
// sfx2/source/view/viewfrm.cxx ver 1.23 ln 1081 ff.
OUString aTmp(MnemonicGenerator::EraseAllMnemonicChars(SvtResId(STR_REDO)));
OUString aTmp(SvtResId(STR_REDO));
aTmp += pUndoManager->GetRedoActionComment();
rSet.Put(SfxStringItem(SID_REDO, aTmp));
}
......
......@@ -35,7 +35,6 @@
#include <officecfg/Office/Common.hxx>
#include <officecfg/Setup.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/mnemonic.hxx>
#include <vcl/splitwin.hxx>
#include <unotools/moduleoptions.hxx>
#include <svl/intitem.hxx>
......@@ -998,7 +997,7 @@ void SfxViewFrame::StateHistory_Impl( SfxItemSet &rSet )
}
else
{
rSet.Put( SfxStringItem( SID_REDO, MnemonicGenerator::EraseAllMnemonicChars(SvtResId(STR_REDO))+pShUndoMgr->GetRedoActionComment() ) );
rSet.Put(SfxStringItem(SID_REDO, SvtResId(STR_REDO) + pShUndoMgr->GetRedoActionComment()));
}
}
else
......
......@@ -25,7 +25,6 @@
#include <swdtflvr.hxx>
#include <svtools/svtresid.hxx>
#include <svtools/strings.hrc>
#include <vcl/mnemonic.hxx>
// Undo ends all modes. If a selection is emerged by the Undo,
// this must be considered for further action.
......@@ -109,7 +108,7 @@ OUString SwWrtShell::GetDoString( DoType eDoType ) const
default:;//prevent warning
}
return MnemonicGenerator::EraseAllMnemonicChars(SvtResId(pResStr)) + aUndoStr;
return SvtResId(pResStr) + aUndoStr;
}
void SwWrtShell::GetDoStrings( DoType eDoType, SfxStringListItem& rStrs ) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment