g3rtrud Posted July 31, 2013 Share Posted July 31, 2013 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. blocknotice.php Link to comment Share on other sites More sharing options...
vekia Posted August 1, 2013 Share Posted August 1, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now