Skip to content

Commit 03db1b3

Browse files
authored
Added Russian translation (#1)
1 parent 1a877bb commit 03db1b3

5 files changed

Lines changed: 34 additions & 7 deletions

File tree

formwidgets/notes/partials/_notes.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<?php if ($this->previewMode && empty($notesList)) : ?>
99
<div class="row">
1010
<div class="col-md-12">
11-
<p>No notes to display</p>
11+
<p><?= e(trans('winter.notes::lang.models.note.no_notes_to_display')) ?></p>
1212
</div>
1313
</div>
1414
<?php else: ?>
@@ -25,13 +25,13 @@
2525
<?= $this->makePartial('notes_list'); ?>
2626
</div>
2727
<div id="contentForm" class="field-notes-form">
28-
<div id="<?= $this->getId('content') ?>" class="content loading-indicator-container indicator-center">
28+
<div id="<?= $this->getId('content') ?>" class="content loading-indicator-container indicator-center">
2929
<?= count($notesList) > 0 ? $this->makePartial('note_content') : ''; ?>
3030
</div>
3131
<div class="loading-indicator-container field-notes-notification" hidden>
3232
<div class="loading-indicator size-small">
3333
<span></span>
34-
<div>Saving</div>
34+
<div><?= e(trans('winter.notes::lang.models.note.saving')) ?></div>
3535
</div>
3636
</div>
3737
</div>

formwidgets/notes/partials/_notes_list.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
>
99
<div>
1010
<h3>
11-
<?= e( $note['id'] == 0 ? 'New Note' : $note['name']) ?>
11+
<?= e( $note['id'] == 0 ? e(trans('winter.notes::lang.models.note.new_note')) : $note['name']) ?>
1212
</h3>
1313
<h4>
1414
<?= e($note['updated_at']) ?>

formwidgets/notes/partials/_notes_toolbar.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<button
33
class="btn-icon oc-icon-pencil-square-o"
44
type="button"
5-
title="Add new note"
5+
title="<?= e(trans('winter.notes::lang.models.note.add_new_note')) ?>"
66
data-note-add>
77
</button>
88
<button
99
class="btn-icon oc-icon-trash-o"
1010
type="button"
1111
data-note-remove
12-
title="Delete note"
12+
title="<?= e(trans('winter.notes::lang.models.note.delete_note')) ?>"
1313
data-request-confirm="<?= e(trans('winter.notes::lang.models.note.delete_confirm')) ?>"
1414
data-stripe-load-indicator>
1515
</button>

lang/en/lang.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
'note' => [
88
'label' => 'Note',
99
'label_plural' => 'Notes',
10-
'name' => 'Title',
10+
'name' => 'Title',
11+
'new_note' => 'New Note',
12+
'add_new_note' => 'Add new note',
13+
'delete_note' => 'Delete note',
1114
'created_at' => 'Created At',
1215
'updated_at' => 'Updated At',
1316
'deleted_at' => 'Deleted At',
1417
'delete_confirm' => 'Are you sure you want to delete the selected note?',
18+
'saving' => 'Saving',
19+
'no_notes_to_display' => 'No notes to display',
1520
],
1621
],
1722
];

lang/ru/lang.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php return [
2+
'plugin' => [
3+
'name' => 'Заметки',
4+
'description' => 'Легко добавляйте примечания к любой записи в WinterCMS',
5+
],
6+
'models' => [
7+
'note' => [
8+
'label' => 'Заметка',
9+
'label_plural' => 'Заметки',
10+
'name' => 'Заголовок',
11+
'new_note' => 'Новая заметка',
12+
'add_new_note' => 'Добавить новую заметку',
13+
'delete_note' => 'Удалить заметку',
14+
'created_at' => 'Создано',
15+
'updated_at' => 'Обновлено',
16+
'deleted_at' => 'Удалено',
17+
'delete_confirm' => 'Вы уверены, что хотите удалить выбранную заметку?',
18+
'saving' => 'Сохранение',
19+
'no_notes_to_display' => 'Нет заметок для отображения',
20+
],
21+
],
22+
];

0 commit comments

Comments
 (0)