24 |
from types import DictType, StringType, UnicodeType |
from types import DictType, StringType, UnicodeType |
25 |
from Negotiator import negotiator |
from Negotiator import negotiator |
26 |
from Domain import Domain |
from Domain import Domain |
27 |
|
import os |
28 |
from pax import XML |
from pax import XML |
29 |
|
|
30 |
def log(msg, severity=zLOG.INFO, detail='', error=None): |
def log(msg, severity=zLOG.INFO, detail='', error=None): |
48 |
# |
# |
49 |
# Note that these fallbacks are used only to find a catalog. If a particular |
# Note that these fallbacks are used only to find a catalog. If a particular |
50 |
# message in a catalog is not translated, tough luck, you get the msgid. |
# message in a catalog is not translated, tough luck, you get the msgid. |
51 |
LANGUAGE_FALLBACKS = ['en'] |
LANGUAGE_FALLBACKS = list(os.environ.get('LANGUAGE_FALLBACKS', 'en').split(' ')) |
52 |
|
|
53 |
|
|
54 |
class PlacelessTranslationService: |
class PlacelessTranslationService: |