Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/calculate.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2007-11-30 11:02:19 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2007-11-30 11:02:19 (GMT)
commitcdc7cfd24f22245ed6b565f23db5717c88552b3b (patch)
treeee73ea7da7c53ed554243634a116270cef582c25 /calculate.py
parent5acbca906319215efdd2b6d2a65760e22affcd9c (diff)
i18n of help functions; not the final solution!
Diffstat (limited to 'calculate.py')
-rw-r--r--calculate.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/calculate.py b/calculate.py
index 240e1c3..0e1512f 100644
--- a/calculate.py
+++ b/calculate.py
@@ -521,23 +521,23 @@ class Calculate(activity.Activity):
def read_file(self, file_path):
"""Read journal entries, version 1.0"""
- _logger.info(_('Reading from journal (%s)'), file_path)
+ _logger.info('Reading from journal (%s)', file_path)
f = open(file_path, 'r')
str = f.readline().rstrip("\r\n") # chomp
l = str.split()
if len(l) != 2:
- _logger.error(_('Unable to determine version'))
+ _logger.error('Unable to determine version')
return False
version = l[1]
if len(version) > 1 and version[0:2] == "1.":
- _logger.info(_('Reading journal entry (version %s)'), version)
+ _logger.info('Reading journal entry (version %s)', version)
str = f.readline().rstrip("\r\n")
l = str.split(';')
if len(l) != 4:
- _logger.error(_('State line invalid (%s)'), str)
+ _logger.error('State line invalid (%s)', str)
return False
self.text_entry.set_text(l[0])
@@ -554,7 +554,7 @@ class Calculate(activity.Activity):
return True
else:
- _logger.error(_('Unable to read journal entry, unknown version (%s)'), version)
+ _logger.error('Unable to read journal entry, unknown version (%s)', version)
return False
##########################################