Skip to content

Commit 1e1f65f

Browse files
author
Alexander Smishlajev
committed
translate UI message
1 parent 62234d3 commit 1e1f65f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roundup/backends/back_anydbm.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.176 2004-11-12 04:07:04 richard Exp $
18+
#$Id: back_anydbm.py,v 1.177 2004-11-12 10:43:31 a1s Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -34,11 +34,14 @@
3434
print "WARNING: you should upgrade to python 2.1.3"
3535

3636
import whichdb, os, marshal, re, weakref, string, copy, time, shutil
37+
3738
from roundup import hyperdb, date, password, roundupdb, security
39+
from roundup.backends import locking
40+
from roundup.i18n import _
41+
3842
from blobfiles import FileStorage
3943
from sessions_dbm import Sessions, OneTimeKeys
4044
from indexer_dbm import Indexer
41-
from roundup.backends import locking
4245

4346
def db_exists(config):
4447
# check for the user db
@@ -2046,7 +2049,7 @@ def import_journals(self, entries):
20462049
pass
20472050
elif isinstance(prop, hyperdb.Date):
20482051
if type(value) == type(()):
2049-
print 'warning: invalid date tuple %r'%(value,)
2052+
print _('WARNING: invalid date tuple %r')%(value,)
20502053
value = date.Date( "2000-1-1" )
20512054
value = date.Date(value)
20522055
elif isinstance(prop, hyperdb.Interval):

0 commit comments

Comments
 (0)