Problem translating several words in AskBug theme and addons of Anspress

6.11K viewsGeneral
0

There are a few words although translated to Spanish as the rest of words in me AskBug and addons for Anspress, do not show translated.

They are translated in the .po file but not show as translated. See images bellow:

Image 1 (Question Form)

Image 2 (Categories page, word “Questions” do not show translated)

Image 3 (Tags page, word “Questions” do not show translated)

Image 4 (Entry blog page “Start typind…” do not show translated)

Image 5 (Lista of users)

0

Hola, parece ser que hablas español y te contestare en español:

Varias palabras como en la imagen 1 ya están traducidas yo uso la traducción español de españa la tengo descargada de aqui una vez ahí ve hasta abajo y ahí hay unas opciones donde dice “Export: all current as” “Portable Object Message Catalog (.po/.pot)” por default te sale eso le das donde dice “Export” y te descargara un archivo con extensión .po ahora donde dice “Portable Object Message Catalog (.po/.pot)” haz clic y te despliega unas opciones y selecciona la opción “Machine Object Message Catalog (.mo)” y tambien le das en “Export“y se te descargara un archivo con extension .mo una vez que ya tienes esos dos archivos mueve los a la carpeta “wp-content/plugins/anspress-question-answer/languages” y les cambias el nombre al archivo que te descargo al archivo .mo lo renombras por este:

anspress-question-answer-es_ES.mo

y al archivo .po  lo renombras por este:

anspress-question-answer-es_ES.po

Ahora solo ve a a Ajustes -> Generales -> Idioma del sitio le das en “Español” si le pones cualquier otro como “Español Mexico” o “Español Peru” no te servirá la traducción por que es tas ordenando que utilize “es_ES(español_ESPAÑA)”

NOTA: CUANDO LES CAMBIES EL NOMBRE TE DIRÁ QUE YA EXISTE UN ARCHIVO CON ESE NOMBRE ELIMINA LOS QUE VIENEN POR DEFAULT DENTRO DE ESA CARPETA “wp-content/plugins/anspress-question-answer/languages

Otra manera es cambiarlos manualmente desde los archivos pero cuando actualices anspress las partes traducidas ya no aparecerán a menos que ya estén traducidas en la actualización

para la imagen 1:

ve a wp-content/plugins/anspress-question-answer/theme/default/answer-form.php en la linea 12 hay algo como esto

<li class="active"><a href="#ap-form-main"><?php _e('Write', 'anspress-question-answer'); ?></a></li>

cambialo por este:

<li class="active"><a href="#ap-form-main"><?php _e('Escriba', 'anspress-question-answer'); ?></a></li>

y en la linea  14 hay algo como esto:

<li><a href="#ap-form-help"><?php _e('How to answer', 'anspress-question-answer'); ?></a></li>

cambialo por esto:

<li><a href="#ap-form-help"><?php _e('Como responder', 'anspress-question-answer'); ?></a></li>

Para la imagen 2:

ve a wp-content\plugins\categories-for-anspress\theme\categories.php en la linea 26 hay algo como esto:

<?php printf(_n('%d Question', '%d Questions', $category->count, 'categories-for-anspress' ), $category->count ) ?>

cambialo por este:

<?php printf(_n('%d Pregunta', '%d Preguntas', $category->count, 'categories-for-anspress' ), $category->count ) ?>

en la imagen 3 y 4 no te puedo no tengo ni idea de donde están lo siento 🙁

y en la imagen 5 ve a wp-content\plugins\anspress-question-answer\theme\default\users\loop-item.php ve a la linea 29 y habrá cuatro lineas como esta:

<span><?php printf(__('%s Rep.', 'anspress-question-answer'), ap_user_get_the_reputation()); ?></span>
<span><?php printf(__('%d Best', 'anspress-question-answer'), ap_user_get_the_meta('__best_answers')); ?></span>
<span><?php printf(__('%d Answers', 'anspress-question-answer'), ap_user_get_the_meta('__total_answers')); ?></span>
<span><?php printf(__('%d Questions', 'anspress-question-answer'), ap_user_get_the_meta('__total_questions')); ?></span>

y cambialo por este:

<span><?php printf(__('%s Reputación', 'anspress-question-answer'), ap_user_get_the_reputation()); ?></span>
<span><?php printf(__('%d Mejor', 'anspress-question-answer'), ap_user_get_the_meta('__best_answers')); ?></span>
<span><?php printf(__('%d Respuestas', 'anspress-question-answer'), ap_user_get_the_meta('__total_answers')); ?></span>
<span><?php printf(__('%d Preguntas', 'anspress-question-answer'), ap_user_get_the_meta('__total_questions')); ?></span>
0

Hi Rahul, tks for your reply. I’m using Anspress plugin (v. 2.4.8), AnsPress Email (v 1.3) and Categories for AnsPress (not the theme). Maybe I made a mistake posting in this thread (I realize now) because I’m talking about the plugins and not the theme. Anyway… can you help me? Tks a lot!

Bst Regards!

0

Hi Rahul,

Excellent plugin! But… any update about JSousa problem? I have the same issue here.

Tks in advance!

Cristian

commented on answer

This has been solved already. Are you using our theme?