added support for 3letter language files, issue 1680, thanks Fran
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.6.3-stable+timestamp.2013.09.19.20.49.27
|
||||
Version 2.6.3-stable+timestamp.2013.09.19.21.32.38
|
||||
|
||||
+2
-2
@@ -67,8 +67,8 @@ regex_param = re.compile(r'{(?P<s>.+?)}')
|
||||
|
||||
# pattern for a valid accept_language
|
||||
regex_language = \
|
||||
re.compile('([a-z]{2}(?:\-[a-z]{2})?(?:\-[a-z]{2})?)(?:[,;]|$)')
|
||||
regex_langfile = re.compile('^[a-z]{2}(-[a-z]{2})?\.py$')
|
||||
re.compile('([a-z]{2,3}(?:\-[a-z]{2})?(?:\-[a-z]{2})?)(?:[,;]|$)')
|
||||
regex_langfile = re.compile('^[a-z]{2,3}(-[a-z]{2})?\.py$')
|
||||
regex_backslash = re.compile(r"\\([\\{}%])")
|
||||
regex_plural = re.compile('%({.+?})')
|
||||
regex_plural_dict = re.compile('^{(?P<w>[^()[\]][^()[\]]*?)\((?P<n>[^()\[\]]+)\)}$') # %%{word(varname or number)}
|
||||
|
||||
Reference in New Issue
Block a user