Duplicated english script text files to use as a base for spanish integration

This commit is contained in:
Eduardo Quezada
2024-06-28 08:45:03 -04:00
parent eed58556f3
commit 68fca4ae37
583 changed files with 24910 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import glob
import re
import json
import os
import subprocess
# THIS IS A TEMPORARY SCRIPT MADE TO MOVE EXISTING FOLLOWER GRAPHICS FROM A SINGLE DIRECTORY.
# IT TAKES FOLLOWER GRAPHICS FROM a 'followers' FOLDER IN THE ROOT FOLDER AND MOVES THEM BASED ON THEIR NAME.
# EG. 'followers/bulbasaur.png' WILL BE MOVED to 'graphics/pokemon/bulbasaur/follower.png'.
#
# I'M SAVING IT HERE IN CASE IT'S NEEDED SOMEWHERE IN THE FUTURE, THOUGH TWEAKING MIGHT BE NEEDED.
# - AsparagusEduardo
def rename_files():
dict_out = {}
count = 0
for pth in sorted(glob.glob('data/maps/*/text.inc')):
name = pth.replace("data/maps/", "").replace("/text.inc", "")
count+=1
print(name)
os.rename('data/maps/' + name + '/text.inc', 'data/maps/' + name + '/text_es.inc')
rename_files()