Kaydet (Commit) dffdc0b1 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Katarina Behrens

tdf#111870 Translate the "My AutoText" string in the Edit Categories window

Change-Id: I483fa998d140c8458948fe19c5338e7af0d32527
Reviewed-on: https://gerrit.libreoffice.org/41234Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst b766cab6
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment