@@ -, +, @@ ------------------------------------------------------------------------ --- trac/util/translation.py (revision 11689) +++ trac/util/translation.py (revision 11690) @@ -339,11 +339,14 @@ directory is enough. """ try: - return [dirname for dirname - in pkg_resources.resource_listdir('trac', 'locale') - if '.' not in dirname - and (not check_catalog or pkg_resources.resource_exists( + locales = [dirname for dirname + in pkg_resources.resource_listdir('trac', 'locale') + if '.' not in dirname + and (not check_catalog or pkg_resources.resource_exists( 'trac', 'locale/%s/LC_MESSAGES/messages.mo' % dirname))] + if 'en_US' not in locales: + locales.append('en_US') + return locales except Exception: return [] ------------------------------------------------------------------------