Answer the question
In order to leave comments, you need to log in
How to translate two values from one string?
Hello.
Faced a problem. The creators of the template did not translate it completely. There are a few untranslated pieces left. One of them is on the main page, it looks very alien.
Here is the code from the fileheader.php
<span class="cart-count">(<?php echo sprintf( _n( '%d item', '%d items', $woocommerce->cart->cart_contents_count, 'beautyspot' ), $woocommerce->cart->cart_contents_count ); ?>)</span>
functions.php
ru_RU.po
following piece to the file:#: ../header.php:57
#: ../functions.php:616
msgid "%d item"
msgstr "товаров: %d"
#: ../header.php:57
#: ../functions.php:616
msgid "%d items"
msgstr "товаров: %d"
% item
translated, but % items
not here. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question