[PATCH] Translate German comments

Philipp Weissenbacher (via Code Review) gerrit at gerrit.libreoffice.org
Tue Mar 12 14:20:53 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2691

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/91/2691/1

Translate German comments

Change-Id: I0b386fd0c7cb0382fa3a5187389369966365b1fb
---
M sw/source/core/draw/dobjfac.cxx
M sw/source/core/para/paratr.cxx
2 files changed, 14 insertions(+), 27 deletions(-)



diff --git a/sw/source/core/draw/dobjfac.cxx b/sw/source/core/draw/dobjfac.cxx
index 6ad9d25..891856b 100644
--- a/sw/source/core/draw/dobjfac.cxx
+++ b/sw/source/core/draw/dobjfac.cxx
@@ -23,23 +23,16 @@
 
 SwObjectFactory aSwObjectFactory;
 
-/*************************************************************************
-|*
-|* void SwObjectFactory::MakeObject()
-|*
-\************************************************************************/
-
 IMPL_LINK( SwObjectFactory, MakeObject, SdrObjFactory*, pObjFactory )
 {
     if ( pObjFactory->nInventor == SWGInventor )
     {
-        //Kein switch, derzeit gibt es nur einen.
+        // No switch, there's only one at the moment
         OSL_ENSURE( pObjFactory->nIdentifier == SwFlyDrawObjIdentifier,
-                                        "Falscher Inventor oder identifier." );
+                                        "Wrong inventor or identifier" );
         pObjFactory->pNewObj = new SwFlyDrawObj();
     }
     return 0;
 }
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx
index 6810db2..1db5303 100644
--- a/sw/source/core/para/paratr.cxx
+++ b/sw/source/core/para/paratr.cxx
@@ -48,12 +48,6 @@
 TYPEINIT1_AUTOFACTORY( SwNumRuleItem, SfxStringItem);
 TYPEINIT1_AUTOFACTORY( SwParaConnectBorderItem, SfxBoolItem);
 
-/*************************************************************************
-|*    Beschreibung      Methoden von SwFmtDrop
-*************************************************************************/
-
-
-
 SwFmtDrop::SwFmtDrop()
     : SfxPoolItem( RES_PARATR_DROP ),
     SwClient( 0 ),
@@ -90,7 +84,7 @@
 
 void SwFmtDrop::SetCharFmt( SwCharFmt *pNew )
 {
-    //Ummelden
+    // Rewire
     if ( GetRegisteredIn() )
         GetRegisteredInNonConst()->Remove( this );
     if(pNew)
@@ -109,9 +103,8 @@
         else if( pDefinedIn->GetDepends() &&
                 !pDefinedIn->IsModifyLocked() )
         {
-            // selbst den Abhaengigen vom Format bescheid sagen. Das
-            // Format selbst wuerde es nicht weitergeben, weil es ueber
-            // die Abpruefung nicht hinauskommt.
+            // Notify those who are dependend on the format on our own.
+            // The format itself wouldn't pass on the notify as it does not get past the check.
             pDefinedIn->ModifyBroadcast( this, this );
         }
     }
@@ -119,12 +112,12 @@
 
 bool SwFmtDrop::GetInfo( SfxPoolItem& ) const
 {
-    return true;    // weiter
+    return true; // Continue
 }
 
 int SwFmtDrop::operator==( const SfxPoolItem& rAttr ) const
 {
-    OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+    OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "No mathing attributes" );
     return ( nLines == ((SwFmtDrop&)rAttr).GetLines() &&
              nChars == ((SwFmtDrop&)rAttr).GetChars() &&
              nDistance ==  ((SwFmtDrop&)rAttr).GetDistance() &&
@@ -222,22 +215,25 @@
     return true;
 }
 
-// class SwRegisterItem -------------------------------------------------
-
+/**
+ * SwRegisterItem
+ */
 
 SfxPoolItem* SwRegisterItem::Clone( SfxItemPool * ) const
 {
     return new SwRegisterItem( *this );
 }
 
-// class SwNumRuleItem -------------------------------------------------
+/**
+ * SwNumRuleItem
+ */
 SfxPoolItem* SwNumRuleItem::Clone( SfxItemPool * ) const
 {
     return new SwNumRuleItem( *this );
 }
 int SwNumRuleItem::operator==( const SfxPoolItem& rAttr ) const
 {
-    OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
+    OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "No matching attributes" );
 
     return GetValue() == ((SwNumRuleItem&)rAttr).GetValue();
 }
@@ -261,7 +257,5 @@
 {
     return new SwParaConnectBorderItem( *this );
 }
-
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

-- 
To view, visit https://gerrit.libreoffice.org/2691
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0b386fd0c7cb0382fa3a5187389369966365b1fb
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Philipp Weissenbacher <p.weissenbacher at gmail.com>



More information about the LibreOffice mailing list