This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This thread is resolved. Here is a description of the problem and solution.

El problema:
No puedo traducir las opciones del tema Primetrans.

La solución:
- Edita el archivo/plugins/ninzio-addons/optionpanel/config.php, en la línea 21.
- Cambia:

add_action('plugins_loaded', array($this, 'initSettings'), 10); 

Por:

add_action('init', array($this, 'initSettings'), 10); 

Documentación:
https://wpml.org/theme/primetrans/

0% of people find this useful.

This topic contains 15 replies, has 3 voices.

Last updated by Andrés 1 month ago.

Assigned support staff: Andrés.

Author Posts
October 18, 2017 at 8:12 am

jose-manuelG-11

I am trying to: It doesn't work: "If you switch to spanish in the top bar of the admin area you will see the same exact theme options with the Blog title, you should change the blog title in the spanish version and save".

Link to a page where the issue can be seen: hidden link and hidden link

I expected to see: At home, I have to translate the box under the banner. At the blog I have to translate the banner. The theme says: "Hmmm, very strange, we check the WPML config file, it seems to work fine, can you write to WPML support too, because from the theme side it seems to be configured as WPML requires. Please write to the WPML and write back us us
"

Instead, I got: . It keep equal in English and Spanish.

October 19, 2017 at 3:51 pm #1406188

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

Welcome to WPML support forum.

1. In order to translate your Blog title, you need to install our "WPML String Translation" AddOn. Then, please follow steps:
- Go under "WPML -> Theme and plugins localization".
- Make sure that "Translate themes and plugins using WPML's String Translation only (don't load .mo files)" is active.
- Scroll down to "Strings in the theme" and click on "Scan the theme for strings".
- Once you followed the above steps go under "WPML -> String Translation". All strings available for translation should display in the table you see there.

Do you see them? If yes, all you need to do is click on "translations" next to each string you want to translate and enter + save your translations.

Documentation:
https://wpml.org/documentation/getting-started-guide/string-translation/

If this does not help, please increase your Memory limit and repeat the previous step:

2. Could you please increase your Memory Limit and WP Memory limit to 256M? 128M is the minimum required by WPML.
Your current values are:
- MemoryLimit 256M
- WP Memory Limit 40M

Add this code to your wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/* That's all, stop editing! Happy blogging. */

These settings can be limited directly by your hosting provider, so I recommend you to contact and ask them to modify them directly. If you can get even higher values It would be great.

https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, it means, with a default theme and not other plugins installed.

Best regards,
Andrés

October 24, 2017 at 8:19 am #1409639

jose-manuelG-11

Sorry, but I can't solve it. I'm going to paste what theme says:
Dear client, we came across to situation, when without WPML team support, we can't find the issue, we will need their help, as we configured the translation options for the theme option panel as required from WPML part.
These are the strings from the option panel that are needed to be translated (image).

Without WPML team support, we can't complete this task, extremely sorry for any inconvenience that you have, but the problem is really unknown, right now we can't give you easy solution.

