Jump to content

Recommended Posts

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

  • 8 months later...

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