Juanu Posted December 14, 2010 Share Posted December 14, 2010 Hi Everyone!I'm making a new module, in which the user will enter some information which should be different on each language.So, i need to make my text fields work with multilanguage support just like the product name fields, that have the flag on the right side, and you can chose which language you are editing. Can any of you tell me how to implement this on a custom module?Thank you!Juanu Link to comment Share on other sites More sharing options...
Juanu Posted December 15, 2010 Author Share Posted December 15, 2010 Anyone?... Link to comment Share on other sites More sharing options...
razaro Posted December 15, 2010 Share Posted December 15, 2010 You can see example in editorial module (Home editor) global $cookie; /* 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'; and then later $this->_html .= $this->displayFlags($languages, $defaultLanguage, $divLangName, 'title', true); Link to comment Share on other sites More sharing options...
Juanu Posted December 15, 2010 Author Share Posted December 15, 2010 Thank you very much Razaro.I've necer saw this! 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