[PATCH] Translate german comments in sw/source/filter/ww8/wrtww8.cxx

2013-03-09 Thread Joren De Cuyper (via Code Review)
Hi,

I have submitted a patch for review:

https://gerrit.libreoffice.org/2617

To pull it, you can do:

git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/17/2617/1

Translate german comments in sw/source/filter/ww8/wrtww8.cxx

Please, only apply this patch if you are a native speaking German.
I'm not a native speaker, so a double check is really necessary
and appreciated.

Thanks in advance.

Change-Id: Ic2fb6e97007c6b47851ad8a7a51e987da5a70877
---
M sw/source/filter/ww8/docxexportfilter.cxx
M sw/source/filter/ww8/wrtw8nds.cxx
M sw/source/filter/ww8/wrtw8num.cxx
M sw/source/filter/ww8/wrtww8.hxx
M sw/source/filter/ww8/wrtww8gr.cxx
5 files changed, 114 insertions(+), 127 deletions(-)



diff --git a/sw/source/filter/ww8/docxexportfilter.cxx 
b/sw/source/filter/ww8/docxexportfilter.cxx
index 8149b36..2226ed3 100644
--- a/sw/source/filter/ww8/docxexportfilter.cxx
+++ b/sw/source/filter/ww8/docxexportfilter.cxx
@@ -86,10 +86,8 @@
 return true;
 }
 
-//
-// UNO stuff so that the filter is registered
-//
 
+// UNO stuff so that the filter is registered
 #define IMPL_NAME com.sun.star.comp.Writer.DocxExport
 
 OUString DocxExport_getImplementationName()
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx 
b/sw/source/filter/ww8/wrtw8nds.cxx
index 9881fff..3112569 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -315,13 +315,13 @@
 for( i = 0; i  pTxtAttrs-Count(); i++ )
 {
 const SwTxtAttr* pHt = (*pTxtAttrs)[i];
-nPos = *pHt-GetStart();// gibt erstes Attr-Zeichen
+nPos = *pHt-GetStart();// give first Attr characters
 if( nPos = nStartPos  nPos = nMinPos )
 nMinPos = nPos;
 
-if( pHt-GetEnd() ) // Attr mit Ende
+if( pHt-GetEnd() ) // Attr to end
 {
-nPos = *pHt-GetEnd();  // gibt letztes Attr-Zeichen + 1
+nPos = *pHt-GetEnd();  // give last Attr character + 1
 if( nPos = nStartPos  nPos = nMinPos )
 nMinPos = nPos;
 }
@@ -482,7 +482,7 @@
 
 m_rExport.ExportPoolItemsToCHP( aExportItems, GetScript() );
 
-// HasTextItem nur in dem obigen Bereich erlaubt
+// HasTextItem only allowed in the above range
 m_rExport.m_aCurrentCharPropStarts.pop();
 m_rExport.pOutFmtNode = pOldMod;
 }
@@ -580,12 +580,11 @@
 return false;
 }
 
-// HasItem ist fuer die Zusammenfassung des Doppel-Attributes Underline
-// und WordLineMode als TextItems. OutAttr() ruft die Ausgabefunktion,
-// die dann ueber HasItem() nach anderen Items an der
-// Attribut-Anfangposition fragen kann.
-// Es koennen nur Attribute mit Ende abgefragt werden.
-// Es wird mit bDeep gesucht
+//HasItem is for the summary of the double attributes: Underline and 
WordlineMode as TextItems.
+// OutAttr () calls the output function, which can then can call HasItem () 
for other items at the
+// beginning of the selected position.
+// It can only be retrieved by the end attributes.
+// It searches with bDeep
 const SfxPoolItem* SwWW8AttrIter::HasTextItem( sal_uInt16 nWhich ) const
 {
 const SfxPoolItem* pRet = 0;
@@ -599,15 +598,15 @@
 const SwTxtAttr* pHt = (*pTxtAttrs)[i];
 const SfxPoolItem* pItem = pHt-GetAttr();
 const xub_StrLen* pAtrEnd = 0;
-if( 0 != ( pAtrEnd = pHt-GetEnd() )  // nur Attr mit Ende
-nWhich == pItem-Which()  //
+if( 0 != ( pAtrEnd = pHt-GetEnd() )  // only Attr with an 
end
+nWhich == pItem-Which() 
 nTmpSwPos = *pHt-GetStart()  nTmpSwPos  *pAtrEnd )
 {
-pRet = pItem;   // gefunden
+pRet = pItem;   // found it
 break;
 }
 else if (nTmpSwPos  *pHt-GetStart())
-break;  // dann kommt da nichts mehr
+break;  // nothing more to come
 }
 }
 return pRet;
