/[opental]/opental/PlacelessTranslationService/PlacelessTranslationService.py
ViewVC logotype

Diff of /opental/PlacelessTranslationService/PlacelessTranslationService.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by lalo, Sun Jan 26 23:17:07 2003 UTC revision 1.8 by magnusheino, Wed Jan 29 11:36:34 2003 UTC
# Line 24  import re, zLOG Line 24  import re, zLOG
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):
# Line 47  _get_var_regex = re.compile(r'%(n)s' %({ Line 48  _get_var_regex = re.compile(r'%(n)s' %({
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:

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26