-
Author
-
August 27, 2014 at 08:54 #26764ksoshninParticipant
Hello,
I installed WPML and scanned the theme for strings (which it found). However there is no string found for theme options output, such as the contact form title “CONTACT US”. This theme supports WPML, so why can’t I translate these fundamental strings?
Is there another way to translate these strings?
Let me know please.
Best regards,
KirilAugust 27, 2014 at 09:02 #26765ksoshninParticipantBy the way, the theme and all plugins are up-to-date.
August 27, 2014 at 09:59 #26769ksoshninParticipantUpdate:
I tried inserting this code into my child theme’s functions.php, but it didn’t work.
COPY CODEremove_action('kleo_after_footer', 'kleo_show_contact_form'); add_action('kleo_after_footer', 'child_show_contact_form'); function child_show_contact_form() { $title = sq_option('contact_form_title',''); $content= sq_option('contact_form_text',''); $translated_title = __($title, 'kleo_framework'); $translated_content = __($content, 'kleo_framework'); echo do_shortcode('[kleo_contact_form title="'.$translated_title.'"]'.$translated_content.'[/kleo_contact_form]'); }
August 29, 2014 at 07:02 #27082ksoshninParticipantDo I need to modify the core theme files myself so the theme becomes truly fully wpml compatible?
September 5, 2014 at 14:22 #27702CatalinModeratorplease send me a screenshot with the area of your site you are referring to.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 9, 2014 at 17:53 #28165ksoshninParticipantThis concerns ALL admin theme options output.
An example would be the contact form output that is configured via the admin theme options: please see attached screenshot (in red). How do I translate this?
Attachments:
You must be logged in to view attached files.September 9, 2014 at 17:56 #28167ksoshninParticipantNOTE: I use WPML to support 2 languages, so I need to translate these strings for 2 languages. WPML does not detect these strings as they were not internationalized in the code, so they are only outputted in 1 language (in the language that they were written in the admin theme options). This is a critical issue as all theme options behave this way.
September 11, 2014 at 12:50 #28335CatalinModeratorplease send me admin credentials to your website to take a look. reply as private for security reasons.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 12, 2014 at 01:33 #28521AbeKeymasterThose should show up in WPML string translation since we have set the theme to notify WPML about them. Try rescanning the theme
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.