@@ -856,7 +855,7 @@
 sal_uLong nDataStt = m_rWW8Export.pDataStrm-Tell();
 m_rWW8Export.pChpPlc-AppendFkpEntry( m_rWW8Export.Strm().Tell() );
 
-//  WinWord 2000 doesn't write this - so its a temp solution by W97 ?
+// WinWord 2000 doesn't write this - so its a temp solution by W97 ?
 m_rWW8Export.WriteChar( 0x01 );
 
 static sal_uInt8 aArr1[] = {
@@ -974,7 +973,6 @@
 // an write some data to the data stream, but dont ask
 // what the data mean, except for the URL.
 // The First piece is the WW8_PIC structure.
-//
 static sal_uInt8 MAGIC_B[] = {
 0xE0,0xC9,0xEA,0x79,0xF9,0xBA,0xCE,0x11,
 0x8C,0x82,0x00,0xAA,0x00,0x4B,0xA9,0x0B
@@ -1177,7 +1175,7 @@

[PATCH] Translate german comments in sw/source/filter/ww8/wrtww8.cxx

2013-03-07 Thread Joren De Cuyper (via Code Review)
Hi,

I have submitted a patch for review:

https://gerrit.libreoffice.org/2589

To pull it, you can do:

git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/89/2589/1

Translate german comments in sw/source/filter/ww8/wrtww8.cxx

Please, only apply this patch if you are a native speaking German.
I'm not a native speaker, so a double check is really necessary
and appreciated.

Thanks in advance.

Change-Id: I4df75b92ea7a66552df36f56de1c87d567d5b643
---
M sw/source/filter/ww8/wrtww8.cxx
1 file changed, 106 insertions(+), 116 deletions(-)



diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index f19c11b..f661fc8 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -78,7 +78,7 @@
 #include svtools/imapobj.hxx
 #include tools/urlobj.hxx
 #include mdiexp.hxx   // Progress
-#include statstr.hrc  // ResId fuer Statusleiste
+#include statstr.hrc  // ResId for the status list
 #include fmtline.hxx
 #include fmtfsize.hxx
 #include comphelper/extract.hxx
@@ -117,15 +117,15 @@
 */
 class WW8_WrFkp
 {
-sal_uInt8* pFkp; // gesamter Fkp ( zuerst nur FCs und Sprms )
-sal_uInt8* pOfs; // Pointer auf Offset-Bereich, spaeter nach pFkp 
kopiert
+sal_uInt8* pFkp; // Fkp total ( first and only FCs and Sprms )
+sal_uInt8* pOfs; // pointer to the offset area, later copied by 
pFkp
 ePLCFT ePlc;
 short nStartGrp;// ab hier grpprls
 short nOldStartGrp;
 sal_uInt8 nItemSize;
-sal_uInt8 nIMax; // Anzahl der Eintrags-Paare
+sal_uInt8 nIMax; // number of entry pairs
 sal_uInt8 nOldVarLen;
-bool bCombined; // true : Einfuegen verboten
+bool bCombined; // true : paste not allowed
 
 sal_uInt8 SearchSameSprm( sal_uInt16 nVarLen, const sal_uInt8* pSprms );
 public:
@@ -155,15 +155,12 @@
 };
 
 
-// -
-// class WW8_WrPc sammelt alle Piece-Eintraege fuer ein Piece
-// -
-
+// class WW8_WrPc collects all entry pieces for one piece
 class WW8_WrPc
 {
-WW8_CP nStartCp;// Start ZeichenPosition vom Text
-WW8_FC nStartFc;// Start File Position vom Text
-sal_uInt16 nStatus; // Absatzende im Piece ?
+WW8_CP nStartCp;// Starting character position of the 
text
+WW8_FC nStartFc;// Starting position of the text file
+sal_uInt16 nStatus; // End of the piece ?
 
 public:
 WW8_WrPc(WW8_FC nSFc, WW8_CP nSCp )
@@ -213,7 +210,7 @@
 
 #define ANZ_DEFAULT_STYLES 16
 
-// die Namen der StorageStreams
+// Names of the storage stream
 #define sMainStream rtl::OUString(WordDocument)
 #define sCompObj rtl::OUString(\1CompObj)
 
@@ -221,19 +218,19 @@
 {
 WW8Dop rDop = *rWrt.pDop;
 
-// i#78951#, store the value of  unknown compatability options
+// i#78951#, store the value of unknown compatability options
 rDop.SetCompatabilityOptions( 
rWrt.pDoc-Getn32DummyCompatabilityOptions1());
 rDop.SetCompatabilityOptions2( 
rWrt.pDoc-Getn32DummyCompatabilityOptions2());
 
 rDop.fNoLeading = !rWrt.pDoc-get(IDocumentSettingAccess::ADD_EXT_LEADING);
 rDop.fUsePrinterMetrics = 
!rWrt.pDoc-get(IDocumentSettingAccess::USE_VIRTUAL_DEVICE);
 
-// default TabStop schreiben
+// write default TabStop
 const SvxTabStopItem rTabStop =
 DefaultItemGetSvxTabStopItem(*rWrt.pDoc, RES_PARATR_TABSTOP);
 rDop.dxaTab = (sal_uInt16)rTabStop[0].GetTabPos();
 
-// Zoom factor.
+// Zoom factor
 ViewShell *pViewShell(rWrt.pDoc-GetCurrentViewShell());
 if (pViewShell  pViewShell-GetViewOptions()-GetZoomType() == 
SVX_ZOOM_PERCENT)
 rDop.wScaleSaved = pViewShell-GetViewOptions()-GetZoom();
@@ -276,9 +273,12 @@
 rDop.fProtEnabled = 0;
 }
 
-if (!xDocProps.is()) {
+if (!xDocProps.is())
+{
 rDop.dttmCreated = rDop.dttmRevised = rDop.dttmLastPrint = 0x45FBAC69;
-} else {
+}
+else
+{
 ::util::DateTime uDT = xDocProps-getCreationDate();
 Date aD(uDT.Day, uDT.Month, uDT.Year);
 Time aT(uDT.Hours, uDT.Minutes, uDT.Seconds, uDT.HundredthSeconds);
@@ -291,14 +291,12 @@
 Date aD3(uDT.Day, uDT.Month, uDT.Year);
 Time aT3(uDT.Hours, uDT.Minutes, uDT.Seconds, uDT.HundredthSeconds);
 rDop.dttmLastPrint = sw::ms::DateTime2DTTM(DateTime(aD3,aT3));
-
 }
 
-//  auch damit werden die DocStat-Felder in Kopf-/Fusszeilen nicht korrekt
-//  berechnet.
-//  ( we do not have this fields! )
+// Also, the DocStat fields in headers, footers are not calculated 
correctly.
+// ( we do not have this fields! )
 
-// und noch fuer die Header und Footers
+// and also for the Headers and Footers
 rDop.cWordsFtnEnd   = rDStat.nWord;