sw/source/uibase/dochdl/gloshdl.cxx | 5 ++++- sw/source/uibase/inc/selglos.hxx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-)
New commits: commit 593df89a655d19e009dd067e1b6e5508251f695d Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Tue Jan 14 13:17:22 2025 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Jan 15 15:43:47 2025 +0100 The ':' separator without spaces was difficult to read on UI Change-Id: I0886518f254659b6e9c1c242a9331b85e471dd62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180233 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sw/source/uibase/inc/selglos.hxx b/sw/source/uibase/inc/selglos.hxx index fd5de379631a..4273d43e12d8 100644 --- a/sw/source/uibase/inc/selglos.hxx +++ b/sw/source/uibase/inc/selglos.hxx @@ -37,7 +37,7 @@ public: void InsertGlos(std::u16string_view rRegion, std::u16string_view rGlosName) { - const OUString aTmp = OUString::Concat(rRegion) + ":" + rGlosName; + const OUString aTmp = OUString::Concat(rRegion) + " - " + rGlosName; m_xGlosBox->append_text(aTmp); } sal_Int32 GetSelectedIdx() const commit eb0cb45bdc6d3683d1dc6052205070b73e4032c5 Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Tue Jan 14 13:08:50 2025 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Jan 15 15:43:39 2025 +0100 Localize "My AutoText" one more place Change-Id: Ia743818dc5aacbc11f41154692bbf79f32eeb50d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180232 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index ec9cb818d9a0..5f746df07528 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -440,7 +440,10 @@ bool SwGlossaryHdl::Expand(weld::Window* pParent, const OUString& rShortName, ScopedVclPtr<AbstractSwSelGlossaryDlg> pDlg(pFact->CreateSwSelGlossaryDlg(pParent, aShortName)); for(const TextBlockInfo_Impl & i : aFoundArr) { - pDlg->InsertGlos(i.sTitle, i.sLongName); + if (i.sTitle == "My AutoText") + pDlg->InsertGlos(SwResId(STR_MY_AUTOTEXT), i.sLongName); + else + pDlg->InsertGlos(i.sTitle, i.sLongName); } pDlg->SelectEntryPos(0); const sal_Int32 nRet = RET_OK == pDlg->Execute() ?