summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-09-19 20:23:49 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-09-19 20:26:59 +0200
commita48d072f5c022fce4f5eec7bca3139c3673dbf49 (patch)
tree5c52bb1d61a62006015355c0f7b18b412b8cad93 /editeng
parentfdo#48729 Change int16->int32 in auto replace dialog. (diff)
downloadcore-a48d072f5c022fce4f5eec7bca3139c3673dbf49.tar.gz
core-a48d072f5c022fce4f5eec7bca3139c3673dbf49.zip
Translate German comments and a little cleanup of code in svxacorr.cxx.
Change-Id: I6c2bc67a2b837adf9c12c5e93200fc1567732da3
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 68c0d29547d3..9d618a6d327e 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1499,7 +1499,7 @@ sal_Bool SvxAutoCorrect::AddWrtSttException( const String& rNew,
else if(CreateLanguageFile(LANGUAGE_DONTKNOW, sal_True))
pLists = pLangTable->find(LANGUAGE_DONTKNOW)->second;
}
- OSL_ENSURE(pLists, "keine Autokorrekturdatei");
+ OSL_ENSURE(pLists, "No auto correction file!");
return pLists->AddToWrdSttExceptList(rNew);
}
@@ -1552,8 +1552,9 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
{
OSL_ENSURE(pLangTable->find(eLang) == pLangTable->end(), "Language already exists ");
- String sUserDirFile( GetAutoCorrFileName( eLang, sal_True, sal_False )),
- sShareDirFile( sUserDirFile );
+ String sUserDirFile( GetAutoCorrFileName( eLang, sal_True, sal_False ));
+ String sShareDirFile( sUserDirFile );
+
SvxAutoCorrectLanguageListsPtr pLists = 0;
Time nMinTime( 0, 2 ), nAktTime( Time::SYSTEM ), nLastCheckTime( Time::EMPTY );
@@ -1568,8 +1569,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
if( bNewFile )
{
sShareDirFile = sUserDirFile;
- pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile,
- sUserDirFile );
+ pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile, sUserDirFile );
pLangTable->insert(eLang, pLists);
aLastFileTable.erase(nFndPos);
}
@@ -1579,8 +1579,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
GetAutoCorrFileName( eLang, sal_False, sal_False ) ) ) ||
( sShareDirFile = sUserDirFile, bNewFile ))
{
- pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile,
- sUserDirFile );
+ pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile, sUserDirFile );
pLangTable->insert(eLang, pLists);
if (nFndPos != aLastFileTable.end())
aLastFileTable.erase(nFndPos);
@@ -1683,7 +1682,7 @@ static const SvxAutocorrWord* lcl_SearchWordsInList(
}
-// the search or the words in the substitution table
+// the search for the words in the substitution table
const SvxAutocorrWord* SvxAutoCorrect::SearchWordsInList(
const String& rTxt, xub_StrLen& rStt, xub_StrLen nEndPos,
SvxAutoCorrDoc& rDoc, LanguageType& rLang )