how can I show text instead of flags to switch language

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
slooodge
Forum Members
Forum Members
Posts: 13
Joined: Mon Aug 27, 2007 7:17 pm

how can I show text instead of flags to switch language

Post by slooodge »

Hi,
first of all thanks for this great MLE - it works very well!!!

Is it possible to use a textlink (like English, German, etc.) instead of images to change the language in the frontend?
I could of course simply delete the images and use the alt text but there is probably a nicer way???

THANKS; Hannes 
slooodge
Forum Members
Forum Members
Posts: 13
Joined: Mon Aug 27, 2007 7:17 pm

how can I show text instead of flags to switch language

Post by slooodge »

Oooops, sorry I just found a thread that is dealing with exactly this topic...

Unfortunately the method described (defining text in config_lang.php) doesn't work. But when I replace the

      'flag'=>'',
  'flag'=>'E',

it shows a normal textlink.

Hannes
alby

Re: how can I show text instead of flags to switch language

Post by alby »

slooodge wrote: Oooops, sorry I just found a thread that is dealing with exactly this topic...

Unfortunately the method described (defining text in config_lang.php) doesn't work. But when I replace the

      'flag'=>'',
  'flag'=>'E',

it shows a normal textlink.
I have split your posts for clean howto topic.
Yes, with 'flag'=>'E', display this text but it's bad  (you have this in admin also ::) )

Defining 'text' in config_lang.php (view config_lang.php.alby.label) and in lang tag use text param: {lang text=true}

Alby
alby

Re: how can I show text instead of flags to switch language

Post by alby »

slooodge wrote: Hi Alby,
thanks for the quick response.
I have changed it to the correct way and it works fine!

One last problem...
Is it possible to get rid of the space between the textlinks. I have tried everything possible with css but the space remains.

THANKS for all your work!

Best, Hannes
;D Stop jump  ;D

Read my answer this

Alby
Locked

Return to “[locked] CMSMS MLE fork”