summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-07-14 17:06:23 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2010-07-14 17:06:23 +0200
commitf72e6b7a877f3d5326bb3c9dad53aa1913b0ed2e (patch)
tree0c2913a3a16b5f9ce6576179dc8b6da208e00b10 /l10ntools
parenta1b4b65e3514c8ac3c21bae04ceeccc90eb29bfa (diff)
txtl10n: #i113008# #i113125# cleanup
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/scripts/tool/l10ntool.py3
-rw-r--r--l10ntools/scripts/tool/xhtex.py8
-rw-r--r--l10ntools/scripts/tool/xtxex.py8
3 files changed, 9 insertions, 10 deletions
diff --git a/l10ntools/scripts/tool/l10ntool.py b/l10ntools/scripts/tool/l10ntool.py
index 42e8a6b4e428..70d88674f07b 100644
--- a/l10ntools/scripts/tool/l10ntool.py
+++ b/l10ntools/scripts/tool/l10ntool.py
@@ -33,7 +33,7 @@ import sys
import os
import shutil
-class abstractL10nTool:
+class AbstractL10nTool:
_options = {}
_args = ""
_resource_type = ""
@@ -176,7 +176,6 @@ class abstractL10nTool:
return
else:
try:
- print "DBG: make_dir " + str(dir)
os.makedirs(dir)
except IOError:
print "Error: Can not create dir " + dir
diff --git a/l10ntools/scripts/tool/xhtex.py b/l10ntools/scripts/tool/xhtex.py
index c876b9f7c2a0..ab6e1dd14631 100644
--- a/l10ntools/scripts/tool/xhtex.py
+++ b/l10ntools/scripts/tool/xhtex.py
@@ -25,12 +25,12 @@
#
#*************************************************************************
-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 = ""
@@ -65,7 +65,7 @@ class xhtex(abstractL10nTool):
# L10N tool
def __init__(self):
- abstractL10nTool.__init__(self)
+ AbstractL10nTool.__init__(self)
def parse_file(self, filename):
document = ""
@@ -130,5 +130,5 @@ class xhtex(abstractL10nTool):
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()
diff --git a/l10ntools/scripts/tool/xtxex.py b/l10ntools/scripts/tool/xtxex.py
index bb11e337d37a..317fb5cc7ff0 100644
--- a/l10ntools/scripts/tool/xtxex.py
+++ b/l10ntools/scripts/tool/xtxex.py
@@ -25,16 +25,16 @@
#
#*************************************************************************
-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
@@ -86,4 +86,4 @@ class xtxex(abstractL10nTool):
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()