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.

Tagged: 

This topic contains 10 replies, has 3 voices.

Last updated by Ricardo Alday 12 months ago.

Assigned support staff: Ricardo Alday.

Author Posts
October 9, 2018 at 2:15 am

nildeR-2

(I probably posted in wrong queue but couldn't find the one referring to Multilingual CMS)
After migration of entire divi website to new url, some pages lost their Spanish translation, either completely or in part. I am seeing that on these pages the translation fields are actually duplicated.
see two of these pages with English where Spanish should be:
hidden link (pw ca-milla18)
hidden link

Can you give me an idea of how to fix this? I am pretty desperate, the website was to be online today and now I am in this situation...

October 9, 2018 at 11:45 pm #2802367

Bruno
Supporter

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

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting us. Please, my sincere apologies for the delay in answering.

Looking at the two pages you posted above, it looks like they are being displayed correctly, at least on the front end. Your site is fixed?

If no, when I try to access your site using the credentials you have posted, this message is displayed: ERROR: Invalid username. Lost your password?

Please, could you check to see if the credentials are correct? Your next answer will be private.

Thank you.

October 10, 2018 at 12:23 am #2802406

nildeR-2

********Please confirm immediately that this is a private message*******
thanks for your reply.
No, the page here should be in Spanish and it is in English
hidden link
This one doesn’t translate the strings on the right side of the screen
hidden link

no I haven’t lost my password. I just retried on a private window and it works:
please try again:

October 10, 2018 at 3:25 pm #2804966

nildeR-2

Hi, I am still waiting for some indication of what to to do correct these errors in the translations fields.

October 10, 2018 at 3:50 pm #2805095

nildeR-2

In a last minute attempt I tried correcting the translations from the Divi builder directly, and apparently it worked.
For every save I received the warning "Warning: You are trying to edit a translation using the standard WordPress editor but your site is configured to use the WPML Translation Editor."

In reality using the standard editor was the only thing that worked, while the WPML Editor showed duplicate fields and the translation was not showing on the page.

I would like to know how to switch this setting -without creating havoc in the site,- so I can use the standard editor -(actually, in my case, the divi page builder).

Thank you

October 11, 2018 at 12:36 am #2806040

Bruno
Supporter

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

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Glad to hear that it now works. Yesterday I had already seen both pages with the translated content.

>>> I would like to know how to switch this setting -without creating havoc in the site,- so I can use the standard editor -(actually, in my case, the divi page builder).

To translate using the standard Divi theme interface, you must follow the steps below:

- Click on the WPML > Settings > How to translate posts and pages
- Select the "Create translations manually" option
- Click on the Save button

As you have already started translating these pages using the Translation Editor, the message will probably still be displayed, but you can ignore this message as long as this should not change your translations at all.

Please, let me know if I can help with any other questions you may have. I'll be happy to help.

Thank you.

October 11, 2018 at 12:40 am #2806041

nildeR-2

Ok thanks.
I went through all the 'wrong' pages on my website and corrected the translations - then a couple of pages reverted to the English and lost the translation again! So there is still a problem there. What can it be?
ps: in the pages with this problem, in the regular translation editor I don't see the untranslated fields at all. Just the title of the page and slug fields.

October 12, 2018 at 1:13 am #2810079

Bruno
Supporter

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

Timezone: America/Sao_Paulo (GMT-03:00)

Unfortunately, I can not access your site yet to test. When I access both pages I also see that the content seems to be correct. I'll attach some pictures for you to see.

In order for me to be able to verify what may be happening, I need to access your site to test this. Please, could you double-check the credentials of your site so that I can test? Your next answer will be private.

If you prefer, you can create a copy of your site using Duplicator and host the file on any server such as Google Drive or Dropbox. Then just send me the link so I can download the file.

Thank you.

October 12, 2018 at 2:11 am
October 12, 2018 at 4:44 pm #2812650

Ricardo Alday

Hi,

Bruno is off today so I'm taking over this ticket.
Can you tell me exactly which pages are still having issues and which fields are missing in them?

Thanks,
Ricardo

October 12, 2018 at 5:42 pm #2812835

nildeR-2

While waiting for Bruno to reply to one of my previous questions, I had to go live so I just changed the translation from the Divi builder, since as in the screenshot taken NOW of the entire translations screen of: hidden link, (one of the pages that reverted to English), there are no fields for the main text area. The same in many other pages that reverted. I am afraid that for no reason other pages will revert to English in the future. How can I avoid this happening?

October 15, 2018 at 9:13 pm #2818834

Ricardo Alday

One solution for this would be to add the following code to your existing wpml-config.xml file in wp-content/themes/Divi or to add it via the XML configuration tab in WPML -> Settings -> Custm XML Configuration. For the changes to take place the theme would need to be deactivated and activated again.
Then you would need to make a small change to the original file and resave it.
This should then load all fields and their existing translations to the translation editor of that page.

The default language configuration for Divi is this:

<wpml-config>
    <custom-types>
        <custom-type translate="1">project</custom-type>
        <custom-type translate="1">et_pb_layout</custom-type>
    </custom-types>
    <taxonomies>
        <taxonomy translate="1">project_category</taxonomy>
        <taxonomy translate="1">project_tag</taxonomy>
        <taxonomy translate="1">layout_category</taxonomy>
        <taxonomy translate="1">layout_type</taxonomy>
        <taxonomy translate="1">scope</taxonomy>
        <taxonomy translate="1">module_width</taxonomy>
    </taxonomies>
    <custom-fields>
        <custom-field action="copy">_et_pb_predefined_layout</custom-field>
        <custom-field action="copy">_et_pb_page_layout</custom-field>
        <custom-field action="copy">_et_pb_side_nav</custom-field>
        <custom-field action="copy">_et_pb_use_builder</custom-field>
        <custom-field action="copy">_et_pb_old_content</custom-field>
        <custom-field action="copy">_et_pb_ab_stats_refresh_interval</custom-field>
        <custom-field action="copy">_et_pb_ab_bounce_rate_limit</custom-field>
        <custom-field action="copy">_et_pb_enable_shortcode_tracking</custom-field>
        <custom-field action="copy">_et_pb_custom_css</custom-field>
        <custom-field action="copy">_et_pb_light_text_color</custom-field>
        <custom-field action="copy">_et_pb_dark_text_color</custom-field>
        <custom-field action="copy">_et_pb_content_area_background_color</custom-field>
        <custom-field action="copy">_et_post_bg_color</custom-field>
        <custom-field action="copy">_et_post_bg_layout</custom-field>
        <custom-field action="copy-once">et_pb_post_hide_nav</custom-field>
    </custom-fields>
    <admin-texts>
        <key name="et_divi">
            <key name="divi_logo"/>
            <key name="divi_favicon"/>
            <key name="divi_seo_home_titletext"/>
            <key name="divi_seo_home_descriptiontext"/>
            <key name="divi_seo_home_keywordstext"/>
			<key name="custom_footer_credits"/>
        </key>
    </admin-texts>
    <shortcodes>
        <shortcode>
            <tag>et_pb_accordion_item</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_cta</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>button_text</attribute>
                <attribute>button_url</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_map_pin</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_text</tag>
        </shortcode>
        <shortcode>
            <tag>et_pb_blurb</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>alt</attribute>
                <attribute>url</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_circle_counter</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_contact_field</tag>
            <attributes>
                <attribute>field_title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_contact_form</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>email</attribute>
                <attribute>custom_message</attribute>
                <attribute>success_message</attribute>
                <attribute>redirect_url</attribute>
                <attribute>submit_button_text</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_image</tag>
            <attributes>
                <attribute>title_text</attribute>
                <attribute>alt</attribute>
                <attribute>url</attribute>
                <attribute>src</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_number_counter</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_post_nav</tag>
            <attributes>
                <attribute>prev_text</attribute>
                <attribute>next_text</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_pricing_table</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>subtitle</attribute>
                <attribute>button_text</attribute>
                <attribute>button_url</attribute>
                <attribute>currency</attribute>
                <attribute>per</attribute>
                <attribute>sum</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_tab</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_toggle</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_counter</tag>
        </shortcode>
        <shortcode>
            <tag>et_pb_button</tag>
            <attributes>
                <attribute>button_text</attribute>
                <attribute>button_url</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_code</tag>
        </shortcode>
        <shortcode>
            <tag>et_pb_countdown_timer</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_login</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_team_member</tag>
            <attributes>
                <attribute>name</attribute>
                <attribute>position</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_post_slider</tag>
            <attributes>
                <attribute>more_text</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_search</tag>
            <attributes>
                <attribute>placeholder</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_slide</tag>
            <attributes>
                <attribute>heading</attribute>
                <attribute>image_alt</attribute>
                <attribute>button_text</attribute>
                <attribute>button_link</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_signup</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>button_text</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_testimonial</tag>
            <attributes>
                <attribute>author</attribute>
                <attribute>job_title</attribute>
                <attribute>company_name</attribute>
                <attribute>url</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_fullwidth_code</tag>
        </shortcode>
        <shortcode>
            <tag>et_pb_fullwidth_post_slider</tag>
            <attributes>
                <attribute>more_text</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_fullwidth_header</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>subhead</attribute>
                <attribute>button_one_text</attribute>
                <attribute>button_one_url</attribute>
                <attribute>button_two_text</attribute>
                <attribute>button_two_url</attribute>
                <attribute>logo_alt_text</attribute>
                <attribute>logo_title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_fullwidth_image</tag>
            <attributes>
                <attribute>alt</attribute>
                <attribute>title_text</attribute>
                <attribute>url</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>et_pb_fullwidth_portfolio</tag>
            <attributes>
                <attribute>title</attribute>
            </attributes>
        </shortcode>
		<shortcode>
            <tag>et_pb_audio</tag>
            <attributes>
                <attribute>audio</attribute>
                <attribute>title</attribute>
                <attribute>artist_name</attribute>
                <attribute>album_name</attribute>
            </attributes>
        </shortcode>
    </shortcodes>
</wpml-config>

That should add any missing Divi builder elements to the Translation Editor interface.

Let me know if that helps.

The topic ‘[Closed] problem with translation fields duplicated’ is closed to new replies.