This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hodai goldman
Recipients hodai goldman
Date 2019-06-07.16:33:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559925201.97.0.400746291459.issue37198@roundup.psfhosted.org>
In-reply-to
Content
_parse_localename fail to parse 'US_IL':

Traceback (most recent call last):
  File "/usr/bin/flowblade", line 78, in <module>
    app.main(modules_path)
  File "/usr/share/flowblade/Flowblade/app.py", line 194, in main
    translations.init_languages()
  File "/usr/share/flowblade/Flowblade/translations.py", line 39, in init_languages
    lc, encoding = locale.getdefaultlocale()
  File "/usr/lib/python2.7/locale.py", line 545, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.7/locale.py", line 477, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: en_IL


need to add another check for '_' separator, code:

    if '.' in code:
        return tuple(code.split('.')[:2])
History
Date User Action Args
2019-06-07 16:33:21hodai goldmansetrecipients: + hodai goldman
2019-06-07 16:33:21hodai goldmansetmessageid: <1559925201.97.0.400746291459.issue37198@roundup.psfhosted.org>
2019-06-07 16:33:21hodai goldmanlinkissue37198 messages
2019-06-07 16:33:21hodai goldmancreate