mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Small fix for the translation function.
This commit is contained in:
@@ -296,7 +296,7 @@ namespace RuriLib
|
||||
if (LineParser.Lookahead(ref input) == TokenType.Boolean)
|
||||
LineParser.SetBool(ref input, this);
|
||||
TranslationDictionary = new Dictionary<string, string>();
|
||||
while (LineParser.Lookahead(ref input) == TokenType.Parameter)
|
||||
while (input != "" && LineParser.Lookahead(ref input) == TokenType.Parameter)
|
||||
{
|
||||
LineParser.EnsureIdentifier(ref input, "KEY");
|
||||
var k = LineParser.ParseLiteral(ref input, "Key");
|
||||
@@ -993,7 +993,7 @@ namespace RuriLib
|
||||
{
|
||||
var split = line.Split(new[] { ':' }, 2);
|
||||
var key = split[0];
|
||||
var val = split[1];
|
||||
var val = split[1].TrimStart();
|
||||
TranslationDictionary[key] = val;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user