Support Forums for LiveMesh Themes & Plugins › Forums › Agile Theme Support › Translate issue
- This topic has 21 replies, 3 voices, and was last updated 10 years, 1 month ago by Raghavendra.
-
AuthorPosts
-
February 27, 2014 at 12:51 pm #4886RaghavendraModerator
Will make the above changes to your site in a day or two and will message you once done. Thanks
February 28, 2014 at 8:56 am #4900haochuanluMemberThis reply has been marked as private.March 3, 2014 at 6:48 am #4962haochuanluMemberhi, Is there any update for tralslate ready and the childtheme with theme option tralslate?
March 3, 2014 at 8:18 am #4963RaghavendraModeratorI am releasing an update to be submitted in next few hours which will help you move further on this. Will get back to you. Thanks
March 5, 2014 at 6:59 am #5012RaghavendraModeratorHope you have the latest 1.6 update applied. If you have done so, you can create a new method named mo_custom_theme_options() in the agile child theme functions.php as shown below to override the strings defined in the mo_custom_theme_options() method of the parent theme framework/extensions/theme-options.php file –
function mo_custom_theme_options() { /* Replicate the method from the file framework/extensions/theme-options.php file and then start translating the English strings */ }
You can do something similar to override the functions to translate lengthy descriptions in the file framework/presentation/metabox-manager.php file. The labels in this file are translatable from the po/mo file since they use __() function.
March 6, 2014 at 5:47 am #5036haochuanluMemberhi, I have sloved the translate problem of theme option. But for the metabox translate, I use the similar method with theme option translate, for example, I add the following code to child theme functions.php
function mo_build_team_profile_meta_boxes() { $team_meta_box = array( 'id' => 'mo_team_profile_options', 'title' => 'Team Profile Details', 'desc' => '', 'pages' => array('team'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'id' => 'mo_position', 'label' => __('ddddddddPosition', 'mo_theme'), 'desc' => '', 'std' => '', 'type' => 'text', 'desc' => 'Enter the position of the team member.', ), array( 'id' => 'mo_email', 'label' => __('Email', 'mo_theme'), 'desc' => '', 'std' => '', 'type' => 'text', 'desc' => 'Provide email for the team member.' ), array( 'id' => 'mo_twitter', 'label' => __('Twitter', 'mo_theme'), 'desc' => 'URL of the Twitter page of the team member.', 'std' => '', 'type' => 'text', 'class' => '' ), array( 'id' => 'mo_linkedin', 'label' => __('LinkedIn', 'mo_theme'), 'desc' => 'URL of the LinkedIn profile of the team member.', 'std' => '', 'type' => 'text', 'class' => '' ), array( 'id' => 'mo_facebook', 'label' => __('Facebook', 'mo_theme'), 'desc' => 'URL of the Facebook page of the team member.', 'std' => '', 'type' => 'text', 'class' => '' ), array( 'id' => 'mo_dribbble', 'label' => __('Dribbble', 'mo_theme'), 'desc' => 'URL of the Dribbble profile of the team member.', 'std' => '', 'type' => 'text', 'class' => '' ), array( 'id' => 'mo_googleplus', 'label' => __('Google Plus', 'mo_theme'), 'desc' => 'URL of the Google Plus page of the team member.', 'std' => '', 'type' => 'text', 'class' => '' ), array( 'id' => 'mo_instagram', 'label' => __('Instagram', 'mo_theme'), 'desc' => 'URL of the Instagram feed for the team member.', 'std' => '', 'type' => 'text', 'class' => '' ) ) ); ot_register_meta_box($team_meta_box); }
But I get a error when I visit my website, the error message is “Cannot redeclare mo_build_team_profile_meta_boxes()”.
So, I need your help.
March 7, 2014 at 9:47 am #5071RaghavendraModeratorPls change the file framework/presentation/metabox-manager.php file at line number 487 to the string mo_build_team_profile_meta_boxes from the current one. It was a typo which will be fixed in the upcoming update. Thanks for bringing this to my attention.
-
AuthorPosts
- The forum ‘Agile Theme Support’ is closed to new topics and replies.