internal KeyValuePair(string key, string value)
{
int index = key.IndexOf('[');
if (index >= 0 && key.Length != 0 && key[key.Length - 1] == ']') {
this.Key = key.Substring(0, index).TrimEnd();
this.Language = key.Substring(index + 1, key.Length - index - 2).Trim();
this.Value = value;
} else {
this.Key = key;
this.Language = null;
this.Value = value;
}
}