examination - the wpml-config.xml file - the configuration file
<wpml-config>
<admin-texts>
<key name="primetrans_ninzio">
<key name="port-title" />
<key name="port-subtitle" />
<key name="blog-title" />
<key name="blog-subtitle" />
<key name="shop-title" />
<key name="shop-subtitle" />
<key name="slider-banner" />
</key>
</admin-texts>
<custom-fields>
<custom-field action="copy">audio_mp3</custom-field>
<custom-field action="copy">audio_ogg</custom-field>
<custom-field action="copy">audio_embed</custom-field>
<custom-field action="copy">video_mp4</custom-field>
<custom-field action="copy">video_ogv</custom-field>
<custom-field action="copy">video_webm</custom-field>
<custom-field action="copy">video_embed</custom-field>
<custom-field action="copy">video_poster</custom-field>
<custom-field action="copy">link_url</custom-field>
<custom-field action="copy">image_url</custom-field>
<custom-field action="copy">quote_author</custom-field>
<custom-field action="translate">image_description</custom-field>
<custom-field action="translate">status_author</custom-field>
<custom-field action="translate">quote_author</custom-field>
<custom-field action="translate">client</custom-field>
<custom-field action="copy">project_link</custom-field>
<custom-field action="copy">featured_media</custom-field>
<custom-field action="copy">layout</custom-field>
<custom-field action="copy">one_page</custom-field>
<custom-field action="copy">slider</custom-field>
<custom-field action="copy">sidebar</custom-field>
<custom-field action="copy">sidebar_pos</custom-field>
<custom-field action="copy">rh</custom-field>
<custom-field action="copy">rh_back_color</custom-field>
<custom-field action="copy">rh_back_img</custom-field>
<custom-field action="copy">rh_back_img_repeat</custom-field>
<custom-field action="copy">rh_back_img_position</custom-field>
<custom-field action="copy">rh_back_img_attachment</custom-field>
<custom-field action="copy">rh_back_img_size</custom-field>
<custom-field action="copy">parallax</custom-field>
<custom-field action="copy">background_image</custom-field>
<custom-field action="copy">background_color</custom-field>
<custom-field action="copy">background_video_mp4</custom-field>
<custom-field action="copy">background_video_ogv</custom-field>
<custom-field action="copy">background_video_webm</custom-field>
<custom-field action="copy">background_video_pattern</custom-field>
<custom-field action="translate">layer_1</custom-field>
<custom-field action="copy">layer_index_1</custom-field>
<custom-field action="copy">layer_delay_1</custom-field>
<custom-field action="copy">layer_duration_1</custom-field>
<custom-field action="copy">layer_opacity_1</custom-field>
<custom-field action="copy">layer_zindex_1</custom-field>
<custom-field action="copy">layer_easing_1</custom-field>
<custom-field action="copy">layer_direction_1</custom-field>
<custom-field action="translate">layer_posx_1</custom-field>
<custom-field action="translate">layer_posy_1</custom-field>
<custom-field action="translate">layer_2</custom-field>
<custom-field action="copy">layer_index_2</custom-field>
<custom-field action="copy">layer_delay_2</custom-field>
<custom-field action="copy">layer_duration_2</custom-field>
<custom-field action="copy">layer_opacity_2</custom-field>
<custom-field action="copy">layer_zindex_2</custom-field>
<custom-field action="copy">layer_easing_2</custom-field>
<custom-field action="copy">layer_direction_2</custom-field>
<custom-field action="translate">layer_posx_2</custom-field>
<custom-field action="translate">layer_posy_2</custom-field>
<custom-field action="translate">layer_3</custom-field>
<custom-field action="copy">layer_index_3</custom-field>
<custom-field action="copy">layer_delay_3</custom-field>
<custom-field action="copy">layer_duration_3</custom-field>
<custom-field action="copy">layer_opacity_3</custom-field>
<custom-field action="copy">layer_zindex_3</custom-field>
<custom-field action="copy">layer_easing_3</custom-field>
<custom-field action="copy">layer_direction_3</custom-field>
<custom-field action="translate">layer_posx_3</custom-field>
<custom-field action="translate">layer_posy_3</custom-field>
<custom-field action="translate">layer_4</custom-field>
<custom-field action="copy">layer_index_4</custom-field>
<custom-field action="copy">layer_delay_4</custom-field>
<custom-field action="copy">layer_duration_4</custom-field>
<custom-field action="copy">layer_opacity_4</custom-field>
<custom-field action="copy">layer_zindex_4</custom-field>
<custom-field action="copy">layer_easing_4</custom-field>
<custom-field action="copy">layer_direction_4</custom-field>
<custom-field action="translate">layer_posx_4</custom-field>
<custom-field action="translate">layer_posy_4</custom-field>
<custom-field action="translate">layer_5</custom-field>
<custom-field action="copy">layer_index_5</custom-field>
<custom-field action="copy">layer_delay_5</custom-field>
<custom-field action="copy">layer_duration_5</custom-field>
<custom-field action="copy">layer_opacity_5</custom-field>
<custom-field action="copy">layer_zindex_5</custom-field>
<custom-field action="copy">layer_easing_5</custom-field>
<custom-field action="copy">layer_direction_5</custom-field>
<custom-field action="translate">layer_posx_5</custom-field>
<custom-field action="translate">layer_posy_5</custom-field>
<custom-field action="copy">feature-image-2</custom-field>
<custom-field action="copy">feature-image-3</custom-field>
<custom-field action="copy">feature-image-4</custom-field>
<custom-field action="copy">feature-image-5</custom-field>
<custom-field action="copy">format</custom-field>
</custom-fields>
<custom-types>
<custom-type translate="1">portfolio</custom-type>
<custom-type translate="1">ninzio-slider</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate="1">portfolio-category</taxonomy>
<taxonomy translate="1">portfolio-tag</taxonomy>
</taxonomies>
<language-switcher-settings>
<key name="icl_lang_sel_config">
<key name="font-current-normal">#999999</key>
<key name="font-current-hover">#444444</key>
<key name="background-current-normal">#f1f1f1</key>
<key name="background-current-hover">#eeeeee</key>
<key name="font-other-normal">#999999</key>
<key name="font-other-hover">#444444</key>
<key name="background-other-normal">#f1f1f1</key>
<key name="background-other-hover">#eeeeee</key>
<key name="border">#e0e0e0</key>
</key>
<key name="icl_lang_sel_footer_config">
<key name="font-current-normal">#ffffff</key>
<key name="font-current-hover">#ffffff</key>
<key name="background-current-normal">#19262b</key>
<key name="background-current-hover">#19262b</key>
<key name="font-other-normal">#ffffff</key>
<key name="font-other-hover">#ffffff</key>
<key name="background-other-normal">#19262b</key>
<key name="background-other-hover">#19262b</key>
<key name="border">#19262b</key>
</key>
<key name="icl_language_switcher_sidebar">0</key>
<key name="icl_widget_title_show">0</key>
<key name="icl_lang_sel_type">dropdown</key>
<key name="icl_lso_link_empty">0</key>
<key name="icl_lso_flags">0</key>
<key name="icl_lso_native_lang">1</key>
<key name="icl_lso_display_lang">1</key>
<key name="icl_lang_sel_footer">0</key>
<key name="icl_post_availability">0</key>
<key name="icl_post_availability_position">below</key>
<key name="icl_post_availability_text">This post is also available in: %s</key>
</language-switcher-settings>
</wpml-config>

