How to translate the number of items in Worpress?

0 like 0 dislike
5 views
Is there a website https://mixmobile24.ru/shop/. Under each picture there are goods quantity of goods. Need to translate "items" in Russian. Fighting the whole day. As neither can figure out how to do it. In the admin area if you go to this page all empty. Found shortcode
if ( ! is_wp_error( $terms ) && $terms ) { $category = $terms[0]; $term_id = $category->term_id; $thumbnail_id = absint, the hotel's( get_woocommerce_term_meta( $term_id, 'thumbnail_id', true ) ); $small_thumbnail_size = apply_filters( 'martfury_category_box_thumbnail_size', 'shop_catalog' ); $image_html = "; if ( $thumbnail_id ) { $image_html = martfury_get_image_html( $thumbnail_id, $small_thumbnail_size ); } $count = $category->count; $item_text = esc_html__( 'items', 'martfury' ); if ( $count <= 1 ) { $item_text = esc_html__( 'item', 'martfury' ); } $count .= '' . apply_filters( 'martfury_category_box_items_text', $item_text, $count ); $term_list[] = sprintf( '%s 

%s %s

', esc_attr( $classes ), esc_url( get_term_link( $term_id, 'product_cat' ) ), $image_html, $category->name, $count ); }

But if there is change "items" to something else or even this piece to remove or anything on the website does not change. Please help, what to do with it? SOS!
by | 5 views

1 Answer

0 like 0 dislike
You there is a translator function esc_html__ , then look for translations in translation files.
This file type xxxxx-en_us.po and xxxxx-en_us.mo they Open the program poedit. After editing be sure to generate a file with the extension .mo and replace the previous one. And I think everything will fall into place.
by
110,608 questions
257,186 answers
0 comments
33,772 users