Translate issue

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #4886
    RaghavendraRaghavendra
    Moderator

    Will make the above changes to your site in a day or two and will message you once done. Thanks

    #4900
    Haochuanluhaochuanlu
    Member
    This reply has been marked as private.
    #4962
    Haochuanluhaochuanlu
    Member

    hi, Is there any update for tralslate ready and the childtheme with theme option tralslate?

    #4963
    RaghavendraRaghavendra
    Moderator

    I 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

    #5012
    RaghavendraRaghavendra
    Moderator

    Hope 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.

    #5036
    Haochuanluhaochuanlu
    Member

    hi, 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.

    #5071
    RaghavendraRaghavendra
    Moderator

    Pls 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.

Viewing 7 posts - 16 through 22 (of 22 total)
  • The forum ‘Agile Theme Support’ is closed to new topics and replies.