windows and osx cannot find the rules folder, for now, ignore it
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.3 (2012-08-30 22:36:07) stable
|
Version 2.0.3 (2012-08-30 23:07:46) stable
|
||||||
|
|||||||
+8
-7
@@ -249,13 +249,14 @@ def read_possible_plurals():
|
|||||||
pdir = pjoin(pdirname(__file__),'contrib','rules')
|
pdir = pjoin(pdirname(__file__),'contrib','rules')
|
||||||
plurals = {}
|
plurals = {}
|
||||||
# scan rules directory for plural_rules-*.py files:
|
# scan rules directory for plural_rules-*.py files:
|
||||||
for pname in os.listdir(pdir):
|
if os.path.exists(pdir):
|
||||||
if not isdir(pname) and regex_plural_rules.match(pname):
|
for pname in os.listdir(pdir):
|
||||||
lang = pname[13:-3]
|
if not isdir(pname) and regex_plural_rules.match(pname):
|
||||||
fname = ospath.join(pdir, pname)
|
lang = pname[13:-3]
|
||||||
n, f1, f2, status = read_global_plural_rules(fname)
|
fname = ospath.join(pdir, pname)
|
||||||
if status == 'ok':
|
n, f1, f2, status = read_global_plural_rules(fname)
|
||||||
plurals[lang] = (lang, n, f1, f2, pname)
|
if status == 'ok':
|
||||||
|
plurals[lang] = (lang, n, f1, f2, pname)
|
||||||
plurals['default'] = ('default',
|
plurals['default'] = ('default',
|
||||||
DEFAULT_NPLURALS,
|
DEFAULT_NPLURALS,
|
||||||
DEFAULT_GET_PLURAL_ID,
|
DEFAULT_GET_PLURAL_ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user