dictionary update

This commit is contained in:
vladislav.khorev committed 2014-12-05 04:17:44 +00:00
1 parent 33bbd2863e
commit 856334c75b
8 files changed
+346 -24

No files matched your search

@@ -28,7 +28,7 @@ else
}
$genderSuffix = "";
if ($data["animated"] !== "true" && $data["count"] === "NC_SINGULAR")
if ($data["count"] === "NC_SINGULAR")
{
if ($data["gender"] === "0")
{
@@ -60,7 +60,7 @@ else if ($data["grammaticalCase"] === "NGC_P1_NOMINATIVE")
}
else
{
$combinedStr = $data["grammaticalCase"] . "_" . $data["count"];
$combinedStr = $data["grammaticalCase"] . "_" . $data["count"] . $genderSuffix;
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
}
@@ -7,7 +7,15 @@ $this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Dictio
<h1><?=Yii::t('app', 'Dictionary')?></h1>
<p>
<?=str_replace('{n}', $model->getDataProvider()->itemCount, Yii::t('dict', '{n} records found.'))?>
<?php
if ($model->resultExists())
{
echo str_replace('{n}', $model->getDataProvider()->itemCount, Yii::t('dict', '{n} records found.'));
}
else
{
}
?>
</p>
<?php