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,
)
| 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, |
no outgoing calls