From 93ca1070e271fc33d22d8cdca2b4281a9fae47d4 Mon Sep 17 00:00:00 2001 From: vallyol Date: Sun, 14 Nov 2021 21:15:48 +0300 Subject: [PATCH 01/10] Update en_US.ini Add profile section --- lang/en_US.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/en_US.ini b/lang/en_US.ini index a2e8c4f..f758cb9 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -262,3 +262,5 @@ Pass_Error="Password field is required" Token_Error="CSRF Token not correct" Captcha_Error="reCaptcha not correct" Invalid_Error="ERROR: Invalid username or password" +;Profile +Post_by_author="Posts by this author" From 0f275e4c271d93ea2922ae46c9c304de8d37cca9 Mon Sep 17 00:00:00 2001 From: vallyol Date: Sun, 14 Nov 2021 21:17:25 +0300 Subject: [PATCH 02/10] Update ru_RU.ini Add profile section --- lang/ru_RU.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/ru_RU.ini b/lang/ru_RU.ini index 21e8fbb..26e6f00 100644 --- a/lang/ru_RU.ini +++ b/lang/ru_RU.ini @@ -263,3 +263,5 @@ Pass_Error="Введите пароль" Token_Error="Неправильный токен" Captcha_Error="reCaptcha не верна" Invalid_Error="ОШИБКА: Неверные имя пользователя или Пароль" +;Profile +Post_by_author="Авторские статьи" From eea9f10879427781258f1e6d825f9002558fc2cf Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 07:19:03 +0300 Subject: [PATCH 03/10] Update en_US.ini Add author description --- lang/en_US.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/en_US.ini b/lang/en_US.ini index f758cb9..cff8222 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -264,3 +264,4 @@ Captcha_Error="reCaptcha not correct" Invalid_Error="ERROR: Invalid username or password" ;Profile Post_by_author="Posts by this author" +Author_Description="Just another HTMLy user" From 51fd5d11176fece0f0aff4fccb16aed1d2914a9c Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 07:20:04 +0300 Subject: [PATCH 04/10] Update ru_RU.ini Add author description --- lang/ru_RU.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/ru_RU.ini b/lang/ru_RU.ini index 26e6f00..a989f35 100644 --- a/lang/ru_RU.ini +++ b/lang/ru_RU.ini @@ -265,3 +265,4 @@ Captcha_Error="reCaptcha не верна" Invalid_Error="ОШИБКА: Неверные имя пользователя или Пароль" ;Profile Post_by_author="Авторские статьи" +Author_Description="Еще один пользователь HTMLy" From 5727685f483b2c19af151f3a439471b85a14c0ae Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 07:23:16 +0300 Subject: [PATCH 05/10] Update functions.php Add translation for "Just another HTMLy user" --- system/includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index c08f7cb..932b4ec 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -295,7 +295,7 @@ function get_posts($posts, $page = 1, $perpage = 0) $post->authorAbout = $profile[0]->about; } else { $post->authorName = $author; - $post->authorAbout = 'Just another HTMLy user'; + $post->authorAbout = i18n('Author_Description'); } $post->type = $type; @@ -822,9 +822,9 @@ function default_profile($name) $author = new stdClass; $author->name = $name; - $author->about = '

Just another HTMLy user.

'; + $author->about = '

' . i18n('Author_Description') . '

'; - $author->description = 'Just another HTMLy user'; + $author->description = i18n('Author_Description'); return $tmp[] = $author; } From d90e7355251adf45ac769679946dcbc5466612e8 Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 07:25:12 +0300 Subject: [PATCH 06/10] Update edit-page.html.php Add translation for "Just another HTMLy user" --- system/admin/views/edit-page.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/admin/views/edit-page.html.php b/system/admin/views/edit-page.html.php index b3599d5..c990d97 100644 --- a/system/admin/views/edit-page.html.php +++ b/system/admin/views/edit-page.html.php @@ -26,7 +26,7 @@ if ($type == 'is_frontpage') { $oldcontent = remove_html_comments($content); } else { $oldtitle = $user; - $oldcontent = 'Just another HTMLy user.'; + $oldcontent = i18n('Author_Description'); } } else { @@ -162,4 +162,4 @@ if ($type == 'is_frontpage') { - \ No newline at end of file + From 18acadadcc02d0f73738de379431906f9b3c99ad Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 09:31:52 +0300 Subject: [PATCH 07/10] Update functions.php Add translation for 404-page title --- system/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 932b4ec..39c9e9a 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2304,7 +2304,7 @@ function not_found() header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found"); render('404', array( - 'title' => 'This page doesn\'t exist! - ' . blog_title(), + 'title' => i18n('This_page_doesnt_exist') . ' - ' . blog_title(), 'description' => '404 Not Found', 'canonical' => site_url(), 'breadcrumb' => '' . config('breadcrumb.home') . ' » 404 Not Found', From 6179ce9d216011ef0e106afae89eb20db44be682 Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 21:34:09 +0300 Subject: [PATCH 08/10] Update en_US.ini add 404-search result --- lang/en_US.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/en_US.ini b/lang/en_US.ini index cff8222..4a613e8 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -265,3 +265,6 @@ Invalid_Error="ERROR: Invalid username or password" ;Profile Post_by_author="Posts by this author" Author_Description="Just another HTMLy user" +;404-search +Search_results_not_found="Search results not found!" +No_search_results="No search results" From 0edbcc192b99b05ed60dbfa69af23de8dfb395a5 Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 21:35:15 +0300 Subject: [PATCH 09/10] Update ru_RU.ini Add 404-search result --- lang/ru_RU.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/ru_RU.ini b/lang/ru_RU.ini index a989f35..38993b4 100644 --- a/lang/ru_RU.ini +++ b/lang/ru_RU.ini @@ -266,3 +266,6 @@ Invalid_Error="ОШИБКА: Неверные имя пользователя и ;Profile Post_by_author="Авторские статьи" Author_Description="Еще один пользователь HTMLy" +;404-search +Search_results_not_found="По вашему запросу ничего не найдено!" +No_search_results="Безрезультатно" From 5a932d12c5c8cab2b7c5d005a7f4b27dd7680ac6 Mon Sep 17 00:00:00 2001 From: vallyol Date: Mon, 15 Nov 2021 21:39:19 +0300 Subject: [PATCH 10/10] Update htmly.php Add traslation to 404-search rendering --- system/htmly.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/htmly.php b/system/htmly.php index abfa262..0e17ab2 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -2149,10 +2149,10 @@ get('/search/:keyword', function ($keyword) { if (!$posts || $page < 1) { // a non-existing page or no search result render('404-search', array( - 'title' => 'Search results not found! - ' . blog_title(), - 'description' => 'Search results not found!', + 'title' => i18n('Search_results_not_found') . ' - ' . blog_title(), + 'description' => i18n('Search_results_not_found'), 'search' => $tsearch, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » No search results', + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('No_search_results'), 'canonical' => site_url(), 'bodyclass' => 'error-404-search', 'is_404search' => true,