Home | Trees | Indices | Help |
---|
|
|
|||
|
|||
|
|||
|
|||
|
|
|||
__revision__ =
|
|||
__id__ =
|
|||
__url__ =
|
|||
register = template.Library() Django template tag/filter registrator |
|||
encoding =
Current charset (sets in Django project's settings) |
|||
debug = False Debug mode (sets in Django project's settings) |
|||
show_value = False Show values on errors (sets in Django project's settings) |
|||
default_value =
|
|||
default_uvalue =
|
|
Choose proper form for plural. Value is a amount, parameters are forms of noun. Forms are variants for 1, 2, 5 nouns. It may be tuple of elements, or string where variants separates each other by comma. Examples:{{ some_int|choose_plural:"пример,примера,примеров" }} |
In-words representation of amount. Parameter is a gender: MALE, FEMALE or NEUTER Examples:{{ some_int|in_words }} {{ some_other_int|in_words:FEMALE }} |
in_words and choose_plural in a one flask Makes in-words representation of value with choosing correct form of noun. First parameter is an amount of objects. Second is a gender (MALE, FEMALE, NEUTER). Third is a variants of forms for object name. Examples:{% sum_string some_int MALE "пример,примера,примеров" %} {% sum_string some_other_int FEMALE "задача,задачи,задач" %} |
|
__revision__
|
__id__
|
__url__
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Tue Feb 27 09:42:54 2007 | http://epydoc.sourceforge.net |