Package gluon :: Module languages
[hide private]
[frames] | no frames]

Module languages

source code

This file is part of web2py Web Framework (Copyrighted, 2007) Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: GPL v2

Classes [hide private]
  lazyT
never to be called explicitly, returned by translator.__call__
  translator
this class is intantiated once in gluon/main.py as the T object
Functions [hide private]
 
findT(application_path, language='en-us')
must be run by the admin app
source code
 
update_all_languages(application_path) source code
Variables [hide private]
  PY_STRING_LITERAL_RE = '(?<=[^\\w]T\\()(?P<name>[uU]?[rR]?(?:\...
  regex_translate = re.compile(r'(?s)(?<=[^\w]T\()(?P<name>[uU]?...
  regex_language = re.compile(r'[a-zA-Z]{2}(-[a-zA-Z]{2})?(-[a-z...
Variables Details [hide private]

PY_STRING_LITERAL_RE

Value:
'(?<=[^\\w]T\\()(?P<name>[uU]?[rR]?(?:\'\'\'(?:[^\']|\'{1,2}(?!\'))*\'\
\'\')|(?:\'(?:[^\'\\\\]|\\\\.)*\')|(?:"""(?:[^"]|"{1,2}(?!"))*""")|(?:\
"(?:[^"\\\\]|\\\\.)*"))'

regex_translate

Value:
re.compile(r'(?s)(?<=[^\w]T\()(?P<name>[uU]?[rR]?(?:\'\'\'(?:[^\']|\'{\
1,2}(?!\'))*\'\'\')|(?:\'(?:[^\'\\]|\\.)*\')|(?:"""(?:[^"]|"{1,2}(?!")\
)*""")|(?:"(?:[^"\\]|\\.)*"))')

regex_language

Value:
re.compile(r'[a-zA-Z]{2}(-[a-zA-Z]{2})?(-[a-zA-Z]+)?')