···6868 var id = sound.Location.Path;
6969 if (id.StartsWith("sounds/")) id = id[7..];
7070 if (id.EndsWith(".ogg")) id = id[..^4];
7171- id = id.TrimEnd('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
7171+ id = id.TrimEnd('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_');
72727373 // Unnamed sounds use ID as fallback.
7474 var name = Lang.GetIfExists("captions:" + id) ?? id;