I don't really know exactly how works all the localization stuff, but as I am digging into it (as I previously said, I'm using I2) I see that you are looking at string tables but not always your default database localization.
Here is another example where I don't get my NPC name translated:
In the code below it looks like you are searching in your tables, but the name of the NPC giving the quest has all the localization done in the dialogue database only (switching I2 <=> dialogue database).
(Clivking on the Actor tab I can see all the translation in the All Fields section of the Database.
Is it possible that it's another bug?
This is the code from the Usable script.
Code: Select all
public string GetName()
{
if (string.IsNullOrEmpty(overrideName))
{
return DialogueActor.GetActorName(transform);
}
else if (overrideName.Contains("[lua") || overrideName.Contains("[var"))
{
return DialogueManager.GetLocalizedText(FormattedText.Parse(overrideName, DialogueManager.masterDatabase.emphasisSettings).text);
}
else
{
return DialogueManager.GetLocalizedText(overrideName);
}
}