October 24, 2017 at 11:33 am #1409931

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

I'm sorry but I need a bit more information from your part. From the screenshot you added, those strings are not translated, can you translate them? Or can you explain me your situation?

Also, can you confirm that you have increased your WP Memomory Limit as I suggested you before?

October 27, 2017 at 5:32 pm #1414391

jose-manuelG-11

Hola Andrés, he aumentado la memoria (pantallazo 2) y hecho las traducciones y sigo siver los cambios. Solo me ocurre en el banner del blog y en la parte que ves de slider-banner (pantallazo 1). Desde el tema me dicen: Dear client, we came across to situation, when without WPML team support, we can't find the issue, we will need their help, as we configured the translation options for the theme option panel as required from WPML part. As you have customer accout in WPML, please open a ticket and add the attached file for the examination - the wpml-config.xml file - the configuration file

Without WPML team support, we can't complete this task, extremely sorry for any inconvenience that you have, but the problem is really unknown, right now we can't give you easy solution.

Ya no sé qué hacer... Gracias!

October 27, 2017 at 6:07 pm #1414424

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Gracias por incrementar la memoria y la confirmación.

Con mucho gusto me gustaría ayudarte, pero como te dije anteriormente sigo sin entender tu problema. Según veo, quieres traducir la cadena "Offshore industry news", ¿pero dónde está esta cadena? ¿Cómo las ingresas? ¿Donde verificas si la traducción es visible?

