Hi,
If you want to change the POST and PAGE words to your language, please follow the steps below:
1. Open the searchinplace.clss.php file for edition
2. Search for the lines of code:
$this->javascriptVariables[‘post_title’] = __(‘Post’, $this->text_domain);
$this->javascriptVariables[‘page_title’] = __(‘Page’, $this->text_domain);
3. Translate the words: ‘Post’ and ‘Page’ to your language.
4. Save the changes
That’s all.
i have only
// Fake variables to allow the translation for Poedit application
$a = __('post', $this->text_domain);
$a = __('page', $this->text_domain);
$a = __('attachment', $this->text_domain);
} // End init
i rename on this lines
$a = __('post', $this->text_domain);
$a = __('page', $this->text_domain);
$a = __('attachment', $this->text_domain);
but nothing happened
After a while I realized that these data are derived from the database, and then wrote a small code
if ($result->post_type == 'post')
{
$result->post_type = 'Пост';
}
if ($result->post_type == 'page')
{
$result->post_type = 'Страница';
}
I do not know right or wrong, but it works