fix: handles translation keys that have only one word (i.e. no spaces… (#596)
* fix: handles translation keys that have only one word (i.e. no spaces) in the actual dialogue * fix: fixes dialogue that starts with a space * fix: issues warning if translation key cannot be found (same for a voice file that can't be found) and uses the untranslated text in this case
This commit is contained in:
@@ -46,7 +46,9 @@ func _init(command_string):
|
||||
parameters.append(
|
||||
parameter
|
||||
)
|
||||
elif ":" in parameter and '"' in parameter:
|
||||
elif ':"' in parameter and (parameter.ends_with(':"') or not parameter.ends_with('"')):
|
||||
# The second clause in this helps to handle dialogue that starts with a space
|
||||
# and also allowing single-word dialogue to be handled in a separate elif.
|
||||
quote_open = true
|
||||
parameter_values.append(parameter)
|
||||
elif not quote_open and parameter.begins_with('"'):
|
||||
|
||||
Reference in New Issue
Block a user