Allow empty translation keys
This commit is contained in:
committed by
Matthias Mailänder
parent
2867334c00
commit
8f5d8de1c2
@@ -88,8 +88,8 @@ namespace OpenRA
|
||||
|
||||
public bool TryGetString(string key, out string value, IDictionary<string, object> arguments = null)
|
||||
{
|
||||
if (string.IsNullOrEmpty(key))
|
||||
throw new ArgumentException("A translation key must not be null or empty.", nameof(key));
|
||||
if (key == null)
|
||||
throw new ArgumentNullException(nameof(key));
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user