diff --git a/lang/en_US.ini b/lang/en_US.ini index a2e8c4f..4a613e8 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -262,3 +262,9 @@ 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" +Author_Description="Just another HTMLy user" +;404-search +Search_results_not_found="Search results not found!" +No_search_results="No search results" diff --git a/lang/ru_RU.ini b/lang/ru_RU.ini index 21e8fbb..38993b4 100644 --- a/lang/ru_RU.ini +++ b/lang/ru_RU.ini @@ -263,3 +263,9 @@ Pass_Error="Введите пароль" Token_Error="Неправильный токен" Captcha_Error="reCaptcha не верна" Invalid_Error="ОШИБКА: Неверные имя пользователя или Пароль" +;Profile +Post_by_author="Авторские статьи" +Author_Description="Еще один пользователь HTMLy" +;404-search +Search_results_not_found="По вашему запросу ничего не найдено!" +No_search_results="Безрезультатно" 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 + 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, diff --git a/system/includes/functions.php b/system/includes/functions.php index c08f7cb..39c9e9a 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; } @@ -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',