Skip to content

Commit

Permalink
Merge pull request #829 from USStateDept/windev
Browse files Browse the repository at this point in the history
Fixing Windows Slashes and Doctype error for lxml
  • Loading branch information
Tryggvi Björgvinsson committed Nov 24, 2014
2 parents 7c1d9a7 + cbbc18a commit 673567d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openspending/ui/i18n/__init__.py
Expand Up @@ -16,7 +16,8 @@ def get_available_languages():
messagefiles = gettext.find(config['pylons.package'], localedir,
languages=babel.Locale('en').languages.keys(),
all=True)
return [path.split('/')[-3] for path in messagefiles]

return [path.split(os.path.sep)[-3] for path in messagefiles]


def get_available_locales():
Expand Down

0 comments on commit 673567d

Please sign in to comment.