Anonymous avatar Anonymous committed 3ce6d54

txtl10n: #i113008# #i113125# cleanup

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()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.