Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added russian lang and new label 'dashboard::dashboard.save grid' #13

Merged
merged 1 commit into from
Oct 3, 2015
Merged
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
1 change: 1 addition & 0 deletions Resources/lang/en/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'name' => 'Dashboard',
'edit grid' => 'Edit grid',
'reset grid' => 'Reset grid',
'save grid' => 'Save grid',
'add widget' => 'Add widget',
'add widget to dashboard' => 'Add widget to dashboard',
'reset not needed' => 'Dashboard didn\'t need resetting',
Expand Down
12 changes: 12 additions & 0 deletions Resources/lang/ru/dashboard.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

return [
'name' => 'Панель',
'edit grid' => 'Редактировать сетку',
'reset grid' => 'Сброс сетки',
'save grid' => 'Сохранить сетку',
'add widget' => 'Добавить виджет',
'add widget to dashboard' => 'Добавить виджет на панель',
'reset not needed' => 'Сетка не нуждается в сбросе',
'dashboard reset' => 'Сетка была сброшена',
];
4 changes: 2 additions & 2 deletions Resources/views/admin/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@
this.grid.resizable(el, true);
}.bind(this));
}, this);
jQuery('#edit-grid').data('mode', 1).text('Save Grid');
jQuery('#edit-grid').data('mode', 1).text('{{ trans('dashboard::dashboard.save grid') }}');
} else {
// disable all the grid editing
_.map(jQuery('.grid-stack > .grid-stack-item:visible'), function (el) {
this.grid.movable(el, false);
this.grid.resizable(el, false);
jQuery(el).off('dblclick');
}, this);
jQuery('#edit-grid').data('mode', 0).text('Edit Grid');
jQuery('#edit-grid').data('mode', 0).text('{{ trans('dashboard::dashboard.edit grid') }}');
// run the save mech
this.save_grid();
}
Expand Down