language: added full translation support
[treecutter.git] / treecutter / main.py
index c685f7d3756951ea9a123c29461a52b49ad8aa06..c12184d3fd309471f5cecc6345c0ab6fed6c0610 100644 (file)
@@ -4,6 +4,7 @@ from time import time
 import argparse
 from treecutter.directory import Directory
 from treecutter.sitemap import Sitemap
+from treecutter.tools import translate
 
 def main():
 
@@ -22,6 +23,15 @@ def main():
     ts = time()
     print "--= Treecutter =--"
     dir_ = Directory()
+    t1 = time()
+    totrans = dir_.translations(args.style)
+    print "Translate [%d] : [" % (len(totrans)),
+    translate(totrans)
+    print "]"
+    t2 = time()
+    print "Translate[%5.2f s]" % (round(t2-t1,2))
+
+
     sitemap = Sitemap(args)
 
     # Scanning current directory and subdirectory for docbook articles