dictionary update

This commit is contained in:
Vladislav Khorev 2014-12-05 04:17:44 +00:00
parent 33bbd2863e
commit 856334c75b
8 changed files with 346 additions and 24 deletions

View File

@ -32,8 +32,8 @@ return array(
'Published at: ' => '发表于: ',
'Hello China!' => '你好,中国!',
'Dictionary' => '典',
'Please enter request:' => '请输入要求',
'Dictionary' => '典',
'Please enter request:' => '请输入搜索单词',
'Search' => '搜索',

View File

@ -6,19 +6,29 @@ return array(
'NGC_P1_NOMINATIVE_NC_SINGULAR_FEMALE' => '该单词本身即为单数第一格形式。 例句: Это одна <b>{noun}</b>',
'NGC_P1_NOMINATIVE_NC_SINGULAR_NEUTER' => '该单词本身即为单数第一格形式。 例句: Это одно <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR' => '该单词是单数第二格形式。 例句: Я возле одного <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_MALE' => '该单词是单数第二格形式。 例句: Я возле одного <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_FEMALE' => '该单词是单数第二格形式。 例句: Я возле одной <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_NEUTER' => '该单词是单数第二格形式。 例句: Я возле одного <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR' => '该单词是单数第三格形式。 例句: Я дарю подарок одному <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_MALE' => '该单词是单数第三格形式。 例句: Я дарю подарок одному <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_FEMALE' => '该单词是单数第三格形式。 例句: Я дарю подарок одной <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_NEUTER' => '该单词是单数第三格形式。 例句: Я дарю подарок одному <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE' => '该单词是单数第四格形式。 例句: Я не трогаю одного <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_MALE' => '该单词是单数第四格形式。 例句: Я не трогаю одного <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_FEMALE' => '该单词是单数第四格形式。 例句: Я не трогаю одну <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_NEUTER' => '该单词是单数第四格形式。 例句: Я не трогаю одно <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_MALE' => '该单词是单数第四格形式。例句: Я не трогаю один <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_FEMALE' => '该单词是单数第四格形式。例句: Я не трогаю одну <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_NEUTER' => '该单词是单数第四格形式。例句: Я не трогаю одно <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR' => '该单词是单数第五格形式。 例句: Я с одним <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_MALE' => '该单词是单数第五格形式。 例句: Я с одним <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_FEMALE' => '该单词是单数第五格形式。 例句: Я с одной <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_NEUTER' => '该单词是单数第五格形式。 例句: Я с одним <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR' => '该单词是单数第六格形式。 例句: Я разговариваю об одном <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_MALE' => '该单词是单数第六格形式。 例句: Я разговариваю об одном <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_FEMALE' => '该单词是单数第六格形式。 例句: Я разговариваю об одной <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_NEUTER' => '该单词是单数第六格形式。 例句: Я разговариваю об одном <b>{noun}</b>',
'NGC_P1_NOMINATIVE_NC_PLURAL' => '该单词是复数第一格形式。 例句: Это разные <b>{noun}</b>',

View File

@ -7,22 +7,30 @@ return array(
'NGC_P1_NOMINATIVE_NC_SINGULAR_NEUTER' => 'This word is in nominative case, in the singular. For example: This is one <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR' => 'This word is in genitive case, in the singular. For example: I am near one <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_MALE' => 'This word is in genitive case, in the singular. For example: I am near one <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_FEMALE' => 'This word is in genitive case, in the singular. For example: I am near one <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_NEUTER' => 'This word is in genitive case, in the singular. For example: I am near one <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR' => 'This word is in dative case, in the singular. For example: I give gift to one <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_MALE' => 'This word is in dative case, in the singular. For example: I give gift to one <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_FEMALE' => 'This word is in dative case, in the singular. For example: I give gift to one <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_NEUTER' => 'This word is in dative case, in the singular. For example: I give gift to one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_MALE' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_FEMALE' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_NEUTER' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_MALE' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_FEMALE' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_NEUTER' => 'This word is in accusative case, in the singular. For example: I don\'t disturb one <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR' => 'This word is in instrumental case, in the singular. For example: I am with one <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_MALE' => 'This word is in instrumental case, in the singular. For example: I am with one <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_FEMALE' => 'This word is in instrumental case, in the singular. For example: I am with one <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_NEUTER' => 'This word is in instrumental case, in the singular. For example: I am with one <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR' => 'This word is in prepositional case, in the singular. For example: I talk about one <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_MALE' => 'This word is in prepositional case, in the singular. For example: I talk about one <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_FEMALE' => 'This word is in prepositional case, in the singular. For example: I talk about one <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_NEUTER' => 'This word is in prepositional case, in the singular. For example: I talk about one <b>{noun}</b>',
'NGC_P1_NOMINATIVE_NC_PLURAL' => 'This word is in nominative case, in the plural. For example: There are many <b>{noun}</b>',

View File

@ -6,21 +6,31 @@ return array(
'NGC_P1_NOMINATIVE_NC_SINGULAR_FEMALE' => 'Это слово в именительном падеже в единственном числе. Например: Это одна <b>{noun}</b>',
'NGC_P1_NOMINATIVE_NC_SINGULAR_NEUTER' => 'Это слово в именительном падеже в единственном числе. Например: Это одно <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR' => 'Это слово в родительном падеже в единственном числе. Например: Я возле одного <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_MALE' => 'Это слово в родительном падеже в единственном числе. Например: Я возле одного <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_FEMALE' => 'Это слово в родительном падеже в единственном числе. Например: Я возле одной <b>{noun}</b>',
'NGC_P2_GENITIVE_NC_SINGULAR_NEUTER' => 'Это слово в родительном падеже в единственном числе. Например: Я возле одного <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR' => 'Это слово в дательном падеже в единственном числе. Например: Я дарю подарок одному <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю одного <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_MALE' => 'Это слово в дательном падеже в единственном числе. Например: Я дарю подарок одному <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_FEMALE' => 'Это слово в дательном падеже в единственном числе. Например: Я дарю подарок одной <b>{noun}</b>',
'NGC_P3_DATIVE_NC_SINGULAR_NEUTER' => 'Это слово в дательном падеже в единственном числе. Например: Я дарю подарок одному <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю один <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_MALE' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю одного <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_FEMALE' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю одну <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_ANIMATE_NEUTER' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю одно <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_MALE' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю один <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_FEMALE' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю одну <b>{noun}</b>',
'NGC_P4_ACCUSATIVE_NC_SINGULAR_INANIMATE_NEUTER' => 'Это слово в винительном падеже в единственном числе. Например: Я не трогаю одно <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR' => 'Это слово в творительном падеже в единственном числе. Например: Я с одним <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_MALE' => 'Это слово в творительном падеже в единственном числе. Например: Я с одним <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_FEMALE' => 'Это слово в творительном падеже в единственном числе. Например: Я с одной <b>{noun}</b>',
'NGC_P5_INSTRUMENTAL_NC_SINGULAR_NEUTER' => 'Это слово в творительном падеже в единственном числе. Например: Я с одним <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR' => 'Это слово в предложном падеже в единственном числе. Например: Я разговариваю об одном <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_MALE' => 'Это слово в предложном падеже в единственном числе. Например: Я разговариваю об одном <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_FEMALE' => 'Это слово в предложном падеже в единственном числе. Например: Я разговариваю об одной <b>{noun}</b>',
'NGC_P6_PREPOSITIONAL_NC_SINGULAR_NEUTER' => 'Это слово в предложном падеже в единственном числе. Например: Я разговариваю об одном <b>{noun}</b>',
'NGC_P1_NOMINATIVE_NC_PLURAL' => 'Это слово в именительном падеже в множественном числе. Например: Это разные <b>{noun}</b>',

View File

@ -52,7 +52,7 @@ class DictionaryForm extends CFormModel
public function resultExists()
{
return ($this->response['nouns'] !== "");
return ($this->serverIsWorking) && ($this->response) && ($this->response['nouns'] !== "");
}
public function getDataProvider()

View File

@ -1110,3 +1110,289 @@ Stack trace:
#16 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#17 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
2014/12/01 10:42:24 [error] [php] array_slice() expects parameter 1 to be array, null given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 00:55:08 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 00:58:48 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 01:07:11 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 01:40:00 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 02:36:20 [error] [php] array_slice() expects parameter 1 to be array, null given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 02:55:40 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 06:07:25 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/02 06:07:31 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/05 05:43:36 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/05 05:44:17 [error] [php] array_slice() expects parameter 1 to be array, string given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(10): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (10)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/05 07:13:15 [error] [php] array_slice() expects parameter 1 to be array, null given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(13): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (13)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)
2014/12/05 07:14:57 [error] [php] array_slice() expects parameter 1 to be array, null given (C:\Workplace\yii1.1.15\framework\web\CArrayDataProvider.php:95)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CDataProvider.php(212): CArrayDataProvider->getData()
#1 C:\Workplace\yii1.1.15\framework\base\CComponent.php(111): CArrayDataProvider->getItemCount()
#2 C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php(13): CArrayDataProvider->__get()
#3 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require()
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): SiteController->renderInternal()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(869): SiteController->renderFile()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(782): SiteController->renderPartial()
#7 C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php(69): SiteController->render()
#8 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): SiteController->actionDictionary()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(286): SiteController->runAction()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): SiteController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): SiteController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\cj\index.php(25): CWebApplication->run()
REQUEST_URI=/cj/index.php?r=site/dictionary
in C:\Workplace\Apache2.4\htdocs\cj\protected\views\site\dictionaryResult.php (13)
in C:\Workplace\Apache2.4\htdocs\cj\protected\controllers\SiteController.php (69)
in C:\Workplace\Apache2.4\htdocs\cj\index.php (25)

View File

@ -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>";
}

View File

@ -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