Skip to content

Commit

Permalink
change extract to combine
Browse files Browse the repository at this point in the history
  • Loading branch information
Amr-Nash committed May 21, 2024
1 parent 3012371 commit 020253f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pull_translations: clean_translations_temp_directory
python i18n_scripts/translation.py --split

extract_translations: clean_translations_temp_directory
python i18n_scripts/translation.py --extract
python i18n_scripts/translation.py --combine
10 changes: 5 additions & 5 deletions i18n_scripts/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
def parse_arguments():
"""
This function is the argument parser for this script.
The script takes only one of the two arguments --split or --extract as indicated below.
The script takes only one of the two arguments --split or --combine as indicated below.
"""
parser = argparse.ArgumentParser(description='Split or extract translations.')
parser = argparse.ArgumentParser(description='Split or Combine translations.')
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument('--split', action='store_true',
help='Split translations into separate files for each module and language.')
group.add_argument('--extract', action='store_true',
help='Extract the English translations from all modules into a single file.')
group.add_argument('--combine', action='store_true',
help='Combine the English translations from all modules into a single file.')
return parser.parse_args()


Expand Down Expand Up @@ -356,7 +356,7 @@ def main():
args = parse_arguments()
if args.split:
split_translation_files()
elif args.extract:
elif args.combine:
combine_translation_files()


Expand Down

0 comments on commit 020253f

Please sign in to comment.