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 topic contains 13 replies, has 3 voices.

Last updated by Amit 9 months, 1 week ago.

Assigned support staff: Laura.

Author Posts
January 5, 2019 at 12:45 pm #3059026

andreL-17

I'll explain what I did:

1) I first performed the translation of some fields through the WPML "text admin".
2) All changes were successfully applied. I have successfully tested both languages. The first language retained the original texts. The second language maintained the translations of the "String Translations" translations successfully. (See attachements about yesterday images)
3) At the end of the day, the first language took over the translations of the second language. (see attachment about the today images)

The first time, I thought it was some confusion, but this has happened twice.

Please, need help solving this as soon as possible.

January 6, 2019 at 1:02 pm #3060324

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

thanks for contacting us.

We're receiving several tickets about similar issues, so it's probably due to the latest WordPress update. Do you duplicate your page and then translate them or you directly translate them?

I would also need your WPML debug information. You can find it in:
WPML -> Support -> click on debug information link
Then you can copy/paste the text you see in the Debug box I'll enable for the next answer.
More information here: http://wpml.org/faq/provide-debug-information-faster-support/

January 6, 2019 at 4:48 pm #3060509

andreL-17

Hi Laura,

How I described, I'm translating some customizer fields of Smart Theme, trough your "admin texts" functions.

Would you like the wpml-config.xml?

