mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 04:26:22 +05:30
Translate important strings
This commit is contained in:
parent
f87a0c81dc
commit
3291161f51
22 changed files with 273 additions and 36 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -274,3 +274,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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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' => '<ul>' . $log . '</ul>',
|
||||
'type' => 'is_login',
|
||||
'is_login' => true,
|
||||
'bodyclass' => 'in-login',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Login'
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . 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' => '<ul>' . $message['error'] . '</ul>',
|
||||
'username' => $user,
|
||||
|
|
@ -181,7 +181,7 @@ post('/login', function () {
|
|||
'type' => 'is_login',
|
||||
'is_login' => true,
|
||||
'bodyclass' => 'in-login',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Login'
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . 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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Profile for: ' . $author->name,
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . 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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Profile for: ' . $author->name,
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . 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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Edit profile',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » '. 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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Posts tagged: ' . tag_i18n($tag),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . 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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Archive for: ' . $timestamp,
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . 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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Search results for: ' . tag_i18n($keyword),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Search_results_for') . ' ' . tag_i18n($keyword),
|
||||
'pagination' => has_pagination($total, $perpage, $page),
|
||||
'is_search' => true,
|
||||
), $layout);
|
||||
|
|
|
|||
|
|
@ -948,6 +948,8 @@ function get_static_post($static)
|
|||
|
||||
$post->file = $v;
|
||||
|
||||
$post->md = str_replace('.md', '', $url);
|
||||
|
||||
// Get the contents and convert it to HTML
|
||||
$content = file_get_contents($v);
|
||||
|
||||
|
|
@ -997,6 +999,10 @@ function get_static_sub_post($static, $sub_static)
|
|||
|
||||
$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 '<li><a href="' . $post->url . '">' . $post->title . '</a></li>';
|
||||
}
|
||||
if (empty($posts)) {
|
||||
echo '<li>No recent posts found</li>';
|
||||
echo '<li>' . i18n('No_posts_found') . '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
|
|
@ -1747,11 +1753,11 @@ function get_pagination($totalitems, $page = 1, $perpage = 10, $adjacents = 1, $
|
|||
{
|
||||
$pagination .= '<ul class="pagination">';
|
||||
|
||||
//previous button
|
||||
//newer button
|
||||
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
|
||||
$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
|
||||
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)
|
||||
$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
|
||||
$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>';
|
||||
}
|
||||
|
||||
|
|
@ -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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » 404 Not Found',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('This_page_doesnt_exist'),
|
||||
'bodyclass' => 'error-404',
|
||||
'is_404' => true,
|
||||
), $layout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue