|
|
|
|
|
| DEFAULT_CONSTRUCT_PLURAL_FORM(word,
plural_id) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
read_dict(filename)
return dictionary with translation messages |
source code
|
|
|
|
read_possible_plural_rules()
create list of all possible plural rules files result is cached in
PLURAL_RULES dictionary to increase speed |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findT(path,
language='en')
must be run by the admin app |
source code
|
|
|
|
|
|
|
is_gae = False
|
|
|
DEFAULT_LANGUAGE = 'en'
|
|
|
DEFAULT_LANGUAGE_NAME = 'English'
|
|
|
DEFAULT_NPLURALS = 1
|
|
|
NUMBERS = (<type 'int'>, <type 'long'>, <type 'float'>)
|
|
|
PY_STRING_LITERAL_RE = '(?<=[^\\w]T\\()(?P<name>[uU]?[rR]?(?:\...
|
|
|
regex_translate = re.compile(r'(?s)(?<=[^\w]T\()(?P<name>[uU]?...
|
|
|
regex_param = re.compile(r'\{(?P<s>.+?)\}')
|
|
|
regex_language = re.compile(r'([a-z]{2,3}(?:-[a-z]{2})?(?:-[a-...
|
|
|
regex_langfile = re.compile(r'^[a-z]{2,3}(-[a-z]{2})?\.py$')
|
|
|
regex_backslash = re.compile(r'\\([\\\{\}%])')
|
|
|
regex_plural = re.compile(r'%(\{.+?\})')
|
|
|
regex_plural_dict = re.compile(r'^\{(?P<w>[^\(\)\[\]][^\(\)\[\...
|
|
|
regex_plural_tuple = re.compile(r'^\{(?P<w>[^\[\]\(\)]+)(?:\[(...
|
|
|
regex_plural_file = re.compile(r'^plural-[a-zA-Z]{2}(-[a-zA-Z]...
|
|
|
ttab_in = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\...
|
|
|
ttab_out = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r...
|
|
|
global_language_cache = {}
|
|
|
PLURAL_RULES = {'af': ('af', 2, <function <lambda> at 0x1e56c8...
|
|
|
__package__ = 'gluon'
|