<wpml-config>
<admin-texts>
<key name="op_options">
<key name="homepage_hero_title" />
<key name="homepage_hero_subtitle" />
<key name="homepage_hero_button_text" />
<key name="homepage_after_header_headline" />
<key name="homepage_after_header_subheadline" />
<key name="homepage_after_header_submit_button_text" />
<key name="homepage_after_header_trigger_button_text" />
<key name="homepage_after_header_lightbox_headline" />
<key name="homepage_after_header_lightbox_subheadline" />
<key name="homepage_after_header_lightbox_submit_button_text" />
<key name="homepage_after_header_lightbox_privacy_text" />
<key name="homepage_after_hero_headline" />
<key name="homepage_after_hero_subheadline" />
<key name="homepage_after_hero_submit_button_text" />
<key name="homepage_after_hero_privacy_text" />
<key name="homepage_after_hero_trigger_button_text" />
<key name="homepage_after_hero_lightbox_headline" />
<key name="homepage_after_hero_lightbox_subheadline" />
<key name="homepage_after_hero_lightbox_submit_button_text" />
<key name="homepage_after_hero_lightbox_privacy_text" />
<key name="homepage_before_footer_headline" />
<key name="homepage_before_footer_subheadline" />
<key name="homepage_before_footer_submit_button_text" />
<key name="homepage_before_footer_privacy_text" />
<key name="homepage_before_footer_trigger_button_text" />
<key name="homepage_before_footer_lightbox_headline" />
<key name="homepage_before_footer_lightbox_subheadline" />
<key name="homepage_before_footer_lightbox_submit_button_text" />
<key name="homepage_before_footer_lightbox_privacy_text" />
<key name="single_after_header_headline" />
<key name="single_after_header_subheadline" />
<key name="single_after_header_submit_button_text" />
<key name="single_after_header_trigger_button_text" />
<key name="single_after_header_lightbox_headline" />
<key name="single_after_header_lightbox_subheadline" />
<key name="single_after_header_lightbox_submit_button_text" />
<key name="single_after_header_lightbox_privacy_text" />
<key name="single_after_hero_headline" />
<key name="single_after_hero_subheadline" />
<key name="single_after_hero_submit_button_text" />
<key name="single_after_hero_privacy_text" />
<key name="single_after_hero_trigger_button_text" />
<key name="single_after_hero_lightbox_headline" />
<key name="single_after_hero_lightbox_subheadline" />
<key name="single_after_hero_lightbox_submit_button_text" />
<key name="single_after_hero_lightbox_privacy_text" />
<key name="single_before_footer_headline" />
<key name="single_before_footer_subheadline" />
<key name="single_before_footer_submit_button_text" />
<key name="single_before_footer_privacy_text" />
<key name="single_before_footer_trigger_button_text" />
<key name="single_before_footer_lightbox_headline" />
<key name="single_before_footer_lightbox_subheadline" />
<key name="single_before_footer_lightbox_submit_button_text" />
<key name="single_before_footer_lightbox_privacy_text" />
<key name="page_after_header_headline" />
<key name="page_after_header_subheadline" />
<key name="page_after_header_submit_button_text" />
<key name="page_after_header_trigger_button_text" />
<key name="page_after_header_lightbox_headline" />
<key name="page_after_header_lightbox_subheadline" />
<key name="page_after_header_lightbox_submit_button_text" />
<key name="page_after_header_lightbox_privacy_text" />
<key name="page_after_hero_headline" />
<key name="page_after_hero_subheadline" />
<key name="page_after_hero_submit_button_text" />
<key name="page_after_hero_privacy_text" />
<key name="page_after_hero_trigger_button_text" />
<key name="page_after_hero_lightbox_headline" />
<key name="page_after_hero_lightbox_subheadline" />
<key name="page_after_hero_lightbox_submit_button_text" />
<key name="page_after_hero_lightbox_privacy_text" />
<key name="page_before_footer_headline" />
<key name="page_before_footer_subheadline" />
<key name="page_before_footer_submit_button_text" />
<key name="page_before_footer_privacy_text" />
<key name="page_before_footer_trigger_button_text" />
<key name="page_before_footer_lightbox_headline" />
<key name="page_before_footer_lightbox_subheadline" />
<key name="page_before_footer_lightbox_submit_button_text" />
<key name="page_before_footer_lightbox_privacy_text" />
<key name="archive_after_header_headline" />
<key name="archive_after_header_subheadline" />
<key name="archive_after_header_submit_button_text" />
<key name="archive_after_header_trigger_button_text" />
<key name="archive_after_header_lightbox_headline" />
<key name="archive_after_header_lightbox_subheadline" />
<key name="archive_after_header_lightbox_submit_button_text" />
<key name="archive_after_header_lightbox_privacy_text" />
<key name="archive_after_hero_headline" />
<key name="archive_after_hero_subheadline" />
<key name="archive_after_hero_submit_button_text" />
<key name="archive_after_hero_privacy_text" />
<key name="archive_after_hero_trigger_button_text" />
<key name="archive_after_hero_lightbox_headline" />
<key name="archive_after_hero_lightbox_subheadline" />
<key name="archive_after_hero_lightbox_submit_button_text" />
<key name="archive_after_hero_lightbox_privacy_text" />
<key name="archive_before_footer_headline" />
<key name="archive_before_footer_subheadline" />
<key name="archive_before_footer_submit_button_text" />
<key name="archive_before_footer_privacy_text" />
<key name="archive_before_footer_trigger_button_text" />
<key name="archive_before_footer_lightbox_headline" />
<key name="archive_before_footer_lightbox_subheadline" />
<key name="archive_before_footer_lightbox_submit_button_text" />
<key name="archive_before_footer_lightbox_privacy_text" />
<key name="search_after_header_headline" />
<key name="search_after_header_subheadline" />
<key name="search_after_header_submit_button_text" />
<key name="search_after_header_trigger_button_text" />
<key name="search_after_header_lightbox_headline" />
<key name="search_after_header_lightbox_subheadline" />
<key name="search_after_header_lightbox_submit_button_text" />
<key name="search_after_header_lightbox_privacy_text" />
<key name="search_after_hero_headline" />
<key name="search_after_hero_subheadline" />
<key name="search_after_hero_submit_button_text" />
<key name="search_after_hero_privacy_text" />
<key name="search_after_hero_trigger_button_text" />
<key name="search_after_hero_lightbox_headline" />
<key name="search_after_hero_lightbox_subheadline" />
<key name="search_after_hero_lightbox_submit_button_text" />
<key name="search_after_hero_lightbox_privacy_text" />
<key name="search_before_footer_headline" />
<key name="search_before_footer_subheadline" />
<key name="search_before_footer_submit_button_text" />
<key name="search_before_footer_privacy_text" />
<key name="search_before_footer_trigger_button_text" />
<key name="search_before_footer_lightbox_headline" />
<key name="search_before_footer_lightbox_subheadline" />
<key name="search_before_footer_lightbox_submit_button_text" />
<key name="search_before_footer_lightbox_privacy_text" />
<key name="404_after_header_headline" />
<key name="404_after_header_subheadline" />
<key name="404_after_header_submit_button_text" />
<key name="404_after_header_trigger_button_text" />
<key name="404_after_header_lightbox_headline" />
<key name="404_after_header_lightbox_subheadline" />
<key name="404_after_header_lightbox_submit_button_text" />
<key name="404_after_header_lightbox_privacy_text" />
<key name="404_after_hero_headline" />
<key name="404_after_hero_subheadline" />
<key name="404_after_hero_submit_button_text" />
<key name="404_after_hero_privacy_text" />
<key name="404_after_hero_trigger_button_text" />
<key name="404_after_hero_lightbox_headline" />
<key name="404_after_hero_lightbox_subheadline" />
<key name="404_after_hero_lightbox_submit_button_text" />
<key name="404_after_hero_lightbox_privacy_text" />
<key name="404_before_footer_headline" />
<key name="404_before_footer_subheadline" />
<key name="404_before_footer_submit_button_text" />
<key name="404_before_footer_privacy_text" />
<key name="404_before_footer_lightbox_headline" />
<key name="404_before_footer_lightbox_subheadline" />
<key name="404_before_footer_lightbox_submit_button_text" />
<key name="404_before_footer_lightbox_privacy_text" />
<key name="widget_optin_1_headline" />
<key name="widget_optin_1_subheadline" />
<key name="widget_optin_1_privacy_text" />
<key name="widget_optin_1_trigger_button_text" />
<key name="widget_optin_1_lightbox_headline" />
<key name="widget_optin_1_lightbox_subheadline" />
<key name="widget_optin_1_lightbox_submit_button_text" />
<key name="widget_optin_1_lightbox_privacy_text" />
<key name="widget_optin_2_headline" />
<key name="widget_optin_2_subheadline" />
<key name="widget_optin_2_submit_button_text" />
<key name="widget_optin_2_privacy_text" />
<key name="widget_optin_2_trigger_button_text" />
<key name="widget_optin_2_lightbox_headline" />
<key name="widget_optin_2_lightbox_subheadline" />
<key name="widget_optin_2_lightbox_submit_button_text" />
<key name="widget_optin_2_lightbox_privacy_text" />
<key name="widget_optin_3_headline" />
<key name="widget_optin_3_subheadline" />
<key name="widget_optin_3_submit_button_text" />
<key name="widget_optin_3_privacy_text" />
<key name="widget_optin_3_trigger_button_text" />
<key name="widget_optin_3_lightbox_headline" />
<key name="widget_optin_3_lightbox_subheadline" />
<key name="widget_optin_3_lightbox_submit_button_text" />
<key name="widget_optin_3_lightbox_privacy_text" />
</key>
</admin-texts>
</wpml-config>

