Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Molotok - php auction script

Open source php/mysql fully featured auction script. Perfect for those who want to start their own auction site. The version we offer is meant for up to 20,000 users per day and can store up to 10,000,000 items.

# Installation
# Installation (also reference the Russian directions as they point out some important information) http://molotoksoftware.com/ru/documentation/part/main

### Step 1. File copying and permissions setting
Download the file archive on this page and un-zip it to the root directory of the site, another way is to fork a repository from the Github by executing the following command:
Expand Down Expand Up @@ -93,4 +93,4 @@ Documentation
----
http://molotoksoftware.com/en/documentation/part/main

[![Yii](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](http://www.yiiframework.com/)
[![Yii](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](http://www.yiiframework.com/)
2 changes: 1 addition & 1 deletion backend/config/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'backend.components.notification.Notification'
),
'sourceLanguage' => 'en',
'language' => 'ru',
'language' => 'en',
'preload' => array('bootstrap'),
'behaviors' => array(),
'controllerMap' => array(),
Expand Down
8 changes: 4 additions & 4 deletions backend/config/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@

return array(
array('label' => 'Главная', 'url' => array('/main/index'), 'icon' => 'icon-home icon-2x'),
array('label' => 'Администраторы', 'url' => array('/admin/admin/index'), 'icon' => 'icon-group icon-2x'),
array('label' => 'Пользователи',
array('label' => 'Administrators', 'url' => array('/admin/admin/index'), 'icon' => 'icon-group icon-2x'),
array('label' => 'Members',
'url' => array('#user'),
'icon' => 'icon-user icon-2x',
'submenuOptions' => array('class' => 'collapse', 'id' => 'user'),
'items' => [
[
'label' => 'Пользователи',
'label' => 'Members',
'url' => array('/user/user/index'),
'icon' => 'icon-user',
],
Expand Down Expand Up @@ -76,7 +76,7 @@
'submenuOptions' => array('class' => 'collapse', 'id' => 'monetary_transactions'),
'items' => array(
array(
'label' => 'История пополнений',
'label' => 'Account Balances',
'url' => array('/money/history/recharge'),
'icon' => 'icon-credit-card',
),
Expand Down
2 changes: 1 addition & 1 deletion backend/extensions/bootstrap/assets/js/ckeditor/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.language = 'en';
// config.uiColor = '#AADC6E';
config.skin = 'moono-light';
};
Expand Down
2 changes: 1 addition & 1 deletion backend/extensions/bootstrap/assets/js/ckeditor/lang/ru.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* English translation for bootstrap-datepicker
* James Fowler <[email protected]>
*/
;(function($){
$.fn.datepicker.dates['en'] = {
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
daysShort: ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat", "Sun"],
daysMin: ["Su", "Mo", "Tu", "Wd", "Th", "Fr", "Sa", "Su"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
today: "today"
};
}(jQuery));
69 changes: 69 additions & 0 deletions backend/extensions/bootstrap/assets/js/locales/redactor/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
var RELANG = {};
RELANG['en'] = {
html: 'HTML',
video: 'Video',
image: 'image',
table: 'table',
link: 'link',
link_insert: 'Insert link ...',
unlink: 'unlink',
formatting: 'Formatting',
paragraph: 'Paragraph',
quote: 'Quotation Marks',
code: 'Code',
header1: 'header 1',
header2: 'header 2',
header3: 'header 3',
header4: 'header 4',
bold: 'Bold',
italic: 'Italic',
fontcolor: 'Font Color',
backcolor: 'Background Color',
unorderedlist: 'Unordered List',
orderedlist: 'Ordered List',
outdent: 'Remove Indentation',
indent: 'Indent',
cancel: 'Cancel',
insert: 'Insert',
save: 'Save',
_delete: 'Delete',
insert_table: 'Insert Table',
insert_row_above: 'Insert Line Above',
insert_row_below: 'Insert Line Below',
insert_column_left: 'Insert Column on the Left',
insert_column_right: 'Insert column on the Right',
delete_column: 'Delete Column',
delete_row: 'Delete Line',
delete_table: 'Delete Table',
rows: 'Lines',
columns: 'Columns',
add_head: 'Insert Header',
delete_head: 'Delete Header',
title: 'Title',
image_position: 'Position',
none: 'None',
left: 'Left',
right: 'Right',
image_web_link: 'Link to web image',
text: 'Text',
mailto: 'Email',
web: 'URL',
video_html_code: 'Embedded Video Code',
file: 'File',
upload: 'Upload',
download: 'Download',
choose: 'Select',
or_choose: 'or Select',
drop_file_here: 'Drop File Here',
align_left: 'Align on the Left',
align_center: 'Center Alignment',
align_right: 'Align on the Right',
align_justify: 'Justify',
horizontalrule: 'Horizontal Rule',
fullscreen: 'Full Screen',
deleted: 'Deleted',
anchor: 'Anchor',
link_new_tab: 'Open link in new tab',
underline: 'Underline',
alignment: 'Alignment'
};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RELANG['ru'] = {
indent: 'Увеличить отступ',
cancel: 'Отменить',
insert: 'Вставить',
save: 'Сохранить',
save: 'save',
_delete: 'Удалить',
insert_table: 'Вставить таблицу',
insert_row_above: 'Добавить строку сверху',
Expand Down
2 changes: 1 addition & 1 deletion backend/extensions/imperaviRedactor/assets/lang/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $.Redactor.opts.langs['ru'] = {
indent: 'Увеличить отступ',
cancel: 'Отменить',
insert: 'Вставить',
save: 'Сохранить',
save: 'save',
_delete: 'Удалить',
insert_table: 'Вставить таблицу',
insert_row_above: 'Добавить строку сверху',
Expand Down
4 changes: 2 additions & 2 deletions backend/extensions/imperaviRedactor/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $this->widget('ImperaviRedactorWidget', array(

// Some options, see http://imperavi.com/redactor/docs/
'options' => array(
'lang' => 'ru',
'lang' => 'en',
'toolbar' => false,
'iframe' => true,
'css' => 'wym.css',
Expand All @@ -54,7 +54,7 @@ The redactor plugins plugged in with packages of resources.
$this->widget('ImperaviRedactorWidget', array(
'selector' => '.redactor',
'options' => array(
'lang' => 'ru',
'lang' => 'en',
),
'plugins' => array(
'fullscreen' => array(
Expand Down
4 changes: 2 additions & 2 deletions backend/extensions/imperaviRedactor/readme_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $this->widget('ImperaviRedactorWidget', array(

// Немного опций, см. http://imperavi.com/redactor/docs/
'options' => array(
'lang' => 'ru',
'lang' => 'en',
'toolbar' => false,
'iframe' => true,
'css' => 'wym.css',
Expand All @@ -55,7 +55,7 @@ $this->widget('ImperaviRedactorWidget', array(
$this->widget('ImperaviRedactorWidget', array(
'selector' => '.redactor',
'options' => array(
'lang' => 'ru',
'lang' => 'en',
),
'plugins' => array(
'fullscreen' => array(
Expand Down
2 changes: 1 addition & 1 deletion backend/extensions/redactor/RedactorWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct()
{
parent::__construct();
$this->options = array(
'lang' => 'ru',
'lang' => 'en',
'imageUpload' => Yii::app()->createAbsoluteUrl('/redactor/imageUpload'),
'imageGetJson' => Yii::app()->createAbsoluteUrl('/redactor/uploadedImages')
);
Expand Down
34 changes: 34 additions & 0 deletions backend/messages/en/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

/**
*
* @author Ivan Teleshun <[email protected]>
* @link http://www.molotoksoftware.com/
* @copyright 2016 MolotokSoftware
* @license GNU General Public License, version 3
*/

/**
*
* This file is part of MolotokSoftware.
*
* MolotokSoftware is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MolotokSoftware is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with MolotokSoftware. If not, see <http://www.gnu.org/licenses/>.
*/


return array(
'day|days' => 'day|days|days',
'{n} day|{n} days' => '{n} д'{n} day|{n} days',
'{n} money|{n} moneys' => '{n} dollar|{n} dollars|{n} dollars',
);
46 changes: 46 additions & 0 deletions backend/messages/en/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

/**
*
* @author Ivan Teleshun <[email protected]>
* @link http://www.molotoksoftware.com/
* @copyright 2016 MolotokSoftware
* @license GNU General Public License, version 3
*/

/**
*
* This file is part of MolotokSoftware.
*
* MolotokSoftware is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MolotokSoftware is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with MolotokSoftware. If not, see <http://www.gnu.org/licenses/>.
*/



return [
'RUB' => '$',
'reply' => 'reply',
'Reply' => 'Reply',
'authorization' => 'authorization',
'return to the site' => 'return to the site',

'Localization' => 'Localization',
'PRO settings' => 'PRO Settings',
'Main settings' => 'Main Settings',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
];
8 changes: 8 additions & 0 deletions backend/messages/en/money.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

return [
'Commission' => 'Comission',
'Discharge' => 'Discharge',
'Recharge' => 'Recharge',
'Return' => 'Return',
];
4 changes: 2 additions & 2 deletions backend/messages/ru/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
'reply' => 'назад',
'Reply' => 'Назад',
'authorization' => 'Авторизация',
'return to the site' => 'Вернуться на сайт',
'return to the site' => 'back на сайт',

'Localization' => 'Локализация',
'PRO settings' => 'Настройки ПРО',
'Main settings' => 'Основные настройки',
'Main settings' => 'Basic Settings',
'' => '',
'' => '',
'' => '',
Expand Down
18 changes: 13 additions & 5 deletions backend/modules/admin/config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,45 @@
* You should have received a copy of the GNU General Public License
* along with MolotokSoftware. If not, see <http://www.gnu.org/licenses/>.
*/

/* Russian to English
* создания пользователя create user
* обновления пользователя update user
* просмотреть список пользователей view user list
* удалить пользователя delete user
* Управления пользователями manage users
*/


return array(
'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' => 'return !(Yii::app()->user->id==$params["user_id"]);',
'data' => null,
),

'managesUser' => array(
'type' => CAuthItem::TYPE_TASK,
'description' => 'Управления пользователями',
'description' => 'manage users',
'children' => array(
'listUser',
'deleteUser',
Expand Down
Loading