tdf#161310 Translate My AutoText in Insert toolbar
Use same pattern as42e6e26255anddffdc0b199Change-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:
committed by
Mike Kaganski
parent
786ed5c3ad
commit
696eb4b4e5
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user