diff --git a/python_gpt_po/po_translator.py b/python_gpt_po/po_translator.py index 9dead4c..4b89286 100644 --- a/python_gpt_po/po_translator.py +++ b/python_gpt_po/po_translator.py @@ -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 @@ -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()