Interesting Soft-reject reason.

Hello everyone,

One hour ago I’ve got this rejection reason:

  1. All theme text strings need to be translatable:

This is the code from the array of plugins to be installed using TGMPA.

Can someone clarify one thing: why do I need to make this string translatable? I.e. why do I need to translate Mercedes to other languages? :neutral_face:

Agreed. “Twitter”, “Facebook”, “Linkedin” must be translatable as well I guess :smile:

I can very much see your point but consider this: how would a Hebrew speaker spell “Mercedes”? It would be “מרצדס”. This is true for many other language not using English letters.

But in our situation we don’t need to translate these strings. There is no reason for this. Really. Plugin name, in this case, like a trademark.

same issue , What’s new ?

You should do what reviewer says (if you need to approve your theme) :wink:

and what about abspath function in tgm ?

Could you be more clear?

they sent me this message about abspath function in tgm :

 Theme needs to properly load files. There are several functions available for getting the path:
 - get_template_directory(): Returns the absolute template directory path 
 - get_template_directory_uri(): Returns the template directory URI 
 - get_stylesheet_directory(): Returns the absolute stylesheet directory path
 - get_stylesheet_directory_uri(): Returns the stylesheet directory URI.

And you don’t know which one you need to use?
Tip: - get_template_directory(): Returns the absolute template directory path :wink:

ABSPATH returns the absoloute path of the wordpress installation .
get_template_directory it’s not the right alternatif :confused:

Buddy, if you know more than me, then why you asking your questions? :smirk:

Once again. If you need to install a plugin within your theme using TGMPA, then you should use get_template_directory()


            'name'               => esc_html__( 'My Meta Boxes', 'textdomain' ), // The plugin name.
            'slug'               => 'pretty-awesome-meta-box', // The plugin slug (typically the folder name).
            'source'             => get_template_directory() . '/inc/plugins/', // The plugin source.

i ask you because i want to know if they asked the same things to you too .
and because ABSPATH can’t be replaced with thoses functions in their message .
that’s why .
thanks for your snippet .

No, because I don’t use ABSPATH instead WordPress functions :wink:

OK. Good luck with approval :joy:

ABSPATH is included with tgm in this file :

same issue :

Good luck for you too and thanks again :slight_smile:

Ahh… that’s better. I’ve assumed that you talking about installing plugins. How did you include tgmpa file into your theme?

By adding a require_once call in functions.php referencing the class file.

require_once get_template_directory() ?


require_once get_template_directory() . ‘/tgm/tgm.php’;

Hmm…interesting. Seems like a new reviewer.
Re-submit your theme with note to the reviewer and cross your fingers :grinning: