(7163b300e) Added: Way for capitalizing / lowercasing replaced variables depending on the position in the sentence & some implementations
This commit is contained in:
@@ -1539,9 +1539,8 @@ namespace Barotrauma
|
||||
{
|
||||
if (requiredSkill != null)
|
||||
{
|
||||
GUI.AddMessage(TextManager.Get("InsufficientSkills")
|
||||
.Replace("[requiredskill]", TextManager.Get("SkillName." + requiredSkill.Identifier))
|
||||
.Replace("[requiredlevel]", ((int)requiredSkill.Level).ToString()), Color.Red);
|
||||
GUI.AddMessage(TextManager.GetWithVariables("InsufficientSkills", new string[2] { "[requiredskill]", "[requiredlevel]" },
|
||||
new string[2] { TextManager.Get("SkillName." + requiredSkill.Identifier), ((int)requiredSkill.Level).ToString() }, new bool[2] { true, false }), Color.Red);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user