Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter nezzard

    (@nezzard)

    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

    Thread Starter nezzard

    (@nezzard)

    i rename on this lines

    $a = __('post', $this->text_domain);
    		$a = __('page', $this->text_domain);
    		$a = __('attachment', $this->text_domain);

    but nothing happened

    Thread Starter nezzard

    (@nezzard)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rename post to another language’ is closed to new replies.