tdf#161310 Translate My AutoText in Insert toolbar

Use same pattern as 42e6e26255b21c1bfde893f5aaf23d4a37ecee91
and dffdc0b1995e2b24304ce0651ca886bbf9cf4f95

Change-Id: If36ecdcbb771bfcde9836203e84586045d039c8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169693
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 696eb4b4e55ce26cee9aee2c76a7125df91ae0d6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169739
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index 9a9b288..f40b9e9 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -91,6 +91,8 @@ void SwTbxAutoTextCtrl::CreatePopupWindow()
        for(size_t i = 1; i <= nGroupCount; ++i)
        {
            OUString sTitle = pGlossaryList->GetGroupTitle(i - 1);
            if (sTitle == "My AutoText")
                sTitle = SwResId(STR_MY_AUTOTEXT);
            const sal_uInt16 nBlockCount = pGlossaryList->GetBlockCount(i -1);
            auto const [it, _] = titles.insert(sTitle);
            size_t const menuIndex(::std::distance(titles.begin(), it));