Por ejemplo, podrías seguir algo como:
- Si voy a esta URL y observo xxx, veo que dice "xxx".
- Esta cadena la ingrese en mis Opciones del tema > xxx.
- Sin embargo, su traducción no es visible en xxx, dice xxx, en lugar de xxx.

Gracias por tu ayuda.

October 31, 2017 at 6:22 am #1416353

jose-manuelG-11

Buenos días, te explico todo. Me falta solo por traducir dos partes del tema. Las cajas que van debajo del banner de la home (pantallazo 1) y el título y subtítulo del blog (pantallazo 2). Ahora mismo, tengo oculto el blog y en las cajas he puesto algo que pueda servir para los dos idiomas, ya que no puedo traducirlo. Las cadenas las he traducido tal y como me dijisteis (pantallazo 3). Tanto lo del blog como lo de las cajas son opciones del tema. Blog: pantallazo 4. Cajas debajo del banner: pantallazo 5. La cuestión es que no se reflejan las traducciones, por ejemplo pantallazo 6 y 7. No sé que más necesitas. Pídemelo sin problemas. ¡Gracias!

October 31, 2017 at 11:30 am #1416664

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hola,

Perfecto, ¡finalmente entiendo a qué te refieres! Gracias por tu detallada explicación 🙂

¿Me podrías dar las credenciales de tu sitio web de prueba, de esta manera podemos dar un vistazo a tus ajustes?

Para esto, debes poder ver una forma protegida en la parte inferior de este tópico. (Te pide hacer un backup y un + Aviso legal). Una instalación de test es preferible y nos haría mucho más fácil hacer una evaluación. En cuanto tenga más información te lo haré saber

Importante: Haz un backup completo de tu sitio. Puedes usar un plugin como Duplicator para este propósito. Mira en: http://wordpress.org/plugins/duplicator/

Si no ves este formulario para completar los campos confidenciales NO los publiques, ya que serán visibles en el foro:
hidden link

Privacidad y seguridad al proporcionar información de Debug para soporte:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

November 1, 2017 at 8:17 am
November 1, 2017 at 2:46 pm #1417971

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hola,

He accedido a tu sitio y he podido replicar este comportamiento. Luego he creado una copia y ha sucedido lo mismo en local. Finalmente he creado una instalación desde cero y el resultado es el mismo.

Al parecer, el autor del tema está usando "transients" en la nueva versión del tema (+primetrans_ninzio-transients), y esta funcionalidad no es soportada por WPMl.

Como puedes ver, este tema fue testeado en Julio y no se en que momento se habrá introducido este cambio. Por esta razón voy a enviar los detalles a nuestro equipo de Compatibilidad de Temas y Plugins y ellos contactarán al autor.

Te mantengo informado de cualquier avance.

Saludos,
Andrés

November 2, 2017 at 12:18 am #1418433

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hola de nuevo,

He tenido una rápida respuesta de nuestro equipo de compatibilidad.
- Edita el archivo/plugins/ninzio-addons/optionpanel/config.php, en la línea 21.
- Cambia:

add_action('plugins_loaded', array($this, 'initSettings'), 10); 

Por:

add_action('init', array($this, 'initSettings'), 10); 

¿Puedes traducir tus cadenas ahora?

November 2, 2017 at 6:44 am #1418508

jose-manuelG-11

¡Buenos días! No sé si estoy haciendo algo mal, pero sigue sin traducirse. ¡Gracias!

November 2, 2017 at 12:24 pm #1418957

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hola,
Acabo de modificar el archivo archivo que se solicitaba y todo parece funcionar. ¿Podrías verificarlo?
Saludos

November 2, 2017 at 1:19 pm #1419055

jose-manuelG-11

¡Sí! ¡Un millón de gracias! 🙂 Muchas gracias por tu ayuda y por tu trabajo. ¡Gracias!

November 2, 2017 at 1:36 pm #1419083

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

¡Perfecto! 🙂
Gracias por tu confirmación,
Andrés