Skip to content

Commit

Permalink
Fixed issue with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
pescheck-bram committed Aug 21, 2024
1 parent c32217b commit c1d8783
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python_gpt_po/po_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def update_po_entry(po_file, original_text, translated_text):
if entry:
entry.msgstr = translated_text


class TranslationConfig:
""" Class to hold configuration parameters for the translation service. """
def __init__(self, client, model, bulk_mode=False, fuzzy=False, folder_language=False): # pylint: disable=R0913
Expand Down Expand Up @@ -476,5 +477,6 @@ def main():
languages = [lang.strip() for lang in args.lang.split(',')]
translation_service.scan_and_process_po_files(args.folder, languages)


if __name__ == "__main__":
main()

0 comments on commit c1d8783

Please sign in to comment.