Hi,
I have a little problem with journal translations.
I have two languages, and both are vissible when I click on my journals in Speech submenu in AC Game Editor. So it seems, that game engine is aware, that specific journal has specific translation.
However, when I run the game, change the language, I won't see journal translation at all. I see other text translated, but not journals.
Does someone have such problems as me ? Maybe some sollution for that is available ?
Currently I'm debugging AC to see how translation works.
Comments
Strange.
Her is the code from JournalMenu.cs
private string TranslatePage (JournalPage page, int languageNumber)
{
if (languageNumber > 0)
{
return (KickStarter.runtimeLanguages.GetTranslation (page.text, page.lineID, languageNumber));
}
return page.text;
}
text - proper journal text
lineId - -1
languageNUmber - 1
So because of lineId equal -1 I always get original translation.
Now I'm trying to find out, why it is always lineId equal -1 for all my journals
Instead of this:
public JournalPage (JournalPage journalPage)
{
lineID = -1;
text = journalPage.text;
}
It should be that:
public JournalPage (JournalPage journalPage)
{
lineID = journalPage.lineID;
text = journalPage.text;
}
Now it works perfect.