How do I translate this word?

5.59K viewsGeneral
1

Yes sure, is the second word that says “answers” PS: i write in another answer for add this image ↑

1

Hello, you can translate this word in the follow folder:

wp-content\plugins\anspress-question-answer\theme\default\answers.php

you have that open file answers.php and go to the line 18 and there are something like this:

<?php echo ‘<span data-view=”answer_count”>’.ap_answer_get_the_count().'</span> ‘ .sprintf(_n(‘answer’, ‘answers‘, ap_answer_get_the_count(), ‘anspress-question-answer’)); ?>

the word marked in bold,italic and with underline is the that you must change to your language.

 

This is an example:

<?php echo ‘<span data-view=”answer_count”>’.ap_answer_get_the_count().'</span> ‘ .sprintf(_n(‘answer’, ‘Réponse‘, ap_answer_get_the_count(), ‘anspress-question-answer’)); ?>

I don’t have the same line as you but here is what I have at the line 18:

<?php echo '’.ap_answer_get_the_count().’ ‘ .sprintf(_n(‘answer’, ‘answers’, ap_answer_get_the_count(), ‘anspress-question-answer’)); ?>

Can you please tell me where shall I put the translated word?

Thanks.