Browse Source

Translate important strings

pull/642/head
danpros 2 years ago
parent
commit
3291161f51
22 changed files with 273 additions and 36 deletions
  1. +12
    -0
      lang/ar_AR.ini
  2. +12
    -0
      lang/de_DE.ini
  3. +12
    -0
      lang/el_GR.ini
  4. +4
    -1
      lang/en_US.ini
  5. +13
    -1
      lang/es_ES.ini
  6. +12
    -0
      lang/fa_IR.ini
  7. +12
    -0
      lang/fr_FR.ini
  8. +12
    -0
      lang/hu_HU.ini
  9. +12
    -0
      lang/id_ID.ini
  10. +12
    -0
      lang/it_IT.ini
  11. +12
    -0
      lang/ko_KO.ini
  12. +12
    -0
      lang/ms_MY.ini
  13. +12
    -0
      lang/nl_NL.ini
  14. +12
    -0
      lang/pl_PL.ini
  15. +12
    -0
      lang/pt_BR.ini
  16. +12
    -0
      lang/ru_RU.ini
  17. +12
    -0
      lang/sv_SE.ini
  18. +12
    -0
      lang/tr_TR.ini
  19. +12
    -0
      lang/zh_CN.ini
  20. +12
    -0
      lang/zh_TW.ini
  21. +25
    -25
      system/htmly.php
  22. +15
    -9
      system/includes/functions.php

+ 12
- 0
lang/ar_AR.ini View File

@ -277,3 +277,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/de_DE.ini View File

@ -275,3 +275,15 @@ Scheduled = "Geplant"
Scheduled_posts = "Geplante Beiträge" Scheduled_posts = "Geplante Beiträge"
Scheduled_tips = "Veröffentlichen eines Beitrags mit Zeitpunkt in der Zukunft, fügt ihn bei Geplante Beiträge hinzu" 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!" 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"

+ 12
- 0
lang/el_GR.ini View File

@ -276,3 +276,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 4
- 1
lang/en_US.ini View File

@ -50,7 +50,7 @@ Popular_tags = "Popular tags"
Posted_in = "Posted in" Posted_in = "Posted in"
Posted_on = "Posted on" Posted_on = "Posted on"
Posts = "Posts" Posts = "Posts"
Prev = "Old"
Prev = "Previous"
Prev_post = "Previous Post" Prev_post = "Previous Post"
Publish = "Publish" Publish = "Publish"
Publish_draft = "Publish draft" Publish_draft = "Publish draft"
@ -275,3 +275,6 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_scheduled_posts_found = "No scheduled posts found!"
;Profile
Profile_for = "Profile for"
Profile_page_posts = "Profile page and all posts by"

+ 13
- 1
lang/es_ES.ini View File

@ -273,4 +273,16 @@ Tagcloud_widget_at_most = "TagCloud at most"
Scheduled = "Scheduled" Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/fa_IR.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/fr_FR.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/hu_HU.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/id_ID.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/it_IT.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/ko_KO.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/ms_MY.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/nl_NL.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/pl_PL.ini View File

@ -276,3 +276,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/pt_BR.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/ru_RU.ini View File

@ -276,3 +276,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/sv_SE.ini View File

@ -293,3 +293,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/tr_TR.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/zh_CN.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 12
- 0
lang/zh_TW.ini View File

@ -275,3 +275,15 @@ Scheduled = "Scheduled"
Scheduled_posts = "Scheduled posts" Scheduled_posts = "Scheduled posts"
Scheduled_tips = "Publishing a post with future date or time, it will go into 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_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"

+ 25
- 25
system/htmly.php View File