January 6, 2019 at 5:07 pm #3060542

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

before further debugging, I'd ask you to increase the WP Memory Limit. PHP memory limit is fine but WordPress uses 40Mb as default. Minimum requirements for WPML are 128Mb.
Add this near the top of wp-config.php file (after the php opening tag) to increase WP memory:

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

The wp-config.php file is located in your WordPress root directory. It's the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
You can check the current WP Memory Limit value from WPML -> Support in the Info section
More info here:
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
https://wpml.org/home/minimum-requirements/

If this doesn't help solve your issue, please provide your site's credentials so I can take a better look.

January 7, 2019 at 10:34 am #3062204

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

I checked your site, and I think you're experiencing an issue we are already aware of, but we don't have a solution for yet.

I see your theme has some theme options and set the value from that page somehow reset the value in String Translation. I can see even from your screenshot that some of your texts in the customizer are in Portuguese, and in String Translation, while the texts are in Portuguese the flags say they're in English.

So what I can suggest at the moment is:
1. having the texts in the theme option directly in English, and keep the translation in Portuguese, or
2. change the language of strings in String Translation

Probably number 1 is the easiest one to implement.
We hope to have soon a fix for this issue.
Do you think this can work for you at the meantime?

January 7, 2019 at 12:04 pm #3062452

andreL-17

Yes Laura, you right! That is the problem. When I put the texts in the theme option directly in English, and then translate them through String Translation, a little time after, the portuguese texts appears like english texts. They appears in portuguese like a magic.

Would you like a ilustration? I make this test right now. Now, it's 09:41 in my local time:

1) First, I changed the customizer field of my theme, named as "[op_options]homepage_hero_title". As you can see in the first screenshot, it is with text in Portuguese, in both flags (English and Portugue). Right?

2) I'm changin it in the customizer field for a English Text (Second Scrennshot)

3) So, you will find that the texts are correct in both flags in the String Translations, and in the theme (#3 screeenshot). In the #4 screenshot, the english version of the theme is correct. But not in #5 screenshot, where the portuguese version is in English too for the same field.

4) So lets try to change that, trying to saving the field in the String Translation again. #6 screenshot

5) We can see in the #7 screenshot, the portuguese version of the theme is correct. But not in #8 screenshot, where the English version changed the text of that field to Portuguese too. Like a magic!

6) When we check the String Translationg of that field, both flags turned back to texts in Portuguese. #9 screenshot.

So Laura, neither of your solutions are helping me.

Please, I need help. And I need a faster solution. I'm in with this issue for 5 days.

January 7, 2019 at 12:09 pm #3062540

andreL-17

I've already dug in all of your tickets, without a properly solution. I need a solution, even if it's an alternative one.

January 7, 2019 at 2:56 pm #3063244

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

it's not clear if you did something else between step 7 and 8, like changing some setting, saving stuff etc. I waited for some time after doing what you can read below and nothing changed.

For some reason, it's not possible to change the string language in String Translation.
So I tried to set the texts in Appearance -> Theme option -> Homepage Hero in English.
Then I kept the Portuguese translation, making sure the checkbox "translation is complete" is saved (I can't see that in your screenshot). It seems to work in the front end. I also updated 2 times the Options theme page, and I can still see the correct values in both languages.

I think at the moment this is the only solution available.
I reported this ticket to the escalated one, but until there isn't a solution at code level I don't think there much more we can do.

January 7, 2019 at 2:58 pm #3063247

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Of course, the second I post this the translation is reset... I still don't know if something is triggering it.

January 7, 2019 at 3:16 pm #3063327

andreL-17

Laura, with all due respect, how could you updated 2 times the Options theme page, and can still see the correct values in both languages for now, if i just access the front-end (www.agileitinstitute.com), and I'm getting Portuguese texts in both languages for the "op_options]homepage_hero_title"? (plese, see the images)
I didn't anything in the backend. I just typped in hidden link in browser, I cleaned the cache and cookies, I just change the language switcher between the tow languages. And the text of "op_options]homepage_hero_title" is the same in Portuguese.

About your question, nothing was changed during steps #7 and #8.

And about your last post, yes, look like there is something triggering that behavior.

January 7, 2019 at 3:23 pm #3063370

andreL-17

If you have managed to keep the translation as expected, I would be grateful to receive a demonstration of how you did it. Since I'm doing the same procedure and getting different results from what you report, there's something different about our approaches, do not you agree?

January 8, 2019 at 12:37 pm #3066754

andreL-17

So....????

January 8, 2019 at 2:40 pm #3067476

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

I just sent a private message with instructions on how to create a copy of your site so I can further debug the issue. Please check the message above this one and let me know when it's ready.

January 8, 2019 at 3:40 pm #3067739

Amit
Supporter

Hi, my name is Amit and I am the WPML support manager, first let me apologize for the delay.

This issue, which is quite annoying I agree, is known and we have noticed it a few weeks ago with a different theme, in short, what happens here is that the theme is storing the data in the theme options as a serialized text which includes the value and the string together, so Imagine the theme has a "Visits counter", and its stored in wp_options under a certain key (ie: op_options)
if someone visits the Italian home page, they will be receiving Italian admin texts --> so far this is perfect and what we want to happen BUT when the theme updates the "Visits counter", it will be updated together with all the Italian texts causing the problem you have here.

We have that in our queue for debugging and fixing but it's a very tricky fix and I am not sure actually how we can from WPML side fix it, so in the meanwhile, one of our developers is contacting the theme author to explain how this should be done to allow a better multilingual integration, if you can please update the theme author that they should be receiving an email from us.

Thanks!

The topic ‘[Closed] The second language translation is also assuming the values for the first langua’ is closed to new replies.