2010-01-29 18:51:47 +01:00
|
|
|
Index: Lib/gettext.py
|
|
|
|
===================================================================
|
|
|
|
--- Lib/gettext.py.orig
|
2009-01-19 02:18:37 +01:00
|
|
|
+++ Lib/gettext.py
|
2010-01-29 18:51:47 +01:00
|
|
|
@@ -311,8 +311,9 @@ class GNUTranslations(NullTranslations):
|
2009-01-19 02:18:37 +01:00
|
|
|
self._charset = v.split('charset=')[1]
|
|
|
|
elif k == 'plural-forms':
|
|
|
|
v = v.split(';')
|
|
|
|
- plural = v[1].split('plural=')[1]
|
|
|
|
- self.plural = c2py(plural)
|
|
|
|
+ if len(v) > 1:
|
|
|
|
+ plural = v[1].split('plural=')[1]
|
|
|
|
+ self.plural = c2py(plural)
|
|
|
|
# Note: we unconditionally convert both msgids and msgstrs to
|
|
|
|
# Unicode using the character encoding specified in the charset
|
|
|
|
# parameter of the Content-Type header. The gettext documentation
|