minor changes
This commit is contained in:
1 parent
6f57762c59
commit
834f92267c
5 files changed
+209
-76
No files matched your search
@@ -12,21 +12,21 @@ $this->pageTitle=Yii::t('app', Yii::app()->name);
|
||||
<p>
|
||||
<?php
|
||||
|
||||
$wordType = $data["word"];
|
||||
$wordType = $data["type"];
|
||||
|
||||
$nounData = null;
|
||||
$modificatorsData = null;
|
||||
$adjectiveData = null;
|
||||
if ($wordType === "noun")
|
||||
{
|
||||
$nounData = $data["noun"];
|
||||
echo str_replace('{nominative}', $nounData["nominativeSingularForm"], Yii::t('dict', 'Most likely, original word is <b>{nominative}</b><BR>'));
|
||||
$modificatorsData = $data["modificators"];
|
||||
echo str_replace('{nominative}', $data["word"], Yii::t('dict', 'Most likely, original word is <b>{nominative}</b><BR>'));
|
||||
echo Yii::t('dict', "This is noun") . "<BR>";
|
||||
}
|
||||
|
||||
if ($wordType === "adjective")
|
||||
{
|
||||
$adjectiveData = $data["adjective"];
|
||||
echo str_replace('{nominative}', $adjectiveData["nominativeSingularForm"], Yii::t('dict', 'Most likely, original word is <b>{nominative}</b><BR>'));
|
||||
echo str_replace('{nominative}', $data["word"], Yii::t('dict', 'Most likely, original word is <b>{nominative}</b><BR>'));
|
||||
echo Yii::t('dict', "This is adjective") . "<BR>";
|
||||
}
|
||||
?>
|
||||
@@ -38,7 +38,7 @@ echo Yii::t('dict', "This is adjective") . "<BR>";
|
||||
if ($wordType === "noun")
|
||||
{
|
||||
$animateSuffix = "";
|
||||
if ($nounData["animated"] === "true")
|
||||
if ($modificatorsData["animated"] === "true")
|
||||
{
|
||||
$animateSuffix = "ANIMATE";
|
||||
}
|
||||
@@ -48,13 +48,13 @@ else
|
||||
}
|
||||
|
||||
$genderSuffix = "";
|
||||
if ($nounData["count"] === "NC_SINGULAR")
|
||||
if ($modificatorsData["count"] === "NC_SINGULAR")
|
||||
{
|
||||
if ($nounData["gender"] === "0")
|
||||
if ($modificatorsData["gender"] === "0")
|
||||
{
|
||||
$genderSuffix = "_MALE";
|
||||
}
|
||||
else if ($nounData["gender"] === "1")
|
||||
else if ($modificatorsData["gender"] === "1")
|
||||
{
|
||||
$genderSuffix = "_FEMALE";
|
||||
}
|
||||
@@ -66,21 +66,21 @@ if ($nounData["count"] === "NC_SINGULAR")
|
||||
|
||||
|
||||
|
||||
if ($nounData["grammaticalCase"] === "NGC_P4_ACCUSATIVE")
|
||||
if ($modificatorsData["grammaticalCase"] === "NGC_P4_ACCUSATIVE")
|
||||
{
|
||||
$combinedStr = $nounData["grammaticalCase"] . "_" . $nounData["count"] . "_" . $animateSuffix . $genderSuffix;
|
||||
$combinedStr = $modificatorsData["grammaticalCase"] . "_" . $modificatorsData["count"] . "_" . $animateSuffix . $genderSuffix;
|
||||
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
|
||||
|
||||
}
|
||||
else if ($nounData["grammaticalCase"] === "NGC_P1_NOMINATIVE")
|
||||
else if ($modificatorsData["grammaticalCase"] === "NGC_P1_NOMINATIVE")
|
||||
{
|
||||
$combinedStr = $nounData["grammaticalCase"] . "_" . $nounData["count"] . $genderSuffix;
|
||||
$combinedStr = $modificatorsData["grammaticalCase"] . "_" . $modificatorsData["count"] . $genderSuffix;
|
||||
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$combinedStr = $nounData["grammaticalCase"] . "_" . $nounData["count"] . $genderSuffix;
|
||||
$combinedStr = $modificatorsData["grammaticalCase"] . "_" . $modificatorsData["count"] . $genderSuffix;
|
||||
echo str_replace('{noun}', $request, Yii::t('dict', $combinedStr)) . "<BR>";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user