@ -144,14 +144,14 @@ post('/login', function () {
config('views.root', 'system/admin/views'); config('views.root', 'system/admin/views');
render('login', array( 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(), 'canonical' => site_url(),
'error' => '<ul>' . $log . '</ul>', 'error' => '<ul>' . $log . '</ul>',
'type' => 'is_login', 'type' => 'is_login',
'is_login' => true, 'is_login' => true,
'bodyclass' => 'in-login', 'bodyclass' => 'in-login',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Login'
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Login')
)); ));
} }
} else { } else {
@ -172,8 +172,8 @@ post('/login', function () {
config('views.root', 'system/admin/views'); config('views.root', 'system/admin/views');
render('login', array( 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(), 'canonical' => site_url(),
'error' => '<ul>' . $message['error'] . '</ul>', 'error' => '<ul>' . $message['error'] . '</ul>',
'username' => $user, 'username' => $user,
@ -181,7 +181,7 @@ post('/login', function () {
'type' => 'is_login', 'type' => 'is_login',
'is_login' => true, 'is_login' => true,
'bodyclass' => 'in-login', 'bodyclass' => 'in-login',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Login'
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Login')
)); ));
} }
}); });
@ -241,8 +241,8 @@ get('/author/:name', function ($name) {
if (empty($posts) || $page < 1) { if (empty($posts) || $page < 1) {
render($pview, array( 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, 'canonical' => site_url() . 'author/' . $name,
'page' => $page, 'page' => $page,
'posts' => null, 'posts' => null,
@ -250,7 +250,7 @@ get('/author/:name', function ($name) {
'name' => $author->name, 'name' => $author->name,
'type' => 'is_profile', 'type' => 'is_profile',
'bodyclass' => 'in-profile author-' . $name, 'bodyclass' => 'in-profile author-' . $name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Profile for: ' . $author->name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Profile_for') . ' ' . $author->name,
'pagination' => has_pagination($total, $perpage, $page), 'pagination' => has_pagination($total, $perpage, $page),
'is_profile' => true, 'is_profile' => true,
), $layout); ), $layout);
@ -258,8 +258,8 @@ get('/author/:name', function ($name) {
} }
render($pview, array( 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, 'canonical' => site_url() . 'author/' . $name,
'page' => $page, 'page' => $page,
'posts' => $posts, 'posts' => $posts,
@ -267,7 +267,7 @@ get('/author/:name', function ($name) {
'name' => $author->name, 'name' => $author->name,
'type' => 'is_profile', 'type' => 'is_profile',
'bodyclass' => 'in-profile author-' . $name, 'bodyclass' => 'in-profile author-' . $name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Profile for: ' . $author->name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Profile_for') . ' ' . $author->name,
'pagination' => has_pagination($total, $perpage, $page), 'pagination' => has_pagination($total, $perpage, $page),
'is_profile' => true, 'is_profile' => true,
), $layout); ), $layout);
@ -280,13 +280,13 @@ get('/edit/profile', function () {
config('views.root', 'system/admin/views'); config('views.root', 'system/admin/views');
render('edit-page', array( render('edit-page', array(
'title' => 'Edit profile - ' . blog_title(),
'title' => i18n('Edit_profile') . ' - ' . blog_title(),
'description' => strip_tags(blog_description()), 'description' => strip_tags(blog_description()),
'canonical' => site_url(), 'canonical' => site_url(),
'type' => 'is_profile', 'type' => 'is_profile',
'is_admin' => true, 'is_admin' => true,
'bodyclass' => 'edit-profile', 'bodyclass' => 'edit-profile',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Edit profile',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; '. i18n('Edit_profile'),
)); ));
} else { } else {
$login = site_url() . 'login'; $login = site_url() . 'login';
@ -2038,8 +2038,8 @@ get('/type/:type', function ($type) {
} }
render($pview, array( 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), 'canonical' => site_url() . 'type/' . strtolower($type),
'page' => $page, 'page' => $page,
'posts' => $posts, 'posts' => $posts,
@ -2103,14 +2103,14 @@ get('/tag/:tag', function ($tag) {
} }
render($pview, array( 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), 'canonical' => site_url() . 'tag/' . strtolower($tag),
'page' => $page, 'page' => $page,
'posts' => $posts, 'posts' => $posts,
'tag' => $ttag, 'tag' => $ttag,
'bodyclass' => 'in-tag tag-' . strtolower($tag), 'bodyclass' => 'in-tag tag-' . strtolower($tag),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Posts tagged: ' . tag_i18n($tag),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Posts_tagged') . ' ' . tag_i18n($tag),
'pagination' => has_pagination($total, $perpage, $page), 'pagination' => has_pagination($total, $perpage, $page),
'is_tag' => true, 'is_tag' => true,
), $layout); ), $layout);
@ -2178,14 +2178,14 @@ get('/archive/:req', function ($req) {
} }
render($pview, array( 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, 'canonical' => site_url() . 'archive/' . $req,
'page' => $page, 'page' => $page,
'posts' => $posts, 'posts' => $posts,
'archive' => $tarchive, 'archive' => $tarchive,
'bodyclass' => 'in-archive archive-' . strtolower($req), 'bodyclass' => 'in-archive archive-' . strtolower($req),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Archive for: ' . $timestamp,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Archive_for') . ' ' . $timestamp,
'pagination' => has_pagination($total, $perpage, $page), 'pagination' => has_pagination($total, $perpage, $page),
'is_archive' => true, 'is_archive' => true,
), $layout); ), $layout);
@ -2246,14 +2246,14 @@ get('/search/:keyword', function ($keyword) {
} }
render($pview, array( 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), 'canonical' => site_url() . 'search/' . strtolower($keyword),
'page' => $page, 'page' => $page,
'posts' => $posts, 'posts' => $posts,
'search' => $tsearch, 'search' => $tsearch,
'bodyclass' => 'in-search search-' . strtolower($keyword), 'bodyclass' => 'in-search search-' . strtolower($keyword),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Search results for: ' . tag_i18n($keyword),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Search_results_for') . ' ' . tag_i18n($keyword),
'pagination' => has_pagination($total, $perpage, $page), 'pagination' => has_pagination($total, $perpage, $page),
'is_search' => true, 'is_search' => true,
), $layout); ), $layout);


