add versionadded designations to newer functions

The base patch for this one adds a note to the guidelines. This patch
adds similar information to the API reference.

Change-Id: I6e21db2dd571aab3d33a97d93d989f986517d802
This commit is contained in:
Doug Hellmann 2015-12-28 15:34:11 +00:00
parent e749d84f3b
commit 176959cbb8
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,8 @@ class TranslatorFactory(object):
The returned function takes two values, the context of
the unicode string, the unicode string to be translated.
.. versionadded:: 2.1.0
"""
return self._make_contextual_translation_func()
@ -174,6 +176,8 @@ class TranslatorFactory(object):
the unicode string, the plural form of the unicode string,
the count of items to be translated.
.. versionadded:: 2.1.0
"""
return self._make_plural_translation_func()