Jump to content

Allowed module names


Recommended Posts

I develop few minor modules and want to release them under my company name. I was planning to use common prefix for all my modules, like a "mysoft_" (e.g. "mysoft_orders", "mysoft_shipments", "mysoft_customers").

  1. Similar concept is used by PrestaShop modules that have "ps_" prefix (e.g. "ps_banner", "ps_mainmenu")
  2. Manual's Folder structure uses "<name_of_the_module>" and "<module_name>" that suggests that underscores are OK

I first noticed a problem when reading Translation domain documentation. It says that "Nameofthemodule" part in the "Modules.Nameofthemodule.Specificpart" convention allows only [0-9] and [a-Z] characters.

So far I solved that by using

$this->trans('Hello', [], 'Modules.Mysoft_orders.Admin')

(and it works).

What's the real answer though? Can I use "mysoft_orders" module name and "Modules.Mysoft_orders.Admin"?

Or do I have to rename (to less elegant for me) "mysoftorders", "mysoftshipments", "mysoftcustomers"?

Edited by Daniel M (see edit history)
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...