summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2017-08-17 01:02:26 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-08-24 16:08:48 +0200
commitdffdc0b1995e2b24304ce0651ca886bbf9cf4f95 (patch)
tree7564ea31f9ba23056366607771bf5df530ad937f
parentb766cab621690a3aaf4e10fcf925ebab1c1925b8 (diff)
tdf#111870 Translate the "My AutoText" string in the Edit Categories window
Change-Id: I483fa998d140c8458948fe19c5338e7af0d32527 Reviewed-on: https://gerrit.libreoffice.org/41234 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r--sw/source/ui/misc/glosbib.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index 401d4901859b..a3db641950c8 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -94,6 +94,9 @@ SwGlossaryGroupDlg::SwGlossaryGroupDlg(vcl::Window * pParent,
m_pPathLB->Enable();
const size_t nCount = pHdl->GetGroupCnt();
+ /* tdf#111870 "My AutoText" comes from mytexts.bau but should be translated
+ here as well, see also SwGlossaryDlg::Init */
+ const OUString sMyAutoTextEnglish("My AutoText");
for( size_t i = 0; i < nCount; ++i)
{
OUString sTitle;
@@ -102,9 +105,12 @@ SwGlossaryGroupDlg::SwGlossaryGroupDlg(vcl::Window * pParent,
continue;
GlosBibUserData* pData = new GlosBibUserData;
pData->sGroupName = sGroup;
- pData->sGroupTitle = sTitle;
+ if ( sTitle == sMyAutoTextEnglish )
+ pData->sGroupTitle = SwResId(STR_MY_AUTOTEXT);
+ else
+ pData->sGroupTitle = sTitle;
pData->sPath = m_pPathLB->GetEntry(sGroup.getToken(1, GLOS_DELIM).toInt32());
- SvTreeListEntry* pEntry = m_pGroupTLB->InsertEntry(sTitle + "\t" + pData->sPath);
+ SvTreeListEntry* pEntry = m_pGroupTLB->InsertEntry(pData->sGroupTitle + "\t" + pData->sPath);
pEntry->SetUserData(pData);
}