Skip to content

Commit

Permalink
Bugfix: locale PO files and in PO, not POT
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Jul 29, 2015
1 parent f7452cc commit 745a0b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pontoon/administration/files.py
Expand Up @@ -141,6 +141,9 @@ def get_locale_paths(project, locale, source_paths, source_directory):
locale_path = path.replace(
'/' + source_directory + '/', '/' + locale_directory + '/')

if locale_path.endswith('.pot'):
locale_path = locale_path[:-1]

if os.path.exists(locale_path):
locale_paths.append(locale_path)

Expand Down

0 comments on commit 745a0b8

Please sign in to comment.