bin/find-german-comments                |  142 +++++++++++++++++++++++++++++++-
 tools/source/generic/poly.cxx           |    8 -
 tools/source/rc/resmgr.cxx              |    2 
 ucb/source/ucp/webdav/webdavcontent.cxx |    5 -
 xmloff/source/text/txtprmap.cxx         |    8 -
 5 files changed, 151 insertions(+), 14 deletions(-)

New commits:
commit d8ae7ef18576101071f6cefbaa0feb970fb56267
Author: Michael Meeks <michael.me...@collabora.com>
Date:   Sat Apr 26 17:16:52 2014 +0100

    German Comment translation
    
    for directories with only a trivial set of lingering comments.
    
    Change-Id: Id1ffa237549ee8fd82059caf68cc092f8c4a7efe

diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index f9a23a9..2447271 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -151,10 +151,10 @@ void ImplPolygon::ImplSetSize( sal_uInt16 nNewSize, bool 
bResize )
 
         if ( bResize )
         {
-            // Alte Punkte kopieren
+            // Copy the old points
             if ( mnPoints < nNewSize )
             {
-                // Neue Punkte mit 0 initialisieren
+                // New points initialized to zero
                 memset( pNewAry+mnPoints, 0, 
(sal_uIntPtr)(nNewSize-mnPoints)*sizeof(Point) );
                 if ( mpPointAry )
                     memcpy( pNewAry, mpPointAry, mnPoints*sizeof(Point) );
@@ -183,10 +183,10 @@ void ImplPolygon::ImplSetSize( sal_uInt16 nNewSize, bool 
bResize )
 
             if( bResize )
             {
-                // Alte Flags kopieren
+                // copy the old flags
                 if ( mnPoints < nNewSize )
                 {
-                    // Neue Punkte mit 0 initialisieren
+                    // initialize new flags to zero
                     memset( pNewFlagAry+mnPoints, 0, nNewSize-mnPoints );
                     memcpy( pNewFlagAry, mpFlagAry, mnPoints );
                 }
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index b582990..bf9c3d8 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -1026,7 +1026,7 @@ bool ResMgr::GetResource( const ResId& rId, const 
Resource* pResObj )
     }
 
     if ( pTop->pClassRes )
-        // lokale Resource, nicht system Resource
+        // local Resource, not a system Resource
         pTop->pResource = (RSHEADER_TYPE *)pTop->pClassRes;
     else
     {
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx 
b/ucb/source/ucp/webdav/webdavcontent.cxx
index f22a306..e4fd59e 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -986,7 +986,7 @@ throw( beans::UnknownPropertyException,
        uno::RuntimeException )
 {
 #if 0
-    // @@@ REMOVABLE z.Z. nicht richtig an der PropSetInfo gesetzt!!!
+    // @@@ REMOVABLE z.Z. hasn't been set correctly in the PropSetInfo
     try
     {
         beans::Property aProp
@@ -1006,10 +1006,7 @@ throw( beans::UnknownPropertyException,
     }
 #endif
 
-
     // Try to remove property from server.
-
-
     try
     {
         std::vector< ProppatchValue > aProppatchValues;
diff --git a/xmloff/source/text/txtprmap.cxx b/xmloff/source/text/txtprmap.cxx
index 175b707..dba9a4f 100644
--- a/xmloff/source/text/txtprmap.cxx
+++ b/xmloff/source/text/txtprmap.cxx
@@ -411,10 +411,10 @@ XMLPropertyMapEntry aXMLParaPropMap[] =
 
 XMLPropertyMapEntry aXMLAdditionalTextDefaultsMap[] =
 {
-    // RES_FOLLOW_TEXT_FLOW - DVO, OD 01.10.2003 #i18732#
+    // RES_FOLLOW_TEXT_FLOW - DVO #i18732#
     MG_ED( "IsFollowingTextFlow", STYLE, FLOW_WITH_TEXT,      XML_TYPE_BOOL, 0 
),
 
-    // OD 2004-05-05 #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
+    // #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
     MG_ED( "WrapInfluenceOnPosition", DRAW, WRAP_INFLUENCE_ON_POSITION, 
XML_TYPE_WRAP_INFLUENCE_ON_POSITION, 0 ),
 
     M_END()
@@ -786,10 +786,10 @@ XMLPropertyMapEntry aXMLFramePropMap[] =
     // RES_GRFATR_DRAWMODE
     MG_E( "GraphicColorMode", DRAW, COLOR_MODE,         XML_TYPE_COLOR_MODE, 0 
),
     MG_E( "WritingMode",      STYLE, WRITING_MODE,       
XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT, 0 ),
-    // RES_FOLLOW_TEXT_FLOW - DVO, OD 01.10.2003 #i18732#
+    // RES_FOLLOW_TEXT_FLOW - DVO #i18732#
     MG_E( "IsFollowingTextFlow", DRAW, FLOW_WITH_TEXT,      
XML_TYPE_BOOL|MID_FLAG_SPECIAL_ITEM_EXPORT, CTF_OLD_FLOW_WITH_TEXT ),
     MG_E( "IsFollowingTextFlow", STYLE, FLOW_WITH_TEXT,     XML_TYPE_BOOL, 0 ),
-    // OD 2004-05-05 #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
+    // #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
     MG_E( "WrapInfluenceOnPosition", DRAW, WRAP_INFLUENCE_ON_POSITION, 
XML_TYPE_WRAP_INFLUENCE_ON_POSITION, 0 ),
 
     // special entries for floating frames
commit 14e06df21d60f0dcd681bd77beeba731533f81e2
Author: Michael Meeks <michael.me...@collabora.com>
Date:   Sat Apr 26 16:43:40 2014 +0100

    whitelist directories with no German to speed up the count.
    
    Change-Id: Ic8d5861fda5b21df43447eb7bc4dc9a416ce1afb

diff --git a/bin/find-german-comments b/bin/find-german-comments
index a8a3f2e..1c35745 100755
--- a/bin/find-german-comments
+++ b/bin/find-german-comments
@@ -204,6 +204,17 @@ class Parser:
             for f in fnames:
                 print f
 
+    def first_elem(self, path):
+        lastElem = os.path.dirname(path);
+        done = False
+        while not done:
+            nextElem = os.path.split(lastElem)[0]
+            if nextElem is not '':
+                lastElem = nextElem
+            else:
+                done = True
+        return lastElem
+
     def check_source_files(self, dir):
         """
         checks each _tracked_ file in a directory recursively
@@ -211,8 +222,137 @@ class Parser:
         sock = os.popen(r"git ls-files '%s' |egrep '\.(c|h)xx$'" % dir)
         lines = sock.readlines()
         sock.close()
+
+        # Helps to speedup a global scan
+        directory_whitelist = {
+            "UnoControls" : 1,
+            "accessibility" : 1,
+            "android" : 1,
+            "animations" : 1,
+            "avmedia" : 1,
+            "basctl" : 1,
+            "basebmp" : 1,
+            "basctl" : 1,
+            "basegfx" : 1,
+            "basic" : 1,
+            "binaryurp" : 1,
+            "bridges" : 1,
+            "canvas" : 1,
+            "chart2" : 1,
+            "cli_ure" : 1,
+            "codemaker" : 1,
+            "comphelper" : 1,
+            "compilerplugins" : 1,
+            "configmgr" : 1,
+            "connectivity" : 1,
+            "cppcanvas" : 1,
+            "cppu" : 1,
+            "cppuhelper" : 1,
+            "cpputools" : 1,
+            "crashrep" : 1,
+            "cui" : 1,
+            "dbaccess" : 0, #
+            "desktop" : 1,
+            "drawinglayer" : 1,
+            "dtrans" : 1,
+            "editeng" : 1,
+            "embeddedobj" : 1,
+            "embedserv" : 1,
+            "eventattacher" : 1,
+            "extensions" : 1,
+            "external" : 1,
+            "filter" : 1,
+            "forms" : 0, #
+            "formula" : 1,
+            "fpicker" : 1,
+            "framework" : 1,
+            "helpcompiler" : 1,
+            "hwpfilter" : 1,
+            "i18npool" : 0, #
+            "i18nlangtag" : 1,
+            "i18nutil" : 1,
+            "idl" : 1,
+            "idlc" : 1,
+            "include" : 0, #
+            "io" : 1,
+            "javaunohelper" : 1,
+            "jvmaccess" : 1,
+            "jvmfwk" : 1,
+            "l10ntools" : 1,
+            "lingucomponent" : 1,
+            "linguistic" : 1,
+            "lotuswordpro" : 1,
+            "mysqlc" : 0, #
+            "o3tl" : 1,
+            "odk" : 1,
+            "officecfg" : 1,
+            "oox" : 1,
+            "package" : 1,
+            "postprocess" : 1,
+            "pyuno" : 1,
+            "registry" : 0, #
+            "remotebridges" : 1,
+            "reportdesign" : 0, #
+            "rsc" : 0, #
+            "sal" : 1,
+            "salhelper" : 1,
+            "sax" : 1,
+            "sc" : 0, #
+            "scaddins" : 0, #
+            "sccomp" : 1,
+            "scripting" : 1,
+            "sd" : 0, #
+            "sdext" : 1,
+            "sfx2" : 0, #
+            "shell" : 1,
+            "setup_native" : 1,
+            "sot" : 1,
+            "slideshow" : 1,
+            "smoketest" : 1,
+            "solenv" : 1,
+            "soltools" : 1,
+            "starmath" : 0, # - 1 line !
+            "stoc" : 0, #
+            "store" : 1,
+            "svgio" : 1,
+            "svl" : 0, #
+            "svtools" : 1,
+            "svx" : 0, #
+            "sw" : 0, #
+            "test" : 1,
+            "testtools" : 1,
+            "toolkit" : 1,
+            "tools" : 1,
+            "touch" : 1,
+            "tubes" : 1,
+            "sw" : 1,
+            "ucb" : 1,
+            "ucbhelper" : 1,
+            "unodevtools" : 1,
+            "unotest" : 1,
+            "unoidl" : 1,
+            "unotools" : 1,
+            "unoxml" : 1,
+            "uui" : 1,
+            "vbahelper" : 1,
+            "vcl" : 1,
+            "winaccessibility" : 1,
+            "writerfilter" : 1,
+            "writerperfect" : 1,
+            "xmlhelp" : 1,
+            "xmloff" : 1,
+            "xmlreader" : 1,
+            "xmlsecurity" : 1,
+            "xmlscript" : 1,
+        }
+
         for path in lines:
-            self.check_file(path.strip())
+            baseDir = self.first_elem(path)
+            if not baseDir in directory_whitelist:
+                print ("Missing path %s " % baseDir)
+            elif directory_whitelist[baseDir] is 0:
+#                print ("Scan path %s " % baseDir)
+                self.check_file(path.strip())
 
 try:
     Parser()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to