OSDN Git Service
(root)
/
nvdajp
/
nvdajp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c5244
)
Code doc.
author
James Teh
<jamie@jantrid.net>
Thu, 13 Sep 2012 01:32:03 +0000
(11:32 +1000)
committer
James Teh
<jamie@jantrid.net>
Thu, 13 Sep 2012 01:32:03 +0000
(11:32 +1000)
source/languageHandler.py
patch
|
blob
|
history
diff --git
a/source/languageHandler.py
b/source/languageHandler.py
index
0d99414
..
0de9aa0
100644
(file)
--- a/
source/languageHandler.py
+++ b/
source/languageHandler.py
@@
-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