Jump to content

Back office forms translation


Recommended Posts

Hi, I created simple module by this guide: http://doc.prestashop.com/display/PS15/Creating+a+PrestaShop+module ...Everything works fine, I just dont know how to translate text which you write in form in back office. I would like to create something like "switching languages by flag" which you can see for example while adding a new product. I attached a php file, but its just copied code from prestashop doc. Thanks for your help.


Link to comment
Share on other sites

in this case you have to do foreach loop on Language::getLanguages(true) function

with this funciton you will be able to create INPUT elements for each language (with own id based on $language['id_lang'] and with display:none; style)


right after the foreach loop add function $this->displayFlags();



you can check how the editorial module works, there is a nice examle of code that i described above

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...