comparison babel/messages/catalog.py @ 63:a60ecd4a4954

Move `Translations` and `LazyProxy` to new `babel.support` module, which should contain any convenience code that is useful for applications using Babel/I18n, but not used by Babel itself. ''(Note that [61] was an accidential check in of part of this change)''
author cmlenz
date Fri, 08 Jun 2007 11:54:01 +0000
parents 068952b4d4c0
children d1a7425739d3
comparison
equal deleted inserted replaced
62:0d692e4f1c76 63:a60ecd4a4954
60 >>> Message('foo').pluralizable 60 >>> Message('foo').pluralizable
61 False 61 False
62 >>> Message(('foo', 'bar')).pluralizable 62 >>> Message(('foo', 'bar')).pluralizable
63 True 63 True
64 64
65 :rtype: `bool` 65 :type: `bool`
66 """) 66 """)
67 67
68 def python_format(self): 68 def python_format(self):
69 ids = self.id 69 ids = self.id
70 if not isinstance(ids, (list, tuple)): 70 if not isinstance(ids, (list, tuple)):
76 >>> Message('foo %(name)s bar').python_format 76 >>> Message('foo %(name)s bar').python_format
77 True 77 True
78 >>> Message(('foo %(name)s', 'foo %(name)s')).python_format 78 >>> Message(('foo %(name)s', 'foo %(name)s')).python_format
79 True 79 True
80 80
81 :rtype: `bool` 81 :type: `bool`
82 """) 82 """)
83 83
84 84
85 class Catalog(object): 85 class Catalog(object):
86 """Representation a message catalog.""" 86 """Representation a message catalog."""
Copyright (C) 2012-2017 Edgewall Software