Skip to content

Commit

Permalink
Update Translations - Unable to generate file if msgfmt.py was not fo…
Browse files Browse the repository at this point in the history
…und locally
  • Loading branch information
cockroacher committed Feb 28, 2025
1 parent f6dfff3 commit 74b5ea0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/translation_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,9 @@ def ensure_msgfmt_py():
base_directory = Path(os.path.dirname(
os.path.realpath(__file__)) + os.path.sep).parent
data_dir = os.path.join(base_directory.resolve(), 'data') + os.sep
if not os.path.exists(data_dir):
os.makedirs(data_dir)

filename = 'msgfmt.py'
file_path = os.path.join(data_dir,filename)

Expand Down

0 comments on commit 74b5ea0

Please sign in to comment.