From 552f1a56adab0bc54c4417d1d4ee4ba6875d1a36 Mon Sep 17 00:00:00 2001 From: Zakees Date: Sat, 20 Apr 2024 13:44:06 +0200 Subject: [PATCH] Updated LanguageWorker for 'z' finished words pluralization. --- LanguageWorker_Spanish.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/LanguageWorker_Spanish.cs b/LanguageWorker_Spanish.cs index 92197b1a..03bb3ec0 100644 --- a/LanguageWorker_Spanish.cs +++ b/LanguageWorker_Spanish.cs @@ -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"; }