Minor fix for last commit

This commit is contained in:
Nikolaj Olsson 2023-12-18 21:41:32 +01:00
parent fe5d007ab6
commit 837d850e4b

View File

@ -174,11 +174,11 @@ namespace Nikse.SubtitleEdit.Core.Translate
{
text = "[" + text.ToUpperInvariant().Trim() + "]";
}
else if (SquareBracketsUppercase)
else if (SquareBracketsStartWithLowercase)
{
if (text.Length > 0)
{
text = char.ToUpper(text[0]) + text.Remove(0, 1);
text = char.ToLower(text[0]) + text.Remove(0, 1);
}
text = "[" + text.Trim() + "]";