Hi! is WordPerss Plugin header info also needs to be put on translation file?

I have submitted a product (WordPress Plugin) on themeforest/codecanyon , and got notification from reviewer to improve few things.
one of them was ’ All theme text strings are to be translatable and properly escaped.’

so my question is : All plugin custom text will be translated by __() function with text domain.
is the plugin header needs to be put on the language folders .pot file?

Example Plugin Header:


  • Plugin Name: Example
  • Plugin URI: https://example.com
  • Description: example description.
  • Version: 1.0
  • Author: example
  • Author URI: https://example.com
  • Text Domain: my-domain
  • Domain Path: /languages
  • Requires at least: 5.6
  • Requires PHP: 7.0

when i try to do translation with plugin (loco translate) it also includes those text from plugin header (name, description,author)

those needs to be included in the translation file?

Thank you!

No. those are plugin authorization and plugin info. No need to translate.

This is the main things and you have to maintain it for all string/text in your plugin used for frontend and backend (wp-admin).


1 Like

Understood! Thank you!