Commits

Anonymous committed 3ce6d54

txtl10n: #i113008# #i113125# cleanup

  • Participants
  • Parent commits 8d33c26

Comments (0)

Files changed (3)

l10ntools/scripts/tool/l10ntool.py

 import os
 import shutil
 
-class abstractL10nTool:
+class AbstractL10nTool:
     _options            = {}
     _args               = ""
     _resource_type      = "" 
                 return
         else:
             try:
-                print "DBG: make_dir " + str(dir)
                 os.makedirs(dir)
             except IOError:
                 print "Error: Can not create dir " + dir

l10ntools/scripts/tool/xhtex.py

 #
 #*************************************************************************
 
-from l10ntool import abstractL10nTool
+from l10ntool import AbstractL10nTool
 from sdf import SdfEntity
 import sys
 import xml.dom.minidom
 
-class xhtex(abstractL10nTool):
+class Xhtex(AbstractL10nTool):
     _resource_type = "xht" 
     _sdfdata       = ()
     _lang          = ""
 
     # L10N tool       
     def __init__(self):
-        abstractL10nTool.__init__(self)
+        AbstractL10nTool.__init__(self)
         
     def parse_file(self, filename):
         document = ""
         return SdfEntity(project=self._options.project_name, source_file=self.get_filename_string(inputfile),
                          resource_type=self._resource_type, gid=id, lid="", langid=lang,text=text)
         
-run = xhtex()
+run = Xhtex()
  

l10ntools/scripts/tool/xtxex.py

 #
 #*************************************************************************
 
-from l10ntool import abstractL10nTool
+from l10ntool import AbstractL10nTool
 from sdf import SdfEntity
 import sys
 import shutil 
 
-class xtxex(abstractL10nTool):
+class Xtxex(AbstractL10nTool):
     _resource_type       = "xtx" 
        
     def __init__(self):
-        abstractL10nTool.__init__(self)
+        AbstractL10nTool.__init__(self)
         
     def merge_file(self, inputfilename, outputfilename, parsed_file_ref, lang, is_forced_lang, sdfdata): 
         # Special handling for en-US files
         return SdfEntity(project=self._options.project_name, source_file=self.get_filename_string(inputfile),
                           resource_type=self._resource_type, gid="none", lid="none", langid=lang,text="")
          
-run = xtxex()
+run = Xtxex()