Skip to content

Commit

Permalink
make_package: Fix .pot file generation for real
Browse files Browse the repository at this point in the history
  • Loading branch information
khalim19 committed Nov 10, 2014
1 parent 38cad8d commit 560b9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/make_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def _generate_pot_file(source_dir, version):
subprocess.call(["./generate_pot.sh", version])
os.chdir(orig_cwd)

_generate_pot_file(constants.LOCALE_PATH, version)

files = _get_filtered_files(input_directory)
files_relative_paths = [file_[len(input_directory) + 1:] for file_ in files]

Expand All @@ -202,8 +204,6 @@ def _generate_pot_file(source_dir, version):
if filename in FILENAMES_TO_RENAME:
files_relative_paths[i] = os.path.join(os.path.dirname(rel_file_path), FILENAMES_TO_RENAME[filename])

_generate_pot_file(constants.LOCALE_PATH, version)

temp_dir = tempfile.mkdtemp()
temp_files = [os.path.join(temp_dir, file_rel_path) for file_rel_path in files_relative_paths]

Expand Down

0 comments on commit 560b9e6

Please sign in to comment.