Skip to content

Commit e61da1c

Browse files
committed
BUGFIX:
- profanity filter needs EN as locale in any case, because the ED server ignores lang.cfg.
1 parent 98b8ef2 commit e61da1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/utils/dcs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ def init_profanity_filter(node: Node):
242242
if not os.path.exists(bakfile):
243243
shutil.copy2(targetfile, bakfile)
244244
with open(targetfile, mode='wb') as outfile:
245-
outfile.write((f"{language.upper()} = " + luadata.serialize(
245+
# we write with locale EN, because the server runs with EN
246+
outfile.write(("EN = " + luadata.serialize(
246247
words, indent='\t', indent_level=0)).encode('utf-8'))
247248
except PermissionError:
248249
node.log.warning(

extensions/olympus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ is to download the latest ZIP file from [here](https://github.com/Pax1601/DCSOly
66
DEFAULT:
77
SavedGames: '%USERPROFILE%\Documents\ModManager\SavedGames'
88
RootFolder: '%USERPROFILE%\Documents\ModManager\RootFolder'
9-
DCS_MERCS:
9+
DCS.release_server:
1010
packages:
1111
- name: DCSOlympus
1212
version: latest

0 commit comments

Comments
 (0)