private void LoadTranslation()
{
Token part = m_serializer.ReadSquaredBlockToken(this);
if (part == null)
{
part = m_serializer.ReadTextToken(this);
}
Source = new List<string>();
Destination = new List<string>();
while (part != null && part.Text != "=>")
{
Source.Add(part.Text);
part = m_serializer.ReadSquaredBlockToken(this);
if (part == null)
{
part = m_serializer.ReadTextToken(this);
}
}
if (part == null)
{
m_serializer.Warn("Each translation expects a => as part of the expression", this);
Successful = false;
}
else
{
part.Type = TokenType.Command;
part = m_serializer.ReadSquaredBlockToken(this);
if (part == null)
{
part = m_serializer.ReadTextToken(this);
}
while (part != null)
{
Destination.Add(part.Text);
part = m_serializer.ReadSquaredBlockToken(this);
if (part == null)
{
part = m_serializer.ReadTextToken(this);
}
}
}
}