summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralastrim <alasmirt@gmail.com>2023-05-26 20:22:24 -0300
committeralastrim <alasmirt@gmail.com>2023-05-26 20:22:24 -0300
commit78f7a0464cebb30cf82cdcb5a6311cd0e0b5e6ca (patch)
tree0e492dc8c9c743b8189fcd338ae850fc71b2f30c
parent3369e0fda9e83d3bd107c69663d7fb2b7d124f6b (diff)
downloadtools-78f7a0464cebb30cf82cdcb5a6311cd0e0b5e6ca.tar.gz
tools-78f7a0464cebb30cf82cdcb5a6311cd0e0b5e6ca.tar.bz2
tools-78f7a0464cebb30cf82cdcb5a6311cd0e0b5e6ca.tar.xz
tools-78f7a0464cebb30cf82cdcb5a6311cd0e0b5e6ca.zip
Remove comment and set default filename to in.po
-rwxr-xr-xgoogletranslate.py6
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")