Thanks for this wonderful tool, I tied it and once it was completed it gave this error:
Error saving the file: 'latin-1' codec can't encode characters in position 657-659: ordinal not in range(256)
so I used the following for saving and it worked
# Save the translated .po file with UTF-8 encoding
output_filename = 'translated_arabic.po'
try:
with open(output_filename, 'w', encoding='utf-8') as f:
f.write(po_file.__unicode__()) # Ensures the file is saved in UTF-8
print(f"\nTranslation complete. The file is saved as '{output_filename}'")
except Exception as e:
print(f"Error saving the file: {e}")