Skip to content

Commit 32cd215

Browse files
committed
Fixes after refactoring.
1 parent f647841 commit 32cd215

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

_admin/templates/article/view-favorite.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
if ($value === 'TRUE') {
2+
if ($row['column_favorite']) {
33
echo '<i class="icon icon-favorite-active"></i>';
44
} else {
55
echo '<i class="icon icon-favorite-disabled"></i>';

_extensions/s2_blog/Controller/BlogController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function handle(Request $request): Response
5353
->putInPlaceholder('class', 's2_blog')
5454
->putInPlaceholder('rss_link', [sprintf(
5555
'<link rel="alternate" type="application/rss+xml" title="%s" href="%s" />',
56-
s2_htmlencode($this->translator->trans('RSS link title')),
56+
s2_htmlencode($this->translator->trans('RSS blog link title')),
5757
$this->blogUrlBuilder->main() . 'rss.xml'
5858
)])
5959
;

_extensions/s2_blog/Controller/BlogRss.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ protected function link(): string
7373

7474
protected function description(): string
7575
{
76-
return sprintf($this->translator->trans('RSS description'), $this->blogTitle);
76+
return sprintf($this->translator->trans('RSS blog description'), $this->blogTitle);
7777
}
7878
}

_extensions/s2_blog/Extension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function registerListeners(EventDispatcherInterface $eventDispatcher, Con
316316
$recentComments = $placeholderProvider->getRecentComments();
317317

318318
$template->registerPlaceholder('<!-- s2_blog_last_comments -->', empty($recentComments) ? '' : $viewer->render('menu_comments', [
319-
'title' => $translator->trans('Last comments'),
319+
'title' => $translator->trans('Last blog comments'),
320320
'menu' => $recentComments,
321321
]));
322322
}
@@ -327,7 +327,7 @@ public function registerListeners(EventDispatcherInterface $eventDispatcher, Con
327327
$lastDiscussions = $placeholderProvider->getRecentDiscussions();
328328

329329
$template->registerPlaceholder('<!-- s2_blog_last_discussions -->', empty($lastDiscussions) ? '' : $viewer->render('menu_block', [
330-
'title' => $translator->trans('Last discussions'),
330+
'title' => $translator->trans('Last blog discussions'),
331331
'menu' => $lastDiscussions,
332332
'class' => 's2_blog_last_discussions',
333333
]));

_extensions/s2_blog/lang/English.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
return array(
3+
return [
44

55
'N Comments' => '{{ count }} comment|{{ count }} comments',
66
'Post comment' => 'Leave a comment',
77

8-
'Favorite posts' => 'Favorite posts',
9-
'See also' => 'See also:',
10-
'Last comments' => 'Last blog comments',
11-
'Last discussions' => 'Last blog discussions',
12-
'Articles by tag' => 'Related articles:',
13-
'Year' => '%s year',
8+
'Favorite posts' => 'Favorite posts',
9+
'See also' => 'See also:',
10+
'Last blog comments' => 'Last blog comments',
11+
'Last blog discussions' => 'Last blog discussions',
12+
'Articles by tag' => 'Related articles:',
13+
'Year' => '%s year',
1414

1515
'Navigation' => 'Posts',
1616
'Nav last' => 'Last %d',
@@ -66,12 +66,12 @@
6666
'Blog posts now' => 'Blog posts: %s',
6767
'Blog comments now' => 'Blog comments: %s',
6868

69-
'Not found' => 'No posts',
69+
'Not found' => 'No posts',
7070

7171
// RSS
72-
'RSS description' => '%s. Last posts.',
73-
'RSS link title' => 'Last blog posts',
72+
'RSS blog description' => '%s. Last posts.',
73+
'RSS blog link title' => 'Last blog posts',
7474

7575
'Found blog tags' => 'Similar blog tags: %s',
7676
'Found blog tags short' => '; blog tags: %s',
77-
);
77+
];

_extensions/s2_blog/lang/Russian.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
return array(
3+
return [
44

55
'N Comments' => '{{ count }} комментарий|{{ count }} комментария|{{ count }} комментариев',
66
'Post comment' => 'Оставить комментарий',
77

8-
'Favorite posts' => 'Избранные записи',
9-
'See also' => 'Смотрите также:',
10-
'Last comments' => 'Последние комментарии в блоге',
11-
'Last discussions' => 'Обсуждаемое в блоге',
12-
'Articles by tag' => 'Статьи по этой теме:',
13-
'Year' => '%s год',
8+
'Favorite posts' => 'Избранные записи',
9+
'See also' => 'Смотрите также:',
10+
'Last blog comments' => 'Последние комментарии в блоге',
11+
'Last blog discussions' => 'Обсуждаемое в блоге',
12+
'Articles by tag' => 'Статьи по этой теме:',
13+
'Year' => '%s год',
1414

1515
'Navigation' => 'Записи',
1616
'Nav last' => 'Последние %d',
@@ -66,12 +66,12 @@
6666
'Blog posts now' => 'Записей в блоге: %s',
6767
'Blog comments now' => 'Комментариев в блоге: %s',
6868

69-
'Not found' => 'Нет записей',
69+
'Not found' => 'Нет записей',
7070

7171
// RSS
72-
'RSS description' => '%s. Последние заметки.',
73-
'RSS link title' => 'Последние заметки в блоге',
72+
'RSS blog description' => '%s. Последние заметки.',
73+
'RSS blog link title' => 'Последние заметки в блоге',
7474

7575
'Found blog tags' => 'Похожие ключевые слова в блоге: %s',
7676
'Found blog tags short' => '; в блоге: %s',
77-
);
77+
];

_extensions/s2_search/Admin/TranslationProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getTranslations(string $language, string $locale): array
1919
'ru' => [
2020
'Search config' => 'Поиск',
2121
'S2_SEARCH_QUICK' => 'Быстрый поиск',
22-
'S2_SEARCH_QUICK_help' => 'Показывать подсказки на основе поиска по заголовкам во время набора.',
22+
'S2_SEARCH_QUICK_help' => 'По мере набора поискового запроса показывать подсказки с совпадающими заголовками.',
2323
'Search index' => 'Поисковый индекс',
2424
'Reindex' => 'Проиндексировать заново',
2525
'Reindex title' => 'Долгая операция. Если соединение с сервером прервется, можно запустить повторно.',
@@ -28,7 +28,7 @@ public function getTranslations(string $language, string $locale): array
2828
'en' => [
2929
'Search config' => 'Search',
3030
'S2_SEARCH_QUICK' => 'Quick search',
31-
'S2_SEARCH_QUICK_help' => 'Show suggestions based on the search over titles while typing.',
31+
'S2_SEARCH_QUICK_help' => 'Show suggestions based on the search over titles while typing a search query.',
3232
'Search index' => 'Search index',
3333
'Reindex' => 'Reindex',
3434
'Reindex title' => 'May be time-consuming. You can run it again in case of connection loss.',

0 commit comments

Comments
 (0)