Developer's Guide

Now that we have a translation, we can click on the French flag in the
front-office (provided the language has indeed been installed), and get the
expected result: the module's strings are now in French.
They are also translated in French when the back-office is in French.
The translated strings can only be taken into account by the PrestaShop
tool, the PHP and TPL files have to be located at the root of the
module's folder.
Creating the module's back-office tab, and its class
In this section you will learn how to give your module its own tab or sub-
tab, in a matter of minutes.
Follow these steps:
1. Add a new table to your PrestaShop database, named ps_test. Give
it two fields:
o id_test (INT 11)
o test (VARCHAR 32)
2. Create a blank file named Test.php in PrestaShop's /classes folder.
3. Add the following lines to that file:
Test.php
<?php
class Test extends ObjectModel
{
/** @var string Name */
public $test;
protected $fieldsRequired = array( 'test' );
protected $fieldsSize = array( 'test' => 64 );