tdf#125447 get rid of ~ in STR_UNDO string

Change-Id: Ifdd3df50b98641785a4b1d258092efe531e98e7d
Reviewed-on: https://gerrit.libreoffice.org/72870
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/include/svtools/strings.hrc b/include/svtools/strings.hrc
index 76176fd..398129a 100644
--- a/include/svtools/strings.hrc
+++ b/include/svtools/strings.hrc
@@ -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")
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index 46b4f3d..c09b539 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -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));
        }
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 4741a51..5620f439 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -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
diff --git a/sw/source/uibase/wrtsh/wrtundo.cxx b/sw/source/uibase/wrtsh/wrtundo.cxx
index ee9c315..2cc9e54 100644
--- a/sw/source/uibase/wrtsh/wrtundo.cxx
+++ b/sw/source/uibase/wrtsh/wrtundo.cxx
@@ -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