Jump to content

Fields translation for custom module


be_tnt

Recommended Posts

Hello!

 

For one of my custom module, I would like to be able to translate my form fields (for ex) using the fields.php.

 

My custom fields do not appear in the BO translation section for fields.

 

Checking the code, it looks like the admin translations controller looks only in root classes folder (and its subfolder):

 

  case 'fields':
   $directories['php'] = $this->listFiles(_PS_CLASS_DIR_, array(), 'php');
   break;

 

Is there a reason to not include "classes" folder from module?

 

Or maybe there is another way to use in module to make sure the module fields are in fields.php?

 

Any suggestion would be more than welcome!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...