wmlxgettext: always use Unix file paths in .pot files

Fixes #7380.
This commit is contained in:
Elvish_Hunter 2023-02-16 23:28:05 +01:00
parent 3d13628bb8
commit 59b6049f9f
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,7 @@
### Miscellaneous and Bug Fixes
* wmllint now validates `rank=` values in `[campaign]` (issue #7224)
* Fixed a crash when checking if abilities are active during game initialisation after loading a saved game. (issues #5643, #7238)
* wmlxgettext now outputs Unix-like paths in .pot file comments even on Windows (issue #7380)
## Version 1.17.11
### Campaigns

View file

@ -17,6 +17,8 @@ def autoscan(pathdir):
value = re.sub(r'^\/', '', value)
else:
value = re.sub(r'^(?:[A-Za-z]\:)?\\', '', value)
# use Unix path separators even on Windows
value = value.replace("\\", "/")
filelist.append(value)
# end if m
# end for name