tdf#161310 Translate My AutoText in Insert toolbar

Use same pattern as 42e6e26255
and dffdc0b199

Change-Id: If36ecdcbb771bfcde9836203e84586045d039c8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169693
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Aron Budea
2024-06-30 06:27:05 +02:00
committed by Mike Kaganski
parent 786ed5c3ad
commit 696eb4b4e5
+2
View File
@@ -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));