Skip to content

Commit e03c2c7

Browse files
committed
fix newlines in translations
1 parent 4a26b67 commit e03c2c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/tr-extractor/src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@ fn clean_translations(
294294
value: translated,
295295
} in tr_entries
296296
{
297+
// todo: check what "\\N" means. in some places it just has nothing in game
298+
let translated = translated
299+
.replace("\\n", "\n")
300+
.replace("\\\n", "\n")
301+
.replace("\\\\N", "");
302+
297303
// todo: fix this case ("Escape Pod 3" detected as prefix)
298304
if original == "Escape Pod 3 Survivors" {
299305
translation.insert(original, translated);

0 commit comments

Comments
 (0)