+ 15
- 9
system/includes/functions.php View File

@ -947,6 +947,8 @@ function get_static_post($static)
$post->url = site_url() . str_replace('.md', '', $url); $post->url = site_url() . str_replace('.md', '', $url);
$post->file = $v; $post->file = $v;
$post->md = str_replace('.md', '', $url);
// Get the contents and convert it to HTML // Get the contents and convert it to HTML
$content = file_get_contents($v); $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->url = site_url() . $static . "/" . str_replace('.md', '', $url);
$post->file = $v; $post->file = $v;
$post->md = str_replace('.md', '', $url);
$post->parent = $static;
// Get the contents and convert it to HTML // Get the contents and convert it to HTML
$content = file_get_contents($v); $content = file_get_contents($v);
@ -1327,7 +1333,7 @@ function recent_posts($custom = null, $count = null)
echo '<li><a href="' . $post->url . '">' . $post->title . '</a></li>'; echo '<li><a href="' . $post->url . '">' . $post->title . '</a></li>';
} }
if (empty($posts)) { if (empty($posts)) {
echo '<li>No recent posts found</li>';
echo '<li>' . i18n('No_posts_found') . '</li>';
} }
echo '</ul>'; echo '</ul>';
} }
@ -1747,11 +1753,11 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $
{ {
$pagination .= '<ul class="pagination">'; $pagination .= '<ul class="pagination">';
//previous button
//newer button
if ($page > 1) if ($page > 1)
$pagination .= '<li class="page-item"><a class="page-link" href="'. $pagestring . $prev .'">« Prev</a></li>';
$pagination .= '<li class="page-item"><a class="page-link" href="'. $pagestring . $prev .'">« '. i18n('Newer') .'</a></li>';
else else
$pagination .= '<li class="page-item disabled"><span class="page-link">« Prev</span></li>';
$pagination .= '<li class="page-item disabled"><span class="page-link">« '. i18n('Newer') . '</span></li>';
//pages //pages
if ($lastpage < 7 + ($adjacents * 2)) //not enough pages to bother breaking it up if ($lastpage < 7 + ($adjacents * 2)) //not enough pages to bother breaking it up
@ -1813,11 +1819,11 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $
} }
} }
//next button
//older button
if ($page < $counter - 1) if ($page < $counter - 1)
$pagination .= '<li class="page-item"><a class="page-link" href="'. $pagestring . $next .'">Next »</a></li>';
$pagination .= '<li class="page-item"><a class="page-link" href="'. $pagestring . $next .'">'. i18n('Older') .' »</a></li>';
else else
$pagination .= '<li class="page-item disabled"><span class="page-link">Next »</span></li>';
$pagination .= '<li class="page-item disabled"><span class="page-link">'. i18n('Older') .' »</span></li>';
$pagination .= '</ul>'; $pagination .= '</ul>';
} }
@ -2434,9 +2440,9 @@ function not_found()
header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found"); header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found");
render('404', array( render('404', array(
'title' => i18n('This_page_doesnt_exist') . ' - ' . blog_title(), 'title' => i18n('This_page_doesnt_exist') . ' - ' . blog_title(),
'description' => '404 Not Found',
'description' => i18n('This_page_doesnt_exist'),
'canonical' => site_url(), 'canonical' => site_url(),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; 404 Not Found',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('This_page_doesnt_exist'),
'bodyclass' => 'error-404', 'bodyclass' => 'error-404',
'is_404' => true, 'is_404' => true,
), $layout); ), $layout);


Loading…
Cancel
Save