Public Member Functions | |
def | __init__ |
def | translate |
Public Attributes | |
gettext | |
ngettext |
def tornado.locale.GettextLocale.__init__ | ( | self, | |
code, | |||
translations | |||
) |
Reimplemented from tornado.locale.Locale.
def tornado.locale.GettextLocale.translate | ( | self, | |
message, | |||
plural_message = None , |
|||
count = None |
|||
) |
Returns the translation for the given message for this locale. If ``plural_message`` is given, you must also provide ``count``. We return ``plural_message`` when ``count != 1``, and we return the singular form for the given message when ``count == 1``.
Reimplemented from tornado.locale.Locale.