Skip to content

Commit

Permalink
clear code, fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akiraz2 committed Sep 25, 2018
1 parent 6c05b87 commit e8efcfd
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 17 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ All installation instructions are located in documentation / [Installation](docs

## TODO

* write documentation
* refactoring Mongodb
* add more languages
* more console commands
* rest controllers for api app
* view theme (blue, red, green, gray, dark, etc)
* improve from simple to powerful
* RBAC integration (role support manager)
* tests

## Support

Expand Down
2 changes: 1 addition & 1 deletion components/BackendFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* {
* return [
* 'backend' => [
* 'class' => common\components\BackendFilter::class,
* 'class' => akiraz2\support\components\BackendFilter::class,
* 'actions' => [
* 'index',
* 'view',
Expand Down
2 changes: 1 addition & 1 deletion console/MigrateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/**
* Class MigrateController
* @package akiraz2\contact\console
*
*/
class MigrateController extends \yii\console\Controller
{
Expand Down
1 change: 1 addition & 0 deletions console/README
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NOT MINE, - from previous developers

if(class_exists('yii\mongodb\console\controllers\MigrateController')){
$map=[
Expand Down
12 changes: 11 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Getting Started

- [Installation](getting-started.md)
- Configuration - not ready
- [Console commands](console.md)

## Overriding
Expand All @@ -13,6 +14,15 @@

- [Mailer](mailer.md)

## Translations

Please translate to your language! Edit config (or copy to your path) `@vendor/akiraz2/yii2-blog/src/messages/config.php`, add your language and run script:
```php
php ./yii message/extract @vendor/akiraz2/yii2-ticket-support/messages/config.php
```
translate file will be in `@vendor/akiraz2/yii2-ticket-support/messages/` or your configured path


## RBAC

- Not yet
- Not ready
5 changes: 2 additions & 3 deletions docs/mailer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ Mailer can be configured as followed:

```php
...
'user' => [
'support' => [
'class' => 'akiraz2\support\Module',
'mailer' => [
'sender' => 'no-reply@myhost.com', // or ['no-reply@myhost.com' => 'Sender name']

'sender' => 'support@myhost.com', // or ['support@myhost.com' => 'Technical Support']
],
...
```
19 changes: 8 additions & 11 deletions messages/ru-RU/support.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?php
/**
* @author akiraz@bk.ru
* @link https://github.com/akiraz2/yii2-ticket-support
* @copyright 2018 akiraz2
* @license MIT
*/

/**
* Message translations.
*
Expand All @@ -24,14 +17,17 @@
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
'Are you sure you want to delete this item?' => 'Вы уверены, что хотите удалить?',
'[{APP} Ticket #{ID}] Re: {TITLE}' => '[{APP} Ticket #{ID}] Re: {TITLE}',
'{APP}: Ticket #{ID} updated' => '{APP}: Ticket #{ID} обновился',
'Email' => 'Email',
'Site' => 'Сайт',
'Telegram' => 'Telegram',
'Tickets closed: oun' => '',
'STATUS_ACTIVE' => '@@СТАТУС АКТИВ@@',
'STATUS_DELETED' => '@@СТАТУС УДАЛЕНО@@',
'STATUS_INACTIVE' => '@@СТАТУС НЕАКТИВ@@',
'You\'ve received a ticket' => '@@Вы получили тикет@@',
'Active' => 'Активный',
'Add Category' => 'Добавить категорию',
'Are you sure you want to delete this item?' => 'Вы уверены, что хотите удалить?',
'Categories' => 'Категории',
'Category' => 'Категория',
'Category: {NAME}' => 'Категория: {NAME}',
Expand Down Expand Up @@ -69,8 +65,9 @@
'View Ticket' => 'Просмотреть тикет',
'View Ticket: {URL}' => 'Просмотреть тикет: {URL}',
'Waiting' => 'Ожидание',
'You\'ve received a ticket' => 'Вы получили тикет',
'You\'ve received a ticket (#{ID}) from {APP}' => 'Вы получили тикет (#{ID}) от {APP}',
'[{APP} Ticket #{ID}] Re: {TITLE}' => '[{APP} Ticket #{ID}] Re: {TITLE}',
'{APP}: Ticket #{ID} updated' => '{APP}: Ticket #{ID} обновился',
'{USER} ({EMAIL}) have opened a ticket with the following message:' => '{USER} ({EMAIL}) открыл тикет с таким сообщением:',
'{USER} closed the ticket.' => '{USER} закрыл тикет.',
];

0 comments on commit e8efcfd

Please sign in to comment.