MCPcopy
hub / github.com/tornadoweb/tornado / translate

Method translate

tornado/locale.py:304–317  ·  view source on GitHub ↗

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``.

(
        self,
        message: str,
        plural_message: Optional[str] = None,
        count: Optional[int] = None,
    )

Source from the content-addressed store, hash-verified

302 ]
303
304 def translate(
305 self,
306 message: str,
307 plural_message: Optional[str] = None,
308 count: Optional[int] = None,
309 ) -> str:
310 """Returns the translation for the given message for this locale.
311
312 If ``plural_message`` is given, you must also provide
313 ``count``. We return ``plural_message`` when ``count != 1``,
314 and we return the singular form for the given message when
315 ``count == 1``.
316 """
317 raise NotImplementedError()
318
319 def pgettext(
320 self,

Callers 3

test_csvMethod · 0.45
test_csv_bomMethod · 0.45
test_gettextMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_csvMethod · 0.36
test_csv_bomMethod · 0.36
test_gettextMethod · 0.36