2014-11-26 20:18:59 +00:00
|
|
|
<?php
|
|
|
|
/* @var $this SiteController */
|
|
|
|
|
|
|
|
$this->pageTitle=Yii::t('app', Yii::app()->name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<p>
|
2014-12-01 07:22:08 +00:00
|
|
|
<?=str_replace('{nounNominative}', $data["nominativeSingularForm"], Yii::t('dict', 'Most likely, original word is <b>{nounNominative}</b>'))?>
|
2014-11-26 20:18:59 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2014-12-01 07:22:08 +00:00
|
|
|
<?php
|
2014-11-26 20:18:59 +00:00
|
|
|
|
2014-12-01 07:22:08 +00:00
|
|
|
|
|
|
|
$animateSuffix = "";
|
|
|
|
if ($data["animated"] === "true")
|
|
|
|
{
|
|
|
|
$animateSuffix = "ANIMATE";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$animateSuffix = "INANIMATE";
|
|
|
|
}
|
|
|
|
|
|
|
|
$genderSuffix = "";
|
|
|
|
if ($data["animated"] !== "true" && $data["count"] === "NC_SINGULAR")
|
|
|
|
{
|
|
|
|
if ($data["gender"] === "0")
|
|
|
|
{
|
|
|
|
$genderSuffix = "_MALE";
|
|
|
|
}
|
|
|
|
else if ($data["gender"] === "1")
|
|
|
|
{
|
|
|
|
$genderSuffix = "_FEMALE";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$genderSuffix = "_NEUTER";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($data["grammaticalCase"] === "NGC_P4_ACCUSATIVE")
|
|
|
|
{
|
|
|
|
$combinedStr = $data["grammaticalCase"] . "_" . $data["count"] . "_" . $animateSuffix . $genderSuffix;
|
|
|
|
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
|
|
|
|
|
|
|
|
}
|
|
|
|
else if ($data["grammaticalCase"] === "NGC_P1_NOMINATIVE")
|
|
|
|
{
|
|
|
|
$combinedStr = $data["grammaticalCase"] . "_" . $data["count"] . $genderSuffix;
|
|
|
|
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$combinedStr = $data["grammaticalCase"] . "_" . $data["count"];
|
|
|
|
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
echo Yii::t('dict', $animateSuffix) . "<BR>";
|
|
|
|
|
|
|
|
?>
|
2014-11-26 20:18:59 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|