I am developing a theme but the theme check gives such an error. The files that are given to the error are in the visual composer elements. Thank you very much for your help in giving one of my examples.

Images that can help

Theme Check Problem

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments ”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Testimonials Area has three different
designs.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Select a design for the Promo Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Select a design for the Newsletter
Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Select a animation for the Menu.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Select a animation for the Logo.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Select Design” WARNING: Found a
translation function that is missing a text-domain. Function __, with
the arguments “Price Area has three different designs.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Menu Animation”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Logo Animation”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from five designs for the
Features Bottom Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from fews of designs for the
Features Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from dozens of designs for the
Header Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from dozens of designs for the
Contact Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from different of designs for
the Ask Question Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from different designs for the
Video Area.”

WARNING: Found a translation function that is missing a text-domain.
Function __, with the arguments “Choose from different designs for the
Footer Area.”

My visualcomposer.php file

// Require new custom Element require_once( get_stylesheet_directory() .

‘/framework/vc_elements/vc_header_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_promo_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_video_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_features_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_features_bottom_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_screenshot_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_newsletter_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_testimonials_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_price_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_contact_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_footer_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_ask_question_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_user_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_client_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_download_app_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_feature_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_promo_video_area.php’); require_once(
get_stylesheet_directory() .
‘/framework/vc_elements/vc_presentation_area.php’);
}

?>

As an example vc_testimonials_area.php is here

 __('Testimonials Area', 'text-domain'),
                'base' => 'vc_testimonials',
                'description' => __('Different designs for Testimonials Area', 'text-domain'), 
                'category' => __('Katrino', 'text-domain'),   
                'icon' => 'icon-webnuts',           
                'params' => array(  

                    // Choose The Design
                    array(
                          "type"        => "dropdown",
                          "heading"     => __("Select Design"),
                          "param_name"  => "bgstyle",
                          "admin_label" => true,
                          'group' => 'General',
                          "value"       => array(
                                                  'Light Version'   => 'light_version',
                                                  'Dark Version'   => 'dark_version',
                                                  'Clean Version' => 'clean_version',                                                 

                                                ), //value
                          "std"         => "",
                          "description" => __("Testimonials Area has three different designs.")
                          ),                

                    // Text
                    array(
                        'type' => 'textarea_html',
                        'heading' => __( 'Text Options', 'text-domain' ),
                        'param_name' => 'text',
                        'value' => __( '

Testimonials

Laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse.

', 'text-domain' ), 'description' => __( 'Text settings for the Testimonials Area.', 'text-domain' ), 'admin_label' => false, 'weight' => 0, 'group' => 'Text', ), // Item 1 Avatar array( "type" => "attach_image", "heading" => __("Avatar", "text-domain"), "holder" => "", "class" => "", "param_name" => "item1avatar", "description" => __("Upload a profile picture for item 1.", "text-domain"), "group" => "Item 1" ), // Item 1 Name array( "type" => "textfield", "heading" => __("Name", "text-domain"), "holder" => "", "class" => "", "param_name" => "item1name", "description" => __("Please enter a name for item 1.", "text-domain"), "group" => "Item 1", "value" => "John Smith" ), // Item 1 Position Brand array( "type" => "textfield", "heading" => __("Position - Brand", "text-domain"), "holder" => "", "class" => "", "param_name" => "item1positionbrand", "description" => __("Please enter position - brand for item 1.", "text-domain"), "group" => "Item 1", "value" => "CEO - Pine Group" ), // Item 1 Description array( 'type' => 'textarea', 'heading' => __( 'Description', 'text-domain' ), 'param_name' => 'item1description', 'value' => __( 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'text-domain' ), 'description' => __( 'Please enter a description for item 1.', 'text-domain' ), 'weight' => 0, 'group' => 'Item 1', ), // Item 2 Avatar array( "type" => "attach_image", "heading" => __("Avatar", "text-domain"), "holder" => "", "class" => "", "param_name" => "item2avatar", "description" => __("Upload a profile picture for item 2.", "text-domain"), "group" => "Item 2" ), // Item 2 Name array( "type" => "textfield", "heading" => __("Name", "text-domain"), "holder" => "", "class" => "", "param_name" => "item2name", "description" => __("Please enter a name for item 2.", "text-domain"), "group" => "Item 2", "value" => "John Smith" ), // Item 2 Position Brand array( "type" => "textfield", "heading" => __("Position - Brand", "text-domain"), "holder" => "", "class" => "", "param_name" => "item2positionbrand", "description" => __("Please enter position - brand for item 2.", "text-domain"), "group" => "Item 2", "value" => "CEO - Pine Group" ), // Item 2 Description array( 'type' => 'textarea', 'heading' => __( 'Description', 'text-domain' ), 'param_name' => 'item2description', 'value' => __( 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'text-domain' ), 'description' => __( 'Please enter a description for item 2.', 'text-domain' ), 'weight' => 0, 'group' => 'Item 2', ), // Item 3 Avatar array( "type" => "attach_image", "heading" => __("Avatar", "text-domain"), "holder" => "", "class" => "", "param_name" => "item3avatar", "description" => __("Upload a profile picture for item 3.", "text-domain"), "group" => "Item 3" ), // Item 3 Name array( "type" => "textfield", "heading" => __("Name", "text-domain"), "holder" => "", "class" => "", "param_name" => "item3name", "description" => __("Please enter a name for item 3.", "text-domain"), "group" => "Item 3", "value" => "John Smith" ), // Item 3 Position Brand array( "type" => "textfield", "heading" => __("Position - Brand", "text-domain"), "holder" => "", "class" => "", "param_name" => "item3positionbrand", "description" => __("Please enter position - brand for item 3.", "text-domain"), "group" => "Item 3", "value" => "CEO - Pine Group" ), // Item 3 Description array( 'type' => 'textarea', 'heading' => __( 'Description', 'text-domain' ), 'param_name' => 'item3description', 'value' => __( 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'text-domain' ), 'description' => __( 'Please enter a description for item 3.', 'text-domain' ), 'weight' => 0, 'group' => 'Item 3', ), // Item 4 Avatar array( "type" => "attach_image", "heading" => __("Avatar", "text-domain"), "holder" => "", "class" => "", "param_name" => "item4avatar", "description" => __("Upload a profile picture for item 4.", "text-domain"), "group" => "Item 4" ), // Item 4 Name array( "type" => "textfield", "heading" => __("Name", "text-domain"), "holder" => "", "class" => "", "param_name" => "item4name", "description" => __("Please enter a name for item 4.", "text-domain"), "group" => "Item 4", "value" => "John Smith" ), // Item 4 Position Brand array( "type" => "textfield", "heading" => __("Position - Brand", "text-domain"), "holder" => "", "class" => "", "param_name" => "item4positionbrand", "description" => __("Please enter position - brand for item 4.", "text-domain"), "group" => "Item 4", "value" => "CEO - Pine Group" ), // Item 4 Description array( 'type' => 'textarea', 'heading' => __( 'Description', 'text-domain' ), 'param_name' => 'item4description', 'value' => __( 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'text-domain' ), 'description' => __( 'Please enter a description for item 4.', 'text-domain' ), 'weight' => 0, 'group' => 'Item 4', ), ), ) ); } // Element HTML public function vc_testimonials_html( $atts ) { // Params extraction extract( shortcode_atts( array( 'bgstyle' => '', 'text' => '

Testimonials

Laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse.

', 'item1_avatar' => '', 'item1name' => 'John Smith', 'item1positionbrand' => 'CEO - Pine Group', 'item1description' => 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'item2_avatar' => '', 'item2name' => 'John Smith', 'item2positionbrand' => 'CEO - Pine Group', 'item2description' => 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'item3_avatar' => '', 'item3name' => 'John Smith', 'item3positionbrand' => 'CEO - Pine Group', 'item3description' => 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', 'item4_avatar' => '', 'item4name' => 'John Smith', 'item4positionbrand' => 'CEO - Pine Group', 'item4description' => 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.', ), $atts ) ); // Item 1 Avatar $item1img = shortcode_atts(array('item1avatar' => 'item1avatar',), $atts); $img = wp_get_attachment_image_src($item1img["item1avatar"], "large"); $item1avatar = $img[0]; // Item 2 Avatar $item2img = shortcode_atts(array('item2avatar' => 'item2avatar',), $atts); $img2 = wp_get_attachment_image_src($item2img["item2avatar"], "large"); $item2avatar = $img2[0]; $template_url = get_template_directory_uri(); require_once( get_stylesheet_directory() . '/framework/vc_elements/element_parts/vc_testimonials/light_version.php'); require_once( get_stylesheet_directory() . '/framework/vc_elements/element_parts/vc_testimonials/dark_version.php'); require_once( get_stylesheet_directory() . '/framework/vc_elements/element_parts/vc_testimonials/clean_version.php'); // Fill $html var with data $html = ' '. $lightversion .' '. $darkversion .' '. $cleanversion .' '; return $html; } } // End Element Class // Element Class Init new vcTestimonials(); ?>

Read more here: Theme Check gives such a warning, how can I solve this error?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: