Version 3.1.0: voice lines linked across all languages from the game data
This commit is contained in:
@@ -55,10 +55,10 @@ class Texts:
|
||||
def for_sound(self, sound, lang=None):
|
||||
"""Subtitle lines of a speech sound, in `lang` (default: the sound's own language). Languages without
|
||||
their own voices link their subtitles to the INT sounds, so e.g. JPN subtitles are found for INT lines."""
|
||||
lang = lang or sound.language or sound.archive
|
||||
lang = lang or (sound.languages[0] if sound.languages else sound.archive)
|
||||
if lang not in self.subtitle_languages():
|
||||
return []
|
||||
return [s for s in self.subtitles(lang) if s.sound == sound.key]
|
||||
return [s for s in self.subtitles(lang) if sound.key in s.sounds]
|
||||
|
||||
def menu(self, lang):
|
||||
"""[loctext.Entry] of the game's current files (the values the game shows now)."""
|
||||
|
||||
Reference in New Issue
Block a user