diff --git a/Engines/FlatRedBallXNA/FlatRedBall/Localization/LocalizationManager.cs b/Engines/FlatRedBallXNA/FlatRedBall/Localization/LocalizationManager.cs index b1c467ae9..760d1a3c4 100644 --- a/Engines/FlatRedBallXNA/FlatRedBall/Localization/LocalizationManager.cs +++ b/Engines/FlatRedBallXNA/FlatRedBall/Localization/LocalizationManager.cs @@ -251,7 +251,7 @@ public static string TranslateForLanguage(string stringID, int language) } } - public static string[] TranslateMultiple(string stringID) + public static string[] TranslateMultiple(string stringID, int? forcedLanguage = null) { if (stringID == null) { @@ -259,8 +259,9 @@ public static string[] TranslateMultiple(string stringID) } else if (mStringDatabase.ContainsKey(stringID)) { + var language = forcedLanguage ?? CurrentLanguage; var entry = mStringDatabase[stringID]; - var toReturn = entry.Rows.Select(item => item[CurrentLanguage]); + var toReturn = entry.Rows.Select(item => item[language]); return toReturn.ToArray(); }