Skip to content

Commit

Permalink
Updated LanguageWorker for 'z' finished words pluralization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakees committed Apr 20, 2024
1 parent 56acb23 commit 552f1a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LanguageWorker_Spanish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,18 @@ public override string Pluralize(string str, Gender gender, int count = -1)
{
return str + "es";
}
if ("lrndzjsxLRNDZJSX".IndexOf(c) >= 0 || (c == 'h' && c2 == 'c'))
if (("lrndjsxLRNDJSX".IndexOf(c) >= 0 || (c == 'h' && c2 == 'c')) && c != 'z')
{
return str + "es";
}
else if (c == 'z')
{
return str.Replace("z", "c") + "es";
}
else
{
return str + "s";
}
return str + "s";
}

Expand Down

0 comments on commit 552f1a5

Please sign in to comment.