Jump to content

Use language preliminaries in the module


Recommended Posts

Hi,

I am newbie to the prestashop. I am just creating a module from scratch in Prestashop 1.5.4.1 . When I was going through some forums and help files I got this link.

In this line number 116 you can see that there have been used some Languages preliminaries. So can someone kindly tell me what's the use of it? and why someone will use it in the module. Any help and suggestions will be really appareciable. Thanks

 

The langue preliminaries is like this in this link code

 

 

/*Languages preliminaries*/

   $defaultLanguage = intval(Configuration::get('PS_LANG_DEFAULT'));
   $languages = Language::getLanguages();
   $iso = Language::getIsoById(intval($cookie->id_lang));
   $divLangName = 'title¤subheading¤cpara¤logo_subheading';

Link to comment
Share on other sites

×
×
  • Create New...