hannosch / zope.babel
No description has been added.
Clone this repository (size: 151.3 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/hannosch/zopebabel/
| commit 23: | 3b114acb8ad9 |
| parent 22: | 738326e6998c |
| branch: | default |
Removed simple translation domain indirection
Changed (Δ43 bytes):
raw changeset »
src/zope/babel/simpletranslationdomain.py
src/zope/babel/tests/test_simpletranslationdomain.py
src/zope/babel/translationdomain.py (5 lines added, 3 lines removed)
Up to file-list src/zope/babel/translationdomain.py:
15 |
15 |
""" |
16 |
16 |
import zope.component |
17 |
17 |
from zope.i18nmessage import Message |
18 |
from zope.interface import implements |
|
18 |
19 |
from zope.babel import translate, interpolate |
19 |
from zope.babel.simpletranslationdomain import SimpleTranslationDomain |
|
20 |
20 |
from zope.babel.interfaces import INegotiator |
21 |
from zope.babel.interfaces import ITranslationDomain |
|
21 |
22 |
|
23 |
class TranslationDomain(object): |
|
22 |
24 |
|
23 |
class TranslationDomain(SimpleTranslationDomain): |
|
25 |
implements(ITranslationDomain) |
|
24 |
26 |
|
25 |
def __init__(self, domain |
|
27 |
def __init__(self, domain=None): |
|
26 |
28 |
self.domain = domain |
27 |
29 |
# _catalogs maps (language, domain) to IMessageCatalog instances |
28 |
30 |
self._catalogs = {} |
