Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
How to add translation status post on Russian language? - Q&A

How to add translation status post on Russian language?

0 like 0 dislike
Good day!
The template provides for the withdrawal of the post status of the post - Publish, Pending, Expired. Latest status custom and translated via localization file of the template, and the first 2 don't know how to translate the idea-they are standard statuses WP.
$args=array( 'post_type' => 'listing', 'post_status' => array( 'publish', 'pending', 'expired'), 'posts_per_page' => 12, 'author' => $user_id, 'paged' => $paged, );

In the cycle
$listing_status = get_post_status(get_the_ID());

Directly in the place where the statuses are displayed
<?phpif($listing_status=="pending"){$pendingArrayIds[get_the_ID()] = get_the_ID();?>
image<?php}elseif($listing_status=="publish"){$publishArrayIds[get_the_ID()] = get_the_ID();?><?php}?>

<?php echo $listing_status; ?>

asked by | 7 views

1 Answer

0 like 0 dislike
Print status via
_e($listing_status, 'textdomain-your-theme');
and translate strings.
answered by
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers


12.7k users

24,788 questions
46,220 answers
12,715 users