Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LINGUE = ["it","de","ru","pl","fr","de","gr","en","tr"]
- def lingua(ling):
- f = open("/pack/Index","r")
- text = f.readlines()
- for x in range(0,len(text)):
- if text[x].startswith("locale/"):
- text[x] = "locale/"+LINGUE[ling]+"/\n"
- text1 = "".join(text)
- f.close()
- f = open("/pack/Index","w")
- f.write(text1)
- f.close()
- f1 = f = open("locale.cfg","w")
- f1.write("10006 1252 "+LINGUE[ling])
- f1.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement