Skip to content

Commit

Permalink
Merge pull request #38 from rffontenelle/patch-1
Browse files Browse the repository at this point in the history
transifex: Sort dirs and files alphabetically
  • Loading branch information
tk0miya committed Apr 11, 2020
2 parents a51e033 + ced79f0 commit 4a415db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx_intl/transifex.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def update_txconfig_resources(transifex_project_name, locale_dir, pot_dir):
transifex_project_name = re.sub(r'[^\-_\w]', '', transifex_project_name)

for dirpath, dirnames, filenames in os.walk(pot_dir):
for filename in filenames:
dirnames.sort()
for filename in sorted(filenames):
pot_file = os.path.join(dirpath, filename)
base, ext = os.path.splitext(pot_file)
if ext != ".pot":
Expand Down

0 comments on commit 4a415db

Please sign in to comment.