Core/Locales: Store empty localized strings present in database
Port From (https://github.com/TrinityCore/TrinityCore/commit/74ec1d3cfb3172a7bb3c2d2317396ff82245418e)
This commit is contained in:
@@ -156,8 +156,10 @@ namespace Game
|
||||
}
|
||||
public static void AddLocaleString(string value, Locale locale, StringArray data)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(value))
|
||||
data[(int)locale] = value;
|
||||
if (value == null)
|
||||
value = "";
|
||||
|
||||
data[(int)locale] = value;
|
||||
}
|
||||
public static void GetLocaleString(StringArray data, Locale locale, ref string value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user