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.

Problem: I am trying to Translate content in Newspaper Theme, for example Headings of blocks.

Solution: Solution here: https://wpml.org/forums/topic/unable-translate-content-of-newspaper-theme/#post-3743373

This topic contains 7 replies, has 2 voices.

Last updated by kee-huiS-2 5 months, 2 weeks ago.

Assigned support staff: Noman.

Author Posts
May 3, 2019 at 11:13 pm #3738293

kee-huiS-2

I am trying to: Translating content in Newspaper Theme

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

Here is my problem, I trying to search for the string inside the content to do translation but I cant find it in String Translation.

May 5, 2019 at 9:25 am #3742245

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Could you please let me know which string you are searching in string translation and also let me know where from you have added that string in your site?

- Please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Thank you

May 5, 2019 at 9:32 am #3742273

kee-huiS-2

Hi Noman, I wish to translate the string in the attached image below. However, I can't find a way to add those string into my string management. You can see this page here hidden link

Btw, I dont see any debug information box for me to input, so i think I will just put it here.

{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/efatimes.com","HomeURL":"http:\/\/efatimes.com","Version":"5.1.1","PermalinkStructure":"\/%year%\/%monthnum%\/%day%\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, tdb_templates","PostStatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed"},"Server":{"jQueryVersion":"1.12.4","PHPVersion":"7.2.13","MySQLVersion":"5.5.5","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"512M","WP Memory Limit":"256M","UploadMax":"128M","PostMax":"128M","TimeLimit":"30","MaxInputVars":"1000","MBString":true,"libxml":true}},"plugins":{"active_plugins":{"sitepress-multilingual-cms\/sitepress.php":{"Plugin Slug":"sitepress-multilingual-cms","Name":"WPML Multilingual CMS","PluginURI":"https:\/\/wpml.org\/","Version":"4.2.6","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"sitepress-multilingual-cms","DomainPath":"","Network":false,"Title":"WPML Multilingual CMS","AuthorName":"OnTheGoSystems"},"revslider\/revslider.php":{"Plugin Slug":"","Name":"Slider Revolution","PluginURI":"https:\/\/revolution.themepunch.com\/","Version":"5.4.8.3","Author":"ThemePunch","AuthorURI":"https:\/\/themepunch.com","TextDomain":"revslider","DomainPath":"","Network":false,"Title":"Slider Revolution","AuthorName":"ThemePunch"},"td-cloud-library\/td-cloud-library.php":{"Plugin Slug":"","Name":"tagDiv Cloud Library","PluginURI":"http:\/\/tagdiv.com","Version":"1.2 | built on 25.04.2019 9:32","Author":"tagDiv","AuthorURI":"http:\/\/tagdiv.com","TextDomain":"td-cloud-library","DomainPath":"","Network":false,"Title":"tagDiv Cloud Library","AuthorName":"tagDiv"},"td-composer\/td-composer.php":{"Plugin Slug":"","Name":"tagDiv Composer","PluginURI":"http:\/\/tagdiv.com","Version":"2.4 | built on 25.04.2019 9:32","Author":"tagDiv","AuthorURI":"http:\/\/tagdiv.com","TextDomain":"td-composer","DomainPath":"","Network":false,"Title":"tagDiv Composer","AuthorName":"tagDiv"},"td-social-counter\/td-social-counter.php":{"Plugin Slug":"","Name":"tagDiv Social Counter","PluginURI":"http:\/\/tagdiv.com","Version":"4.5 | built on 25.04.2019 9:32","Author":"tagDiv","AuthorURI":"https:\/\/tagdiv.com","TextDomain":"td-social-counter","DomainPath":"","Network":false,"Title":"tagDiv Social Counter","AuthorName":"tagDiv"},"wordpress-importer\/wordpress-importer.php":{"Plugin Slug":"","Name":"WordPress Importer","PluginURI":"https:\/\/wordpress.org\/plugins\/wordpress-importer\/","Version":"0.6.4","Author":"wordpressdotorg","AuthorURI":"https:\/\/wordpress.org\/","TextDomain":"wordpress-importer","DomainPath":"","Network":false,"Title":"WordPress Importer","AuthorName":"wordpressdotorg"},"wpml-string-translation\/plugin.php":{"Plugin Slug":"wpml-string-translation","Name":"WPML String Translation","PluginURI":"https:\/\/wpml.org\/","Version":"2.10.4","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"wpml-string-translation","DomainPath":"","Network":false,"Title":"WPML String Translation","AuthorName":"OnTheGoSystems"},"wpml-translation-management\/plugin.php":{"Plugin Slug":"wpml-translation-management","Name":"WPML Translation Management","PluginURI":"https:\/\/wpml.org\/","Version":"2.8.5","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"wpml-translation-management","DomainPath":"","Network":false,"Title":"WPML Translation Management","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"Newspaper","ThemeURI":false,"Author":"tagDiv","AuthorURI":"http:\/\/themeforest.net\/user\/tagDiv\/portfolio","Template":"","Version":"9.7.2","TextDomain":"newspaper","DomainPath":"","ParentName":""},"extra-debug":{"WMPL":{"hide_upgrade_notice":"4.2.6","icl_capabilities_verified":true,"active_languages":["en","zh-hans","ms"],"interview_translators":1,"existing_content_language_verified":1,"language_negotiation_type":3,"theme_localization_type":3,"icl_lso_link_empty":0,"sync_page_ordering":1,"sync_page_parent":1,"sync_page_template":1,"sync_ping_status":1,"sync_comment_status":1,"sync_sticky_flag":1,"sync_password":1,"sync_private_flag":1,"sync_post_format":1,"sync_delete":0,"sync_delete_tax":0,"sync_post_taxonomies":1,"sync_post_date":0,"sync_taxonomy_parents":0,"translation_pickup_method":0,"notify_complete":1,"translated_document_status":1,"remote_management":0,"auto_adjust_ids":1,"alert_delay":0,"promote_wpml":0,"automatic_redirect":0,"remember_language":24,"icl_lang_sel_copy_parameters":"","translated_document_page_url":"auto-generate","sync_comments_on_duplicates ":0,"seo":{"head_langs":1,"canonicalization_duplicates":1,"head_langs_priority":1},"posts_slug_translation":{"on":1,"string_name_migrated":true},"urls":{"directory_for_default_language":0,"show_on_root":"","root_html_file_path":"","root_page":0,"hide_language_switchers":1},"xdomain_data":1,"custom_posts_sync_option":{"post":1,"page":1,"attachment":1},"taxonomies_sync_option":{"category":1,"post_tag":1,"translation_priority":1},"tm_block_retranslating_terms":1,"admin_default_language":"_default_","taxonomy_names_checked":true,"ajx_health_checked":true,"default_categories":{"en":"1","zh-hans":28,"ms":29},"default_language":"en","setup_wizard_step":5,"translation-management":{"custom_fields_translation":{"title":2,"description":2,"keywords":2,"_edit_last":0,"_edit_lock":0,"_wp_page_template":0,"_wp_attachment_metadata":0,"original_post_id":0,"_wpml_original_post_id":0,"_wp_old_slug":0,"_icl_translator_note":0,"_alp_processed":0,"_pingme":0,"_encloseme":0,"_icl_lang_duplicate_of":0,"_thumbnail_id":0,"_wp_attached_file":0,"_wp_attachment_image_alt":2},"custom_fields_readonly_config":["title","description","keywords","_edit_last","_edit_lock","_wp_page_template","_wp_attachment_metadata","original_post_id","_wpml_original_post_id","_wp_old_slug","_icl_translator_note","_alp_processed","_pingme","_encloseme","_icl_lang_duplicate_of","_thumbnail_id","_wp_attached_file","_wp_attachment_image_alt"],"custom_fields_translation_custom":[],"custom_fields_translation_custom_readonly":[],"doc_translation_method":"ATE","__custom_types_readonly_config_prev":[],"custom_types_readonly_config":[],"__custom_fields_readonly_config_prev":["title","description","keywords","_edit_last","_edit_lock","_wp_page_template","_wp_attachment_metadata","original_post_id","_wpml_original_post_id","_wp_old_slug","_icl_translator_note","_alp_processed","_pingme","_encloseme","_icl_lang_duplicate_of","_thumbnail_id","_wp_attached_file","_wp_attachment_image_alt"],"__custom_term_fields_readonly_config_prev":[],"custom_term_fields_readonly_config":[],"taxonomies_readonly_config":{"translation_priority":1},"custom-types_readonly_config":{"attachment":1},"post_translation_editor_native":false,"post_translation_editor_native_for_post_type":[]},"custom-types_sync_option":{"attachment":1},"language_selector_initialized":1,"languages_order":["en","ms","zh-hans"],"dont_show_help_admin_notice":true,"setup_complete":1,"site_key":"NypMtsWzUg","xliff_newlines":2,"tm_xliff_version":"12","site_does_not_use_icl":true,"st":{"WPML_ST_Upgrade_Migrate_Originals_has_run":true,"WPML_ST_Upgrade_Db_Cache_Command_2.4.2_1_has_run":true,"WPML_ST_Upgrade_Display_Strings_Scan_Notices_has_run":true,"WPML_ST_Upgrade_MO_Scanning_3_has_run":true,"WPML_ST_Upgrade_DB_String_Name_Index_2_has_run":true,"WPML_ST_Upgrade_DB_Longtext_String_Value_has_run":true,"strings_per_page":10,"icl_st_auto_reg":"disable","strings_language":"en","translated-users":[],"db_ok_for_gettext_context":true,"sw":[],"plugin_localization_domains":{"wpml-translation-management\/plugin.php":{"wpml-translation-management":899},"wpml-string-translation\/plugin.php":{"wpml-string-translation":0}}},"translation_service":false,"WPML_Translate_Link_Target_Global_State":true},"installer":{"version":"1.9.4","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","products":"http:\/\/d2salfytceyqoe.cloudfront.net\/wpml33-products.json","subscription":{"key":"NypMtsWzUg","data":{"subscription_type":6719,"expires":"2020-05-01","status":"1"},"registered_by":1,"site_url":"http:\/\/efatimes.com"}},"toolset":{"api-url":"https:\/\/api.toolset.com\/","products":"http:\/\/d7j863fr5jhrr.cloudfront.net\/toolset33-products.json","subscription":""}},"instances":{"\/home\/efatim5\/public_html\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/home\/efatim5\/public_html\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php","version":"1.9.4","args":{"plugins_install_tab":1,"site_key_nags":[{"repository_id":"wpml","product_name":"WPML","condition_cb":[{"locale_utils":{},"footer_preview":false,"icl_translations_cache":null,"icl_language_name_cache":{"name":"language_name","cache_to_option":true,"cache_needs_saving":false},"icl_term_taxonomy_cache":null,"wpdb":{"show_errors":false,"suppress_errors":false,"last_error":"","num_queries":82,"num_rows":0,"rows_affected":0,"insert_id":3078,"last_query":"SELECT option_value FROM efa_options WHERE option_name = \u0027auto_core_update_failed\u0027 LIMIT 1","last_result":[],"queries":null,"prefix":"efa_","base_prefix":"efa_","ready":true,"blogid":0,"siteid":0,"tables":["posts","comments","links","options","postmeta","terms","term_taxonomy","term_relationships","termmeta","commentmeta"],"old_tables":["categories","post2cat","link2cat"],"global_tables":["users","usermeta"],"ms_global_tables":["blogs","blogmeta","signups","site","sitemeta","sitecategories","registration_log","blog_versions"],"comments":"efa_comments","commentmeta":"efa_commentmeta","links":"efa_links","options":"efa_options","postmeta":"efa_postmeta","posts":"efa_posts","terms":"efa_terms","term_relationships":"efa_term_relationships","term_taxonomy":"efa_term_taxonomy","termmeta":"efa_termmeta","usermeta":"efa_usermeta","users":"efa_users","blogs":null,"blogmeta":null,"blog_versions":null,"registration_log":null,"signups":null,"site":null,"sitecategories":null,"sitemeta":null,"field_types":{"post_author":"%d","post_parent":"%d","menu_order":"%d","term_id":"%d","term_group":"%d","term_taxonomy_id":"%d","parent":"%d","count":"%d","object_id":"%d","term_order":"%d","ID":"%d","comment_ID":"%d","comment_post_ID":"%d","comment_parent":"%d","user_id":"%d","link_id":"%d","link_owner":"%d","link_rating":"%d","option_id":"%d","blog_id":"%d","meta_id":"%d","post_id":"%d","user_status":"%d","umeta_id":"%d","comment_karma":"%d","comment_count":"%d","active":"%d","cat_id":"%d","deleted":"%d","lang_id":"%d","mature":"%d","public":"%d","site_id":"%d","spam":"%d"},"charset":"utf8mb4","collate":"utf8mb4_unicode_ci","func_call":"$db-\u003Equery(\u0022SELECT option_value FROM efa_options WHERE option_name = \u0027auto_core_update_failed\u0027 LIMIT 1\u0022)","is_mysql":true,"categories":"efa_categories","post2cat":"efa_post2cat","link2cat":"efa_link2cat"}},"setup"]}]},"delegated":true}}}}}

May 5, 2019 at 2:17 pm #3743001

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

It seems your these strings are coming from tagDiv Composer/ Visual Composer. Could you please try below steps and let me know how it goes?
- Edit the translation and finish it as it is (mark it as 100% Translated).
- Make a small change in the original page, for example, a space in your title.
- Edit the translation again.

Does it work this time? If still issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

Thank you

May 5, 2019 at 3:55 pm #3743373

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

I have fixed this issue by following below steps:

- Added below code in WPML >> Settings >> Custom XML Configuration section:

<wpml-config>
    <shortcodes>
        <shortcode>
            <tag>td_block_1</tag>
            <attributes>
                <attribute>custom_title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>td_block_2</tag>
            <attributes>
                <attribute>custom_title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>td_block_social_counter</tag>
            <attributes>
                <attribute>custom_title</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>td_block_15</tag>
            <attributes>
                <attribute>custom_title</attribute>
            </attributes>
        </shortcode>
    </shortcodes>
</wpml-config>

- Then made a small change in the original page, for example, a space in title.
- Edit the translation again

And now string is showing correct translation in each language as you can see in the attached screenshot.

Thank you

May 5, 2019 at 11:53 pm #3744079

kee-huiS-2

My issue is resolved now. Thank you!