mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Add utf-8 mode to translation checker script
This commit is contained in:
parent
c40e97aa2e
commit
439ed00a20
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ code_lang = args.language
|
||||||
|
|
||||||
def LoadTranslateFile(filename, direction):
|
def LoadTranslateFile(filename, direction):
|
||||||
result = set()
|
result = set()
|
||||||
file = open(filename, 'r')
|
file = open(filename, 'r', encoding="utf-8")
|
||||||
for line in file:
|
for line in file:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if line.startswith('#') or line == '':
|
if line.startswith('#') or line == '':
|
||||||
|
|
Loading…
Reference in a new issue