back',
'/main/index',
array(
'class' => 'link'
@@ -114,7 +114,7 @@
'bootstrap.widgets.TbButton',
array(
'buttonType' => 'submit',
- 'label' => 'Сохранить',
+ 'label' => 'save',
'type' => null,
'htmlOptions' => array(
'class' => 'btn btn-blue',
diff --git a/backend/modules/admin/views/settings/pagesPro.php b/backend/modules/admin/views/settings/pagesPro.php
index 0319631..2eb18a9 100644
--- a/backend/modules/admin/views/settings/pagesPro.php
+++ b/backend/modules/admin/views/settings/pagesPro.php
@@ -45,7 +45,7 @@
Вернуться',
+ '
back',
'/main/index',
array(
'class' => 'link'
@@ -103,7 +103,7 @@
'bootstrap.widgets.TbButton',
array(
'buttonType' => 'submit',
- 'label' => 'Сохранить',
+ 'label' => 'save',
'type' => null,
'htmlOptions' => array(
'class' => 'btn btn-blue',
diff --git a/backend/modules/admin/widgets/views/menuSetting.php b/backend/modules/admin/widgets/views/menuSetting.php
index 3ba5578..3b132e0 100644
--- a/backend/modules/admin/widgets/views/menuSetting.php
+++ b/backend/modules/admin/widgets/views/menuSetting.php
@@ -26,13 +26,18 @@
* along with MolotokSoftware. If not, see
.
*/
+ /*
+ *Основное Common Settings
+ *Тексты Privacy Policy
+ *Настройки ПРО Site Usage Agreement
+ */
$this->widget(
'zii.widgets.CMenu',
array(
'items' => array(
[
- 'label' => 'Основное',
+ 'label' => 'Common Settings',
'url' => ['/admin/settings/common'],
// 'itemOptions' => array('class' => Yii::app()->controller->action->id=='page'?'active':'')
],
@@ -44,13 +49,13 @@
],
[
- 'label'=>'Тексты',
+ 'label'=>'Privacy Policy',
'url' => ['/admin/settings/pagesPro'],
// 'itemOptions' => array('class' => Yii::app()->controller->id=='reviews'?'active':'')
],
[
- 'label' => 'Настройки ПРО',
+ 'label' => 'Site Usage Agreement',
'url' => ['/admin/settings/settingsPro'],
// 'itemOptions' => array('class' => Yii::app()->controller->action->id=='about_me'?'active':'')
],
diff --git a/backend/modules/catalog/config/auth.php b/backend/modules/catalog/config/auth.php
index 0c9be48..ee1b916 100644
--- a/backend/modules/catalog/config/auth.php
+++ b/backend/modules/catalog/config/auth.php
@@ -26,49 +26,53 @@
* along with MolotokSoftware. If not, see
.
*/
-
+/*
+*создания пользователя create user
+*
+*
+*/
return array(
'postComments' => array(
'type' => CAuthItem::TYPE_TASK,
- 'description' => '',
+ 'description' => 'postComments',
'bizRule' => null,
'data' => null,
),
'createUser' => array(
'type' => CAuthItem::TYPE_OPERATION,
- 'description' => 'создания пользователя',
+ 'description' => 'Create User',
'bizRule' => null,
'data' => null,
),
'updateUser' => array(
'type' => CAuthItem::TYPE_OPERATION,
- 'description' => 'обновления пользователя',
+ 'description' => 'Update User',
'bizRule' => null,
'data' => null,
),
'listUser' => array(
'type' => CAuthItem::TYPE_OPERATION,
- 'description' => 'просмотреть список пользователей',
+ 'description' => 'List Users',
'bizRule' => null,
'data' => null,
),
'deleteUser' => array(
'type' => CAuthItem::TYPE_OPERATION,
- 'description' => 'удалить пользователя',
+ 'description' => 'Delete User',
'bizRule' => null,
'data' => null,
),
- //запрет на удаение самого себя
+ //запрет на удаение самого себя / restrict the ability to delete yourself
'editOwnUser' => array(
'type' => CAuthItem::TYPE_TASK,
- 'description' => 'запрет на удаение самого себя',
+ 'description' => 'Edit Own User',
'bizRule' => 'return Yii::app()->user->id==$params["user"];',
'data' => null,
),
'managesUser' => array(
'type' => CAuthItem::TYPE_TASK,
- 'description' => 'Управления пользователями',
+ 'description' => 'Manage User',
'children' => array(
//'editOwnUser',
'listUser',
@@ -81,7 +85,7 @@
),
'user' => array(
'type' => CAuthItem::TYPE_ROLE,
- 'description' => 'user',
+ 'description' => 'User',
'bizRule' => null,
'data' => null,
),
diff --git a/backend/modules/catalog/controllers/AttributeController.php b/backend/modules/catalog/controllers/AttributeController.php
index feeef48..d5f6892 100644
--- a/backend/modules/catalog/controllers/AttributeController.php
+++ b/backend/modules/catalog/controllers/AttributeController.php
@@ -25,6 +25,17 @@
* You should have received a copy of the GNU General Public License
* along with MolotokSoftware. If not, see
.
*/
+
+ /*
+ *Некорректный запрос Invalid Request
+ *Атрибут успешно сохранен Attribute Succesfully Saved
+ *Атрибут успешно создан Attribute Succesfully Created
+ *Ошыбка при удалении Error While Deleting
+ *Атрибут успешно удален Attribute Succesfully Deleted
+ *выберите значения Select Values
+ *Атрибут не существует Attribute Does Not Exist
+ */
+
class AttributeController extends BackController
@@ -65,9 +76,9 @@ public function accessRules()
public function actionToggle($id, $attribute)
{
if (!Yii::app()->request->isPostRequest)
- throw new CHttpException(400, 'Некорректный запрос');
+ throw new CHttpException(400, 'Invalid Request');
if (!in_array($attribute, array('mandatory')))
- throw new CHttpException(400, 'Некорректный запрос');
+ throw new CHttpException(400, 'Invalid Request');
$model = $this->_loadModel($id);
$model->$attribute = $model->$attribute ? 0 : 1;
@@ -109,6 +120,7 @@ public function actionIndex()
* @param $values array
* @param $attrId int
* удалят атрибуты из базы которые были удалены при редактировании
+ * delete attributes from the database that were deleted during editing
*/
protected function deleteDiffValues($values, $attrId, $parentId = null)
{
@@ -392,7 +404,7 @@ public function actionUpdate($id)
);
}
- Yii::app()->user->setFlash('success', 'Атрибут успешно сохранен');
+ Yii::app()->user->setFlash('success', 'Attribute Succesfully Saved');
$this->redirect(array('/catalog/attribute/index'));
}
}
@@ -498,7 +510,7 @@ public function actionCreate($type = 'common')
}
- Yii::app()->user->setFlash('success', 'Атрибут успешно создан');
+ Yii::app()->user->setFlash('success', 'Attribute Succesfully Created');
if ($_POST['submit'] == 'index') {
$this->redirect(array('/catalog/attribute/index'));
} else {
@@ -525,9 +537,9 @@ public function actionDelete($id)
{
$deleted = $this->loadModel('Attribute', $id)->delete();
if ($deleted == 0) {
- RAjax::error(array('messages' => 'Ошыбка при удалении'));
+ RAjax::error(array('messages' => 'Error While Deleting'));
} else {
- RAjax::success(array('messages' => 'Атрибут успешно удален'));
+ RAjax::success(array('messages' => 'Attribute Succesfully Deleted'));
}
}
@@ -537,7 +549,7 @@ public function actionGetChildValues($id)
$data = array();
RAjax::data(
array(
- 'options' => '
- выберите значения - '
+ 'options' => '
- Select Values - '
)
);
}
@@ -551,7 +563,7 @@ public function actionGetChildValues($id)
if (count($values) > 0) {
$htmlOptions = array(
- 'empty' => '- выберите значения -'
+ 'empty' => '- Select Values -'
);
$rawData = CHtml::listData($values, 'value_id', 'value');
@@ -574,9 +586,9 @@ protected function _loadModel($id)
{
if (!$model = Attribute::model()->findByPk($id)) {
if (Yii::app()->request->isAjaxRequest) {
- RAjax::error(array('messages' => 'Атрибут не существует'));
+ RAjax::error(array('messages' => 'Attribute Does Not Exist'));
} else {
- throw new CHttpException(404, 'Атрибут не существует');
+ throw new CHttpException(404, 'Attribute Does Not Exist');
}
}
return $model;
diff --git a/backend/modules/catalog/controllers/AuctionController.php b/backend/modules/catalog/controllers/AuctionController.php
index 7c9a389..22c7d32 100644
--- a/backend/modules/catalog/controllers/AuctionController.php
+++ b/backend/modules/catalog/controllers/AuctionController.php
@@ -27,7 +27,18 @@
* along with MolotokSoftware. If not, see
.
*/
-
+/*
+*Неизвестный тип Unknown Type
+*отсутствует каталог Catalog Missing
+*Лот успешно сохранен Listing Succesfully Saved
+*выберите категорию Select Category
+*Ошыбка при удалении Error While Deleting
+*Лот успешно удален Succesfully Deleted Listing
+*Успешно удалено Succesfully Deleted
+*Ошыбка при удалении Error While Deleting
+*/
+
+
class AuctionController extends BackController
{
@@ -137,7 +148,7 @@ public function actionUpdate($id)
)
);
} else {
- throw new CException('Неизвестный тип');
+ throw new CException('Unknown Type');
}
}
@@ -229,7 +240,7 @@ public function save($model)
if (!is_dir($save_path . 'thumbs')) {
if ((@mkdir($save_path . 'thumbs')) == false) {
- throw new CException('отсутствует каталог Thumbs');
+ throw new CException('Catalog Missing: Thumbs');
}
}
@@ -310,9 +321,9 @@ public function save($model)
$transaction = $model->dbConnection->beginTransaction();
try {
- //сохраняем параметры
+ //сохраняем параметры saving parameters
if (isset($_POST['options'])) {
- //удаляем текущие атрибуты
+ //удаляем текущие атрибуты deleting running or flowing attributes
if (!$model->isNewRecord) {
Yii::app()->db->createCommand()
->delete(
@@ -322,7 +333,7 @@ public function save($model)
);
}
- //сохранить выбранные значения
+ //save выбранные значения save selected values
if (!empty($_POST['options'][0])) {
foreach ($_POST['options'][0] as $key => $value) {
//checkbox list
@@ -356,7 +367,7 @@ public function save($model)
}
}
- //сохранить текстовые значения
+ //save текстовые значения save text values
if (!empty($_POST['options'][1])) {
foreach ($_POST['options'][1] as $key => $value) {
Yii::app()->db->createCommand()
@@ -377,7 +388,7 @@ public function save($model)
throw $e;
}
- // Обновляем счетчик изображений
+ // Обновляем счетчик изображений update the image counter
$img_count = Yii::app()->db->createCommand()->select('COUNT(*)')->from('images')
->where('item_id=:item_id', array(':item_id' => $model->auction_id))->queryScalar();
Yii::app()->db->createCommand()
@@ -385,7 +396,7 @@ public function save($model)
//save
- Yii::app()->user->setFlash('success', 'Лот успешно сохранен');
+ Yii::app()->user->setFlash('success', 'Listing Succesfully Saved');
if ($_POST['submit'] == 'index') {
$this->redirect(array('/catalog/auction/index'));
} else {
@@ -396,7 +407,8 @@ public function save($model)
}
/**
- * возвращает подкатегории выбраной категории для select
+ * возвращает подкатегории выбраной категории для select
+ * this returns you up a level
* @param type $cat_id
*/
public function actionDynamicCategoriesForSelect($cat_id, $where_show = 0)
@@ -406,7 +418,7 @@ public function actionDynamicCategoriesForSelect($cat_id, $where_show = 0)
if (count($categories) > 0) {
$htmlOptions = array(
- 'empty' => '- выберите категорию -'
+ 'empty' => '- Select Category -'
);
RAjax::data(
array(
@@ -456,9 +468,9 @@ public function actionDelete($id)
{
$deleted = $this->loadModel('Auction', $id)->delete();
if ($deleted == 0) {
- RAjax::error(array('messages' => 'Ошыбка при удалении'));
+ RAjax::error(array('messages' => 'Error While Deleting'));
} else {
- RAjax::success(array('messages' => 'Лот успешно удален'));
+ RAjax::success(array('messages' => 'Succesfully Deleted Listing'));
}
}
@@ -470,9 +482,9 @@ public function actionMultipleRemove()
public function actionRemoveBid($id)
{
if (Bid::remove($id)) {
- RAjax::success(array('messages' => 'Успешно удалено'));
+ RAjax::success(array('messages' => 'Succesfully Deleted'));
} else {
- RAjax::error(array('messages' => 'Ошыбка при удалении'));
+ RAjax::error(array('messages' => 'Error While Deleting'));
}
}
diff --git a/backend/modules/catalog/controllers/CategoryController.php b/backend/modules/catalog/controllers/CategoryController.php
index 8c7a6e0..68ef56b 100644
--- a/backend/modules/catalog/controllers/CategoryController.php
+++ b/backend/modules/catalog/controllers/CategoryController.php
@@ -27,6 +27,15 @@
* along with MolotokSoftware. If not, see
.
*/
+ /*
+ *Некорректный запрос Invalid Request
+ *Категория успешно сохранена Category Succesfully Saved
+ *Категория успешно создана Category Succesfully Created
+ *Ошыбка при удалении Error While Deleting
+ *Категория успешно удалена Category Succesfully Deleted
+ *Выбрание элементы успешно удалены Selected Elements Succesfully Deleted
+ *
+ */
class CategoryController extends BackController
{
@@ -84,9 +93,9 @@ public function behaviors()
public function actionToggle($id, $attribute)
{
if (!Yii::app()->request->isPostRequest)
- throw new CHttpException(400, 'Некорректный запрос');
+ throw new CHttpException(400, 'Invalid Request');
if (!in_array($attribute, array('type')))
- throw new CHttpException(400, 'Некорректный запрос');
+ throw new CHttpException(400, 'Invalid Request');
$model = $this->_loadModel($id);
$model->$attribute = $model->$attribute ? 0 : 1;
@@ -162,7 +171,7 @@ public function actionUpdate($id)
}
}
- Yii::app()->user->setFlash('success', 'Категория успешно сохранена');
+ Yii::app()->user->setFlash('success', 'Category Succesfully Saved');
$this->redirect(array('/catalog/category/index'));
} else {
die("Erorr save");
@@ -196,7 +205,7 @@ public function actionCreate()
}
}
- Yii::app()->user->setFlash('success', 'Категория успешно создана');
+ Yii::app()->user->setFlash('success', 'Category Succesfully Created');
if ($_POST['submit'] == 'index') {
$this->redirect(array('/catalog/category/index'));
} else {
@@ -214,9 +223,9 @@ public function actionDelete($id)
{
$deleted = $this->loadModel('Category', $id)->deleteNode();
if ($deleted == 0) {
- RAjax::error(array('messages' => 'Ошыбка при удалении'));
+ RAjax::error(array('messages' => 'Error While Deleting'));
} else {
- RAjax::success(array('messages' => 'Категория успешно удалена'));
+ RAjax::success(array('messages' => 'Category Succesfully Deleted'));
}
}
@@ -238,7 +247,7 @@ public function actionMultipleRemove()
RAjax::error(array('messages' => 'Error'));
}
}
- RAjax::success(array('messages' => "Выбрание элементы успешно удалены"));
+ RAjax::success(array('messages' => "Selected Elements Succesfully Deleted"));
}
}
diff --git a/backend/modules/catalog/views/attribute/_table_attributes.php b/backend/modules/catalog/views/attribute/_table_attributes.php
index 2fab506..ff2dc78 100644
--- a/backend/modules/catalog/views/attribute/_table_attributes.php
+++ b/backend/modules/catalog/views/attribute/_table_attributes.php
@@ -26,6 +26,15 @@
* along with MolotokSoftware. If not, see
.
*/
+ /*
+ *Удалить выбранные Delete Selected
+ *Вы действительно хотите удалить выбранные элементы Do you really want to delete the selected elements?
+ * Атрибуты Attributes
+ *Вы действительно хотите удалить выбранные вами страницы Do you really want to delete the selected pages?
+ *Показывает что атрибут обязателен для заполнения Make this attribute required
+ *Показывает что атрибут отображается на странице аукционов Indicates this attribute is shown on the listing page
+ *Показывает что атрибут будет отображаться в фильтре Indicates that the attribute will display in the filter
+ */
$csrfTokenName = Yii::app()->request->csrfTokenName;
@@ -74,7 +83,7 @@ function multiDelete(values){
'dataProvider' => $model->search(),
'filter' => $model,
'ajaxUrl' => array('/catalog/attribute/index'),
- 'summaryText' => 'Атрибуты {start}—{end} из
{count} .',
+ 'summaryText' => 'Attributes {start}—{end} from
{count} .',
'bulkActions' => array(
'actionButtons' => array(
array(
@@ -82,9 +91,9 @@ function multiDelete(values){
'buttonType' => 'button',
'type' => 'danger',
'size' => 'small',
- 'label' => 'Удалить выбранные',
- 'click' => 'js:function(values){if(confirm("Вы действительно хотите удалить выбранные элементы?")){multiDelete(values);} }'
- //'click' => 'js:bootbox.confirm("
Вы действительно хотите удалить выбранные вами страницы?
",
+ 'label' => 'Delete Selected',
+ 'click' => 'js:function(values){if(confirm("Do you really want to delete the selected elements?")){multiDelete(values);} }'
+ //'click' => 'js:bootbox.confirm("
Do you really want to delete the selected pages?
",
//function(value){console.log("Confirmed: "+value);})'
),
),
@@ -105,7 +114,7 @@ function multiDelete(values){
'sortable' => false,
'header' => '
',
'headerHtmlOptions' => array(
- 'title' => 'Показывает что атрибут обязателен для заполнения'
+ 'title' => 'Make this attribute required'
),
'htmlOptions' => array(
'width' => '25px',
@@ -117,7 +126,7 @@ function multiDelete(values){
'type' => 'raw',
'value' => '$data->getDisplayPreviewAdminTable()',
'headerHtmlOptions' => array(
- 'title' => 'Показывает что атрибут отображается на странице аукционов'
+ 'title' => 'Indicates this attribute is shown on the listing page'
),
'htmlOptions' => array(
'width' => '25px',
@@ -129,7 +138,7 @@ function multiDelete(values){
'type' => 'raw',
'value' => '$data->getDisplayFilterAdminTable()',
'headerHtmlOptions' => array(
- 'title' => 'Показывает что атрибут будет отображаться в фильтре'
+ 'title' => 'Indicates that the attribute will display in the filter'
),
'htmlOptions' => array(
'width' => '25px',
diff --git a/backend/modules/catalog/views/attribute/create.php b/backend/modules/catalog/views/attribute/create.php
index 05e41dd..04ad445 100644
--- a/backend/modules/catalog/views/attribute/create.php
+++ b/backend/modules/catalog/views/attribute/create.php
@@ -26,23 +26,39 @@
* along with MolotokSoftware. If not, see
.
*/
-
-$this->pageTitle = 'Создание нового атрибута';
+ /*
+ *Создание нового атрибута Create New Attribute
+ *Каталог Catalog
+ *Атрибуты Attributes
+ *Создание атрибута Create Attribute
+ * Options (line 125)
+ *back Back
+ *Название которое отображается на сайте Listing Title
+ *Полное имя (отображения в админ. части ) Fully Name (displayed in admin site)
+ *Должно быть уникальным на всю систему (только латинские символы) This should be unique. No duplicates allowed.
+ *Значения Values
+ *Добавить Upload
+ *Удалить Delete
+ *Создать submit (line 254)
+ *save и выйти save and exit
+ */
+
+$this->pageTitle = 'Create New Attribute';
$this->breadcrumbs = array(
array(
'icon' => 'icon-folder-open',
- 'label' => 'Каталог',
+ 'label' => 'Catalog',
'url' => array('/catalog/category/index'),
),
array(
'icon' => 'icon-list-alt',
- 'label' => 'Атрибуты',
+ 'label' => 'Attributes',
'url' => array('/catalog/attribute/index'),
),
array(
'icon' => 'icon-plus',
- 'label' => 'Создание атрибута',
+ 'label' => 'Create Attribute',
'url' => '',
),
);
@@ -109,12 +125,12 @@