OSDN Git Service

Code doc.
authorJames Teh <jamie@jantrid.net>
Thu, 13 Sep 2012 01:32:03 +0000 (11:32 +1000)
committerJames Teh <jamie@jantrid.net>
Thu, 13 Sep 2012 01:32:03 +0000 (11:32 +1000)
source/languageHandler.py

index 0d99414..0de9aa0 100644 (file)
@@ -73,6 +73,11 @@ def getAvailableLanguages():
        return zip(l,d)\r
 \r
 def makePgettext(translations):\r
+       """Obtaina  pgettext function for use with a gettext translations instance.\r
+       pgettext is used to support message contexts,\r
+       but Python 2.7's gettext module doesn't support this,\r
+       so NVDA must provide its own implementation.\r
+       """\r
        if isinstance(translations, gettext.GNUTranslations):\r
                def pgettext(context, message):\r
                        message = unicode(message)\r