Skip to content

Commit

Permalink
prevent bug in locale path
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kubat committed Jan 9, 2018
1 parent 99fedfd commit 0d5aeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translation_manager/management/commands/makemessages.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@ def write_po_file(self, potfile, locale):
else:
pofile = os.path.join(basedir, '%s.po' % str(self.domain))
# load data from po file to db
if os.path.dirname(potfile) in settings.LOCALE_PATHS:
if os.path.dirname(potfile).rstrip('/') in [path.rstrip('/') for path in settings.LOCALE_PATHS]:
self.manager.store_to_db(pofile, locale)

0 comments on commit 0d5aeb0

Please sign in to comment.