| This file is part of the web2py Web Framework | Copyrighted by
Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3
(http://www.gnu.org/licenses/lgpl.html) | Plural subsystem is created by
Vladyslav Kozlovskyy (Ukraine) <dbdevelop@gmail.com>
|
|
|
DEFAULT_CONSTRUCT_PLURAL_FORM(word,
plural_id) |
source code
|
|
|
is_writable()
returns True if and only if the filesystem is writable |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
read_dict(filename)
Returns dictionary with translation messages |
source code
|
|
|
read_possible_plural_rules()
Creates list of all possible plural rules files The result is cached
in PLURAL_RULES dictionary to increase speed |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 0x27af39...
|
|
__package__ = ' gluon '
|