Add lang key

This commit is contained in:
Dan 2025-02-15 10:28:38 +07:00
commit 0eeeec058c
33 changed files with 186 additions and 19 deletions

View file

@ -189,7 +189,7 @@ Please install and enable the INTL extension to format the date format to your l
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Fulltext search</label>
<label class="col-sm-2 col-form-label"><?php echo i18n('fulltext_search');?></label>
<div class="col-sm-10">
<div class="col-sm-10">
<div class="form-check">

View file

@ -202,7 +202,7 @@ if (isset($author[0])) {
<li class="nav-item">
<a href="<?php echo site_url();?>admin/search" class="nav-link">
<p>
<?php echo i18n('Search');?> Index
<?php echo i18n('search_index');?>
</p>
</a>
</li>

View file

@ -51,7 +51,7 @@ echo '<script language="javascript">
document.getElementById("information").innerHTML="Process completed";
</script>';
echo '<a href="' . site_url() .'admin/search">Back to search index</a>';
echo '<a href="' . site_url() .'admin/search">'. i18n('back_to') . ' ' . i18n('search_index') .'</a>';
// Redir
echo '<script language="javascript">window.location.href = "' .site_url() . 'admin/search"</script>';

View file

@ -3,8 +3,8 @@
<br>
<?php $search_index = array(); if (!empty($posts)) { ?>
<form method="POST" action="<?php echo site_url();?>admin/search/reindex">
<p>The following are posts on the website that have not yet been included in the website search index.</p>
<input type="submit" class="btn btn-primary" value="Add below posts to Index">
<p><?php echo i18n('unindexed_posts');?></p>
<input type="submit" class="btn btn-primary" value="<?php echo i18n('add_search_index');?>">
<br><br>
<table class="table post-list">
<thead>
@ -32,7 +32,7 @@
<?php endforeach; ?>
</tbody>
</table>
<input type="submit" class="btn btn-primary" value="Add above posts to Index">
<input type="submit" class="btn btn-primary" value="<?php echo i18n('add_search_index');?>">
<br><br>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<br>
@ -74,6 +74,6 @@ $(function() {
});
</script>
<p><?php echo count(get_blog_posts()); ?> published posts has been indexed!</p>
<p><button class="btn btn-primary" id="clearButton">Clear Search Index</button></p>
<p><?php echo count(get_blog_posts()); ?> <?php echo i18n('indexed_posts');?></p>
<p><button class="btn btn-primary" id="clearButton"><?php echo i18n('clear_search_index');?></button></p>
<?php } ?>