diff options
-rwxr-xr-x | googletranslate.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/googletranslate.py b/googletranslate.py index 487e519..d907c9f 100755 --- a/googletranslate.py +++ b/googletranslate.py @@ -4,13 +4,9 @@ import polib from googletrans import Translator, LANGCODES from time import sleep -# When using googletrans, make sure you have a new version to avoid errors. Recommended version: pip install googletrans==4.0.0-rc1 -# Source: https://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group - - def main(): ttl = Translator() - po = polib.pofile('Spanish.po') + po = polib.pofile('in.po') cnt = 0 print(f"Current progress: {str(po.percent_translated())}") print("Initiating") |