]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix doc typos (pgettext) 1348/head
authorst4lk <myhappydo@gmail.com>
Mon, 23 Feb 2015 09:16:02 +0000 (12:16 +0300)
committerst4lk <myhappydo@gmail.com>
Mon, 23 Feb 2015 09:16:02 +0000 (12:16 +0300)
tornado/locale.py

index c6492a172320a497d4d39207fb298ba14ba64fa2..1a87ed1eb09a819bf6261fecb01a7b5fa9da865e 100644 (file)
@@ -454,20 +454,20 @@ class GettextLocale(Locale):
             return self.gettext(message)
 
     def pgettext(self, context, message, plural_message=None, count=None):
-        """Allows to set context for translation, accept plural forms.
+        """Allows to set context for translation, accepts plural forms.
 
-        Usage example:
+        Usage example::
 
             pgettext("law", "right")
             pgettext("good", "right")
 
-        Plural message example:
+        Plural message example::
 
             pgettext("organization", "club", "clubs", len(clubs))
             pgettext("stick", "club", "clubs", len(clubs))
 
-        To generate POT file with context, add following option to step 1
-        of `load_gettext_translations` sequence:
+        To generate POT file with context, add following options to step 1
+        of `load_gettext_translations` sequence::
 
             xgettext [basic options] --keyword=pgettext:1c,2 --keyword=pgettext:1c,2,3
         """