Closed NancokPS2 closed 3 years ago
Update: exchanged -o and -p and the error stopped, but as expected it just says that there's no PO files
I'm a newbie at python so sorry if i'm just talking bs, but could it be this lines (starting at line 240)?
defs_source_dir = os.path.join(args.source_dir, 'Defs', '')
if os.path.isdir(defs_source_dir):
for root, dirs, files in os.walk(defs_source_dir):
Seems like it's looking for a folder named Defs, but the folder is called DefInjected I changed the folder name but i got the same error
Another Update: deleting all po files seems to fix the error, it just says that there are no translated files instead, but as soon as i try to translate any the error returns
Hi again.
Try to run this command (you can even write some *.bat file to automate this):
Y:\Python34\python.exe RimTranslate.py -s SOURCE -p PODIR -o DEST
where
-s SOURCE
- where original Defs located-p PODIR
- directory where will be PO files created/updated-o DEST
- directory where will be created translated XML filesThis is simple illustration of workflow:
[ SOURCE ] -- RimTranslate --> [ PODIR ] -- RimTranslate --> [ DEST ]
You can combine -s, -p, -o options, but you should either define -s and -p OR -p and -o.
THX, it is working now, using that same command i can both generate the POs and translate them with a single bat (i was using bats beforehand, but i had one for each action) This one is working without errors as far as i can see, closed.
I used Poedit for editing and added a comment as said in the readme, tried deleting everything and starting over, i just get the same error Using Python 3.4.4 since it's the latest one of which there are files of My command looks like this: