From 67d0c29a6d3a931c4ca61f8e5dc33a566f6c4995 Mon Sep 17 00:00:00 2001 From: Andriy Chaika Date: Wed, 20 Jul 2011 21:27:57 +0300 Subject: [PATCH] =?UTF-8?q?[0.4.1]=20/RU11072021/=20=D0=94=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/NCLNameCaseRu.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/NCLNameCaseRu.php b/Library/NCLNameCaseRu.php index 3c48195..1b3243c 100644 --- a/Library/NCLNameCaseRu.php +++ b/Library/NCLNameCaseRu.php @@ -27,7 +27,7 @@ class NCLNameCaseRu extends NCLNameCaseCore * Версия языкового файла * @var string */ - protected $languageBuild = '11072011'; + protected $languageBuild = '11072021'; /** * Количество падежей в языке * @var int @@ -160,7 +160,7 @@ class NCLNameCaseRu extends NCLNameCaseCore $this->Rule(400); return true; } - elseif ($this->Last(3, 1) == 'а' or $this->Last(2, 1) == 'е') + elseif ($this->Last(3, 1) == 'а' or $this->in($this->Last(2, 1), 'ел')) { $this->wordForms($this->workingWord, array('я', 'ю', 'я', 'ем', 'е'), 1); $this->Rule(401); @@ -240,7 +240,7 @@ class NCLNameCaseRu extends NCLNameCaseCore $this->Rule(604); return true; } - elseif ($this->in($this->Last(1), 'цср')) + elseif ($this->in($this->Last(1), 'цсрш')) { $this->wordForms($this->workingWord, array('а', 'у', 'а', 'ом', 'е')); $this->Rule(602); @@ -630,7 +630,7 @@ class NCLNameCaseRu extends NCLNameCaseCore $father+=3; } - if ($this->in($this->Last(2), array('ик', 'ша'))) + if ($this->in($this->Last(2), array('ша'))) { $first+=0.5; }