From 3291161f513353118c8ebe418e60747af483fb3a Mon Sep 17 00:00:00 2001 From: danpros Date: Sun, 3 Dec 2023 20:24:17 +0700 Subject: [PATCH] Translate important strings --- lang/ar_AR.ini | 12 +++++++++++ lang/de_DE.ini | 12 +++++++++++ lang/el_GR.ini | 12 +++++++++++ lang/en_US.ini | 5 ++++- lang/es_ES.ini | 14 +++++++++++- lang/fa_IR.ini | 12 +++++++++++ lang/fr_FR.ini | 12 +++++++++++ lang/hu_HU.ini | 12 +++++++++++ lang/id_ID.ini | 12 +++++++++++ lang/it_IT.ini | 12 +++++++++++ lang/ko_KO.ini | 12 +++++++++++ lang/ms_MY.ini | 12 +++++++++++ lang/nl_NL.ini | 12 +++++++++++ lang/pl_PL.ini | 12 +++++++++++ lang/pt_BR.ini | 12 +++++++++++ lang/ru_RU.ini | 12 +++++++++++ lang/sv_SE.ini | 12 +++++++++++ lang/tr_TR.ini | 12 +++++++++++ lang/zh_CN.ini | 12 +++++++++++ lang/zh_TW.ini | 12 +++++++++++ system/htmly.php | 50 +++++++++++++++++++++---------------------- system/includes/functions.php | 24 +++++++++++++-------- 22 files changed, 273 insertions(+), 36 deletions(-) diff --git a/lang/ar_AR.ini b/lang/ar_AR.ini index fc770e8..63b86fc 100644 --- a/lang/ar_AR.ini +++ b/lang/ar_AR.ini @@ -277,3 +277,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/de_DE.ini b/lang/de_DE.ini index cd544f2..349c846 100644 --- a/lang/de_DE.ini +++ b/lang/de_DE.ini @@ -275,3 +275,15 @@ Scheduled = "Geplant" Scheduled_posts = "Geplante Beiträge" Scheduled_tips = "Veröffentlichen eines Beitrags mit Zeitpunkt in der Zukunft, fügt ihn bei Geplante Beiträge hinzu" No_scheduled_posts_found = "Keine geplanten Beiträge gefunden!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/el_GR.ini b/lang/el_GR.ini index fb06d24..810f8ec 100644 --- a/lang/el_GR.ini +++ b/lang/el_GR.ini @@ -276,3 +276,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/en_US.ini b/lang/en_US.ini index 55fc54e..c7b7467 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -50,7 +50,7 @@ Popular_tags = "Popular tags" Posted_in = "Posted in" Posted_on = "Posted on" Posts = "Posts" -Prev = "Old" +Prev = "Previous" Prev_post = "Previous Post" Publish = "Publish" Publish_draft = "Publish draft" @@ -275,3 +275,6 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +Profile_page_posts = "Profile page and all posts by" diff --git a/lang/es_ES.ini b/lang/es_ES.ini index c2682a5..070d744 100644 --- a/lang/es_ES.ini +++ b/lang/es_ES.ini @@ -273,4 +273,16 @@ Tagcloud_widget_at_most = "TagCloud at most" Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" -No_scheduled_posts_found = "No scheduled posts found!" \ No newline at end of file +No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/fa_IR.ini b/lang/fa_IR.ini index c2e3314..cdf0f80 100644 --- a/lang/fa_IR.ini +++ b/lang/fa_IR.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/fr_FR.ini b/lang/fr_FR.ini index 1a73a00..c08dc21 100644 --- a/lang/fr_FR.ini +++ b/lang/fr_FR.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/hu_HU.ini b/lang/hu_HU.ini index 8d79e37..c788202 100644 --- a/lang/hu_HU.ini +++ b/lang/hu_HU.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/id_ID.ini b/lang/id_ID.ini index 8ba17cb..d354833 100644 --- a/lang/id_ID.ini +++ b/lang/id_ID.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/it_IT.ini b/lang/it_IT.ini index 4805b59..9f4bbb7 100644 --- a/lang/it_IT.ini +++ b/lang/it_IT.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/ko_KO.ini b/lang/ko_KO.ini index d634fe7..d15a17b 100644 --- a/lang/ko_KO.ini +++ b/lang/ko_KO.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/ms_MY.ini b/lang/ms_MY.ini index 50013c2..a363485 100644 --- a/lang/ms_MY.ini +++ b/lang/ms_MY.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/nl_NL.ini b/lang/nl_NL.ini index 788a357..80a5982 100644 --- a/lang/nl_NL.ini +++ b/lang/nl_NL.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/pl_PL.ini b/lang/pl_PL.ini index 6825a99..385c155 100644 --- a/lang/pl_PL.ini +++ b/lang/pl_PL.ini @@ -276,3 +276,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/pt_BR.ini b/lang/pt_BR.ini index 8ca7c1a..d60b95f 100644 --- a/lang/pt_BR.ini +++ b/lang/pt_BR.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/ru_RU.ini b/lang/ru_RU.ini index d379046..404c4a2 100644 --- a/lang/ru_RU.ini +++ b/lang/ru_RU.ini @@ -276,3 +276,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/sv_SE.ini b/lang/sv_SE.ini index 4f7d2b4..4491a73 100644 --- a/lang/sv_SE.ini +++ b/lang/sv_SE.ini @@ -293,3 +293,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/tr_TR.ini b/lang/tr_TR.ini index c8e1d5e..b09a453 100644 --- a/lang/tr_TR.ini +++ b/lang/tr_TR.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/zh_CN.ini b/lang/zh_CN.ini index 0f48483..166e25a 100644 --- a/lang/zh_CN.ini +++ b/lang/zh_CN.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/lang/zh_TW.ini b/lang/zh_TW.ini index 322f12c..3ea833d 100644 --- a/lang/zh_TW.ini +++ b/lang/zh_TW.ini @@ -275,3 +275,15 @@ Scheduled = "Scheduled" Scheduled_posts = "Scheduled posts" Scheduled_tips = "Publishing a post with future date or time, it will go into scheduled posts" No_scheduled_posts_found = "No scheduled posts found!" +;Profile +Profile_for = "Profile for" +;Tag +Posts_tagged = "Posts tagged" +All_posts_tagged = "All posts tagged" +;Archive +Archive_for = "Archive for" +Archive_page_for = "Archive page for" +;Type +Posts_with_type = "Posts with type" +;Search +Search_results_for = "Search results for" diff --git a/system/htmly.php b/system/htmly.php index 6349f9e..3951931 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -144,14 +144,14 @@ post('/login', function () { config('views.root', 'system/admin/views'); render('login', array( - 'title' => 'Login - ' . blog_title(), - 'description' => 'Login page on ' . blog_title(), + 'title' => i18n('Login') . ' - ' . blog_title(), + 'description' => i18n('Login') . ' ' . blog_title(), 'canonical' => site_url(), 'error' => '', 'type' => 'is_login', 'is_login' => true, 'bodyclass' => 'in-login', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Login' + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Login') )); } } else { @@ -172,8 +172,8 @@ post('/login', function () { config('views.root', 'system/admin/views'); render('login', array( - 'title' => 'Login - ' . blog_title(), - 'description' => 'Login page on ' . blog_title(), + 'title' => i18n('Login') . ' - ' . blog_title(), + 'description' => i18n('Login') . ' ' . blog_title(), 'canonical' => site_url(), 'error' => '', 'username' => $user, @@ -181,7 +181,7 @@ post('/login', function () { 'type' => 'is_login', 'is_login' => true, 'bodyclass' => 'in-login', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Login' + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Login') )); } }); @@ -241,8 +241,8 @@ get('/author/:name', function ($name) { if (empty($posts) || $page < 1) { render($pview, array( - 'title' => 'Profile for: ' . $author->name . ' - ' . blog_title(), - 'description' => 'Profile page and all posts by ' . $author->name . ' on ' . blog_title() . '.', + 'title' => i18n('Profile_for') . ' ' . $author->name . ' - ' . blog_title(), + 'description' => get_description($author->about), 'canonical' => site_url() . 'author/' . $name, 'page' => $page, 'posts' => null, @@ -250,7 +250,7 @@ get('/author/:name', function ($name) { 'name' => $author->name, 'type' => 'is_profile', 'bodyclass' => 'in-profile author-' . $name, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Profile for: ' . $author->name, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Profile_for') . ' ' . $author->name, 'pagination' => has_pagination($total, $perpage, $page), 'is_profile' => true, ), $layout); @@ -258,8 +258,8 @@ get('/author/:name', function ($name) { } render($pview, array( - 'title' => 'Profile for: ' . $author->name . ' - ' . blog_title(), - 'description' => 'Profile page and all posts by ' . $author->name . ' on ' . blog_title() . '.', + 'title' => i18n('Profile_for') . ' ' . $author->name . ' - ' . blog_title(), + 'description' => get_description($author->about), 'canonical' => site_url() . 'author/' . $name, 'page' => $page, 'posts' => $posts, @@ -267,7 +267,7 @@ get('/author/:name', function ($name) { 'name' => $author->name, 'type' => 'is_profile', 'bodyclass' => 'in-profile author-' . $name, - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Profile for: ' . $author->name, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Profile_for') . ' ' . $author->name, 'pagination' => has_pagination($total, $perpage, $page), 'is_profile' => true, ), $layout); @@ -280,13 +280,13 @@ get('/edit/profile', function () { config('views.root', 'system/admin/views'); render('edit-page', array( - 'title' => 'Edit profile - ' . blog_title(), + 'title' => i18n('Edit_profile') . ' - ' . blog_title(), 'description' => strip_tags(blog_description()), 'canonical' => site_url(), 'type' => 'is_profile', 'is_admin' => true, 'bodyclass' => 'edit-profile', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Edit profile', + 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. i18n('Edit_profile'), )); } else { $login = site_url() . 'login'; @@ -2038,8 +2038,8 @@ get('/type/:type', function ($type) { } render($pview, array( - 'title' => 'Posts with type: ' . ucfirst($type) . ' - ' . blog_title(), - 'description' => 'All posts with type: ' . ucfirst($type) . ' on ' . blog_title() . '.', + 'title' => i18n('Posts_with_type') . ' ' . ucfirst($type) . ' - ' . blog_title(), + 'description' => i18n('Posts_with_type') . ' ' . ucfirst($type) . ' ' . i18n('by') . ' ' . blog_title() . '.', 'canonical' => site_url() . 'type/' . strtolower($type), 'page' => $page, 'posts' => $posts, @@ -2103,14 +2103,14 @@ get('/tag/:tag', function ($tag) { } render($pview, array( - 'title' => 'Posts tagged: ' . tag_i18n($tag) . ' - ' . blog_title(), - 'description' => 'All posts tagged: ' . tag_i18n($tag) . ' on ' . blog_title() . '.', + 'title' => i18n('Posts_tagged') . ' ' . tag_i18n($tag) . ' - ' . blog_title(), + 'description' => i18n('All_posts_tagged') . ' ' . tag_i18n($tag) . ' ' . i18n('by') . ' ' . blog_title() . '.', 'canonical' => site_url() . 'tag/' . strtolower($tag), 'page' => $page, 'posts' => $posts, 'tag' => $ttag, 'bodyclass' => 'in-tag tag-' . strtolower($tag), - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Posts tagged: ' . tag_i18n($tag), + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Posts_tagged') . ' ' . tag_i18n($tag), 'pagination' => has_pagination($total, $perpage, $page), 'is_tag' => true, ), $layout); @@ -2178,14 +2178,14 @@ get('/archive/:req', function ($req) { } render($pview, array( - 'title' => 'Archive for: ' . $timestamp . ' - ' . blog_title(), - 'description' => 'Archive page for: ' . $timestamp . ' on ' . blog_title() . '.', + 'title' => i18n('Archive_for') . ' ' . $timestamp . ' - ' . blog_title(), + 'description' =>i18n('Archive_page_for') . ' ' . $timestamp . ' ' . i18n('by') . ' ' . blog_title() . '.', 'canonical' => site_url() . 'archive/' . $req, 'page' => $page, 'posts' => $posts, 'archive' => $tarchive, 'bodyclass' => 'in-archive archive-' . strtolower($req), - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Archive for: ' . $timestamp, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Archive_for') . ' ' . $timestamp, 'pagination' => has_pagination($total, $perpage, $page), 'is_archive' => true, ), $layout); @@ -2246,14 +2246,14 @@ get('/search/:keyword', function ($keyword) { } render($pview, array( - 'title' => 'Search results for: ' . tag_i18n($keyword) . ' - ' . blog_title(), - 'description' => 'Search results for: ' . tag_i18n($keyword) . ' on ' . blog_title() . '.', + 'title' => i18n('Search_results_for') . ' ' . tag_i18n($keyword) . ' - ' . blog_title(), + 'description' => i18n('Search_results_for') . ' ' . tag_i18n($keyword) . ' ' . i18n('by') . ' ' . blog_title() . '.', 'canonical' => site_url() . 'search/' . strtolower($keyword), 'page' => $page, 'posts' => $posts, 'search' => $tsearch, 'bodyclass' => 'in-search search-' . strtolower($keyword), - 'breadcrumb' => '' . config('breadcrumb.home') . ' » Search results for: ' . tag_i18n($keyword), + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Search_results_for') . ' ' . tag_i18n($keyword), 'pagination' => has_pagination($total, $perpage, $page), 'is_search' => true, ), $layout); diff --git a/system/includes/functions.php b/system/includes/functions.php index 764f536..808a070 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -947,6 +947,8 @@ function get_static_post($static) $post->url = site_url() . str_replace('.md', '', $url); $post->file = $v; + + $post->md = str_replace('.md', '', $url); // Get the contents and convert it to HTML $content = file_get_contents($v); @@ -996,6 +998,10 @@ function get_static_sub_post($static, $sub_static) $post->url = site_url() . $static . "/" . str_replace('.md', '', $url); $post->file = $v; + + $post->md = str_replace('.md', '', $url); + + $post->parent = $static; // Get the contents and convert it to HTML $content = file_get_contents($v); @@ -1327,7 +1333,7 @@ function recent_posts($custom = null, $count = null) echo '
  • ' . $post->title . '
  • '; } if (empty($posts)) { - echo '
  • No recent posts found
  • '; + echo '
  • ' . i18n('No_posts_found') . '
  • '; } echo ''; } @@ -1747,11 +1753,11 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $ { $pagination .= ''; } @@ -2434,9 +2440,9 @@ function not_found() header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found"); render('404', array( 'title' => i18n('This_page_doesnt_exist') . ' - ' . blog_title(), - 'description' => '404 Not Found', + 'description' => i18n('This_page_doesnt_exist'), 'canonical' => site_url(), - 'breadcrumb' => '' . config('breadcrumb.home') . ' » 404 Not Found', + 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('This_page_doesnt_exist'), 'bodyclass' => 'error-404', 'is_404' => true, ), $layout);