MeRuud Posted November 20, 2011 Share Posted November 20, 2011 Hi all, I am working on a module, and I seem to be stuck. The module allows users to type in certain values (text) into a submit box, this will then be displayed on the website. I am trying to make it multi-language compatible, and thus I am trying to create the function that the user can select the language and type in a different value for that language. The CMS-pages, Loyalty module, and GifCard module already do this. (It shows a flag behind the field so the user can select the language). I am trying to implement it myself but I have no success so far. This is what I have: '; foreach ($this->_languages as $language) echo ' <td><input type="text" name="our_FIRST_WORDS'.$language['id_lang'].'" value="'.Tools::getValue('our_FIRST_WORDS', Configuration::get($this->name.'_FIRST_WORDS', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'" /> </td>'; $this->displayFlags($this->_languages, $this->_defaultFormLanguage, $divLangName, 'meta_title'); echo ' If I use this code (I got if from the other modules / pages) it shows a small square but it doesn't load the countries flag, then if you click on the flag is says "Select Language" but there are no other languages to select. What am I doing wrong? Thanks in advanced, Ruud Link to comment Share on other sites More sharing options...
MeRuud Posted November 20, 2011 Author Share Posted November 20, 2011 To explain myself a bit better you can look at the "Loyalty Module".. I am looking to achieve the following: http://www.freeimagehosting.net/d75a0 (or view attachment) Thanks, Ruud Link to comment Share on other sites More sharing options...
MeRuud Posted November 21, 2011 Author Share Posted November 21, 2011 Please.. Link to comment Share on other sites More sharing options...
Bryan Lee Posted August 8, 2012 Share Posted August 8, 2012 May be no body take care this forum, bcs the question form 20 November 2011 to now have no any respontion from their staff. 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