mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Use forward-slash (/) for path separator in translation files
The lstrip (left trim) call is to make sure that there are no slashes at the beginning of file paths.
This commit is contained in:
parent
0d4b489545
commit
87fa4de59c
1 changed files with 1 additions and 0 deletions
|
@ -425,6 +425,7 @@ def generate_template(folder, mod_name):
|
|||
sources = sorted(list(sources), key=str.lower)
|
||||
newSources = []
|
||||
for i in sources:
|
||||
i = "/".join(os.path.split(i)).lstrip("/")
|
||||
newSources.append(f"{symbol_source_prefix} {i} {symbol_source_suffix}")
|
||||
dOut[d] = newSources
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue