Skip Navigation

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

This topic contains 4 respuestas, has 2 mensajes.

Last updated by Andreas W. hace 1 month.

Assigned support staff: Andreas W..

Autor Mensajes
enero 20, 2021 a las 3:20 pm #7888849

Anna

Hi, the wpml string doesn't working. The post translates and forms pages are working.

I am gooaing attach a few screenshots.

enero 21, 2021 a las 4:27 am #7893367

Andreas W.
Supporter

Languages: Inglés (English ) Español (Español ) Alemán (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I see you are using a custom theme.

Please follow this documentation:
https://wpml.org/documentation/support/translating-the-theme-you-created/#adding-your-theme-or-plugins-translations

Did you make sure to register the text-domain in finctions.php like:

add_action( 'after_setup_theme', 'my_theme_setup' );
function my_theme_setup(){
  load_theme_textdomain( 'negociointernacional', get_template_directory() . '/languages' );
}

Also, please make sure to change the WP Memory Limit to 256M or higher.

More details:
hidden link

Let me know if further assistance is needed.

Best regards
Andreas

enero 21, 2021 a las 8:30 am #7894163

Anna

Hi, I have registered the text-domain in functions.php of my theme and increase the wp limit to 512mb but the the problem continue.

Thanks,

Yoel

enero 22, 2021 a las 6:14 am #7903301

Andreas W.
Supporter

Languages: Inglés (English ) Español (Español ) Alemán (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

After registering the text-domain did you try to scan the theme for new strings at WPML -> Theme and Plugin Localization?

Also, did you try locating the string this way?
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

In doubts, please provide me admin access to the site. The private reply form is enabled.

Best regards
Andreas

enero 22, 2021 a las 6:15 am #7903307

Andreas W.
Supporter

Languages: Inglés (English ) Español (Español ) Alemán (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I have to add, please try another getText call here.

I would suggest testing with "esc_html_e"

Source:
https://codex.wordpress.org/I18n_for_WordPress_Developers#Introduction_to_Gettext

Best regards
Andreas

El debate ‘[Cerrado] The wpml string is not working’ está cerrado y no admite más respuestas.