Kaydet (Commit) ba18e945 authored tarafından Matthias Freund's avatar Matthias Freund Kaydeden (comit) Markus Mohrhard

Comment translation - german-english - 3 files

I'm struggeling over line 407 in sw/source/core/edit/acorrect.cxx, is this the right translation.
Is this a question or is it a description what happens in the moment???

Change-Id: Ie665a8dffc41ee057c0277788282eea96cbbe6a3
Reviewed-on: https://gerrit.libreoffice.org/2157Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst a60712be
...@@ -333,8 +333,8 @@ const SwTable* SwDoc::InsertTable( const SwInsertTableOptions& rInsTblOpts, ...@@ -333,8 +333,8 @@ const SwTable* SwDoc::InsertTable( const SwInsertTableOptions& rInsTblOpts,
sal_Bool bCalledFromShell, sal_Bool bCalledFromShell,
sal_Bool bNewModel ) sal_Bool bNewModel )
{ {
OSL_ENSURE( nRows, "Tabelle ohne Zeile?" ); OSL_ENSURE( nRows, "Table without line?" );
OSL_ENSURE( nCols, "Tabelle ohne Spalten?" ); OSL_ENSURE( nCols, "Table without rows?" );
{ {
// Do not copy into Footnotes! // Do not copy into Footnotes!
...@@ -1398,7 +1398,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodes::TableRanges_t & rTableNodes, ...@@ -1398,7 +1398,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodes::TableRanges_t & rTableNodes,
aCellNodeIdx = SwNodeIndex( *aCellNodeIdx.GetNode().EndOfSectionNode() ); aCellNodeIdx = SwNodeIndex( *aCellNodeIdx.GetNode().EndOfSectionNode() );
} }
// Section der Box zuweisen // assign Section to the Box
pBox = new SwTableBox( pBoxFmt, *pSttNd, pLine ); pBox = new SwTableBox( pBoxFmt, *pSttNd, pLine );
pLine->GetTabBoxes().insert( pLine->GetTabBoxes().begin() + nBoxes++, pBox ); pLine->GetTabBoxes().insert( pLine->GetTabBoxes().begin() + nBoxes++, pBox );
} }
...@@ -3086,7 +3086,7 @@ sal_uInt16 aTableSplitBoxSetRange[] = { ...@@ -3086,7 +3086,7 @@ sal_uInt16 aTableSplitBoxSetRange[] = {
} }
} }
// bedingte Vorlage beachten // note conditional template
pBox->GetSttNd()->CheckSectionCondColl(); pBox->GetSttNd()->CheckSectionCondColl();
} }
} }
......
...@@ -64,7 +64,7 @@ _PaMIntoCrsrShellRing::_PaMIntoCrsrShellRing( SwCrsrShell& rCSh, ...@@ -64,7 +64,7 @@ _PaMIntoCrsrShellRing::_PaMIntoCrsrShellRing( SwCrsrShell& rCSh,
} }
_PaMIntoCrsrShellRing::~_PaMIntoCrsrShellRing() _PaMIntoCrsrShellRing::~_PaMIntoCrsrShellRing()
{ {
// und den Pam wieder herausnehmen: // and take out the Pam again:
RemoveFromRing( rDelPam, pPrevDelPam ); RemoveFromRing( rDelPam, pPrevDelPam );
RemoveFromRing( rCrsr, pPrevCrsr ); RemoveFromRing( rCrsr, pPrevCrsr );
} }
...@@ -102,8 +102,8 @@ void SwAutoCorrDoc::DeleteSel( SwPaM& rDelPam ) ...@@ -102,8 +102,8 @@ void SwAutoCorrDoc::DeleteSel( SwPaM& rDelPam )
SwDoc* pDoc = rEditSh.GetDoc(); SwDoc* pDoc = rEditSh.GetDoc();
if( pDoc->IsAutoFmtRedline() ) if( pDoc->IsAutoFmtRedline() )
{ {
// damit der DelPam auch verschoben wird, in den Shell-Cursr-Ring // so that also the DelPam be moved, include it in the
// mit aufnehmen !! // Shell-Cursr-Ring !!
_PaMIntoCrsrShellRing aTmp( rEditSh, rCrsr, rDelPam ); _PaMIntoCrsrShellRing aTmp( rEditSh, rCrsr, rDelPam );
pDoc->DeleteAndJoin( rDelPam ); pDoc->DeleteAndJoin( rDelPam );
} }
...@@ -181,7 +181,7 @@ sal_Bool SwAutoCorrDoc::ReplaceRange( xub_StrLen nPos, xub_StrLen nSourceLength, ...@@ -181,7 +181,7 @@ sal_Bool SwAutoCorrDoc::ReplaceRange( xub_StrLen nPos, xub_StrLen nSourceLength,
if( pDoc->IsAutoFmtRedline() ) if( pDoc->IsAutoFmtRedline() )
{ {
if( nPos == pNd->GetTxt().Len() ) // am Ende erfolgt ein Insert if( nPos == pNd->GetTxt().Len() ) // at the End an Insert takes place
{ {
pDoc->InsertString( *pPam, rTxt ); pDoc->InsertString( *pPam, rTxt );
} }
...@@ -271,13 +271,13 @@ sal_Bool SwAutoCorrDoc::SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const Str ...@@ -271,13 +271,13 @@ sal_Bool SwAutoCorrDoc::SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const Str
return sal_True; return sal_True;
} }
// returne den Text eines vorherigen Absatzes. // Return the text of a previous paragraph
// Dieser darf nicht leer sein! // This must not be empty!
// Gibt es diesen nicht oder gibt es davor nur Leere, dann returne 0 // Does this not exists or there are only blankness, then return 0
// Das Flag gibt an: // The Flag specifies:
// sal_True: den, vor der normalen Einfuegeposition (sal_True) // sal_True: that, before the normal insert position
// sal_False: den, in den das korrigierte Wort eingfuegt wurde. //sal_False: that, in which the corrected word was inserted.
// (Muss nicht der gleiche Absatz sein!!!!) // (Doesn't need to be the same paragraph!!!!)
const String* SwAutoCorrDoc::GetPrevPara( sal_Bool bAtNormalPos ) const String* SwAutoCorrDoc::GetPrevPara( sal_Bool bAtNormalPos )
{ {
const String* pStr = 0; const String* pStr = 0;
...@@ -309,10 +309,10 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo ...@@ -309,10 +309,10 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo
if( bUndoIdInitialized ) if( bUndoIdInitialized )
bUndoIdInitialized = true; bUndoIdInitialized = true;
// Absatz-Anfang oder ein Blank gefunden, suche nach dem Wort // Found a beginning of a paragraph or a Blank,
// Kuerzel im Auto // search for the word Kuerzel (Shortcut) in the Auto
SwTxtNode* pTxtNd = rCrsr.GetNode()->GetTxtNode(); SwTxtNode* pTxtNd = rCrsr.GetNode()->GetTxtNode();
OSL_ENSURE( pTxtNd, "wo ist denn der TextNode?" ); OSL_ENSURE( pTxtNd, "where is the TextNode?" );
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
if( nEndPos == rSttPos ) if( nEndPos == rSttPos )
...@@ -322,7 +322,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo ...@@ -322,7 +322,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo
if(LANGUAGE_SYSTEM == eLang) if(LANGUAGE_SYSTEM == eLang)
eLang = GetAppLanguage(); eLang = GetAppLanguage();
//JP 22.04.99: Bug 63883 - Sonderbehandlung fuer Punkte. //JP 22.04.99: Bug 63883 - Special treatment for dots.
bool bLastCharIsPoint = nEndPos < pTxtNd->GetTxt().Len() && bool bLastCharIsPoint = nEndPos < pTxtNd->GetTxt().Len() &&
'.' == pTxtNd->GetTxt().GetChar( nEndPos ); '.' == pTxtNd->GetTxt().GetChar( nEndPos );
...@@ -336,7 +336,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo ...@@ -336,7 +336,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo
if( pFnd->IsTextOnly() ) if( pFnd->IsTextOnly() )
{ {
//JP 22.04.99: Bug 63883 - Sonderbehandlung fuer Punkte. //JP 22.04.99: Bug 63883 - Special treatment for dots.
if( !bLastCharIsPoint || !pFnd->GetLong().Len() || if( !bLastCharIsPoint || !pFnd->GetLong().Len() ||
'.' != pFnd->GetLong().GetChar( pFnd->GetLong().Len() - 1 ) ) '.' != pFnd->GetLong().GetChar( pFnd->GetLong().Len() - 1 ) )
{ {
...@@ -356,7 +356,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo ...@@ -356,7 +356,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo
if( ppPara ) if( ppPara )
{ {
OSL_ENSURE( !pIdx, "wer hat seinen Index nicht geloescht?" ); OSL_ENSURE( !pIdx, "who has not deleted his Index?" );
pIdx = new SwNodeIndex( rCrsr.GetPoint()->nNode, -1 ); pIdx = new SwNodeIndex( rCrsr.GetPoint()->nNode, -1 );
} }
...@@ -374,7 +374,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo ...@@ -374,7 +374,7 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo
} }
aCpyPam.SetMark(); aCpyPam.SetMark();
// dann bis zum Ende vom Nodes Array // then until the end of the Nodes Array
aCpyPam.GetPoint()->nNode.Assign( pAutoDoc->GetNodes().GetEndOfContent(), -1 ); aCpyPam.GetPoint()->nNode.Assign( pAutoDoc->GetNodes().GetEndOfContent(), -1 );
pCntntNd = aCpyPam.GetCntntNode(); pCntntNd = aCpyPam.GetCntntNode();
aCpyPam.GetPoint()->nContent.Assign( pCntntNd, pCntntNd->Len() ); aCpyPam.GetPoint()->nContent.Assign( pCntntNd, pCntntNd->Len() );
...@@ -404,11 +404,11 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo ...@@ -404,11 +404,11 @@ sal_Bool SwAutoCorrDoc::ChgAutoCorrWord( xub_StrLen & rSttPos, xub_StrLen nEndPo
} }
// wird nach dem austauschen der Zeichen von den Funktionen // is being called after the exchange of the character from the functions
// - FnCptlSttWrd // - FnCptlSttWrd
// - FnCptlSttSntnc // - FnCptlSttSntnc
// gerufen. Dann koennen die Worte ggfs. in die Ausnahmelisten // Then, the words if necessary be added to the exception
// aufgenommen werden. // list.
void SwAutoCorrDoc::SaveCpltSttWord( sal_uLong nFlag, xub_StrLen nPos, void SwAutoCorrDoc::SaveCpltSttWord( sal_uLong nFlag, xub_StrLen nPos,
const String& rExceptWord, const String& rExceptWord,
sal_Unicode cChar ) sal_Unicode cChar )
...@@ -436,15 +436,15 @@ LanguageType SwAutoCorrDoc::GetLanguage( xub_StrLen nPos, sal_Bool bPrevPara ) c ...@@ -436,15 +436,15 @@ LanguageType SwAutoCorrDoc::GetLanguage( xub_StrLen nPos, sal_Bool bPrevPara ) c
void SwAutoCorrExceptWord::CheckChar( const SwPosition& rPos, sal_Unicode cChr ) void SwAutoCorrExceptWord::CheckChar( const SwPosition& rPos, sal_Unicode cChr )
{ {
// nur testen ob es eine Verbesserung ist. Wenn ja, dann das Wort // test only if this is a improvement.
// in die Ausnahmeliste aufnehmen. // If yes, then add the word to the list.
if( cChar == cChr && rPos.nNode.GetIndex() == nNode && if( cChar == cChr && rPos.nNode.GetIndex() == nNode &&
rPos.nContent.GetIndex() == nCntnt ) rPos.nContent.GetIndex() == nCntnt )
{ {
// die akt. Autokorrektur besorgen: // get the current autocorrection:
SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect();
// dann in die Liste aufnehmen: // then add to the list:
if( CptlSttWrd & nFlags ) if( CptlSttWrd & nFlags )
pACorr->AddWrtSttException( sWord, eLanguage ); pACorr->AddWrtSttException( sWord, eLanguage );
else if( CptlSttSntnc & nFlags ) else if( CptlSttSntnc & nFlags )
...@@ -501,7 +501,7 @@ void SwDontExpandItem::RestoreDontExpandItems( const SwPosition& rPos ) ...@@ -501,7 +501,7 @@ void SwDontExpandItem::RestoreDontExpandItems( const SwPosition& rPos )
{ {
SwTxtAttr* pHt = pTxtNd->GetpSwpHints()->GetTextHint( n ); SwTxtAttr* pHt = pTxtNd->GetpSwpHints()->GetTextHint( n );
nAttrStart = *pHt->GetStart(); nAttrStart = *pHt->GetStart();
if( nAttrStart > nStart ) // ueber den Bereich hinaus if( nAttrStart > nStart ) // beyond the area
break; break;
if( 0 != ( pAttrEnd = pHt->GetEnd() ) && if( 0 != ( pAttrEnd = pHt->GetEnd() ) &&
...@@ -516,9 +516,9 @@ void SwDontExpandItem::RestoreDontExpandItems( const SwPosition& rPos ) ...@@ -516,9 +516,9 @@ void SwDontExpandItem::RestoreDontExpandItems( const SwPosition& rPos )
GetItemState( pHt->Which(), sal_False, &pItem ) || GetItemState( pHt->Which(), sal_False, &pItem ) ||
*pItem != pHt->GetAttr() ) *pItem != pHt->GetAttr() )
{ {
// das Attribut war vorher nicht in dieser Form im Absatz // The attribute was not previously set in this form in the
// gesetzt, also kann es nur durchs einfuegen/kopieren erzeugt // paragraph, so it can only be created through insert/copy
// worden sein. Damit ist es ein Kandiadat fuers DontExpand // Because of that it is a candidate for DontExpand
pHt->SetDontExpand( sal_True ); pHt->SetDontExpand( sal_True );
} }
} }
......
...@@ -49,10 +49,10 @@ using namespace ::com::sun::star::lang; ...@@ -49,10 +49,10 @@ using namespace ::com::sun::star::lang;
// STATIC DATA ----------------------------------------------------------- // STATIC DATA -----------------------------------------------------------
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Description:
nFormatType: Formate dieses Typs anzeigen nFormatType: Display the formats of this Type
nDefFmt: Dieses Format selektieren und ggf vorher nDefFmt: Select this format and possibly
einfuegen insert it
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
NumFormatListBox::NumFormatListBox( Window* pWin, const ResId& rResId, NumFormatListBox::NumFormatListBox( Window* pWin, const ResId& rResId,
...@@ -122,7 +122,7 @@ SwView* NumFormatListBox::GetView() ...@@ -122,7 +122,7 @@ SwView* NumFormatListBox::GetView()
void NumFormatListBox::SetFormatType(const short nFormatType) void NumFormatListBox::SetFormatType(const short nFormatType)
{ {
if (nCurrFormatType == -1 || if (nCurrFormatType == -1 ||
(nCurrFormatType & nFormatType) == 0) // Es gibt Mischformate, wie z.B. DateTime (nCurrFormatType & nFormatType) == 0) // there are mixed formats, like for example DateTime
{ {
SvNumberFormatter* pFormatter; SvNumberFormatter* pFormatter;
...@@ -138,7 +138,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType) ...@@ -138,7 +138,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
pFormatter = rSh.GetNumberFormatter(); pFormatter = rSh.GetNumberFormatter();
} }
Clear(); // Alle Eintraege in der Listbox entfernen Clear(); // Remove all entries from the Listbox
NfIndexTableOffset eOffsetStart = NF_NUMBER_START; NfIndexTableOffset eOffsetStart = NF_NUMBER_START;
NfIndexTableOffset eOffsetEnd = NF_NUMBER_START; NfIndexTableOffset eOffsetEnd = NF_NUMBER_START;
...@@ -302,7 +302,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -302,7 +302,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
} }
} }
// Kein Eintrag gefunden: // No entry found:
double fValue = GetDefValue(nType); double fValue = GetDefValue(nType);
String sValue; String sValue;
Color* pCol = 0; Color* pCol = 0;
...@@ -348,7 +348,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -348,7 +348,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
sValue += String(SW_RES(RID_STR_SYSTEM)); sValue += String(SW_RES(RID_STR_SYSTEM));
} }
nPos = InsertEntry(sValue, nPos); // Als ersten numerischen Eintrag einfuegen nPos = InsertEntry(sValue, nPos); // Insert as first numeric entry
SetEntryData(nPos, (void*)nDefFmt); SetEntryData(nPos, (void*)nDefFmt);
SelectEntryPos(nPos); SelectEntryPos(nPos);
nDefFormat = GetFormat(); nDefFormat = GetFormat();
......
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