Page 1 of 1

language menu with flags and text

Posted: Thu Dec 11, 2008 6:32 pm
by Andiministrator
I have to build a template with a language menu, which has to show the flags and text at the same time. Therefore I added a parameter to the "lang"-Tag and did some changes to the file "function.lang.php". The file and my config_lang.php are attached (remove the ending ".txt").

Otherwise thanks for the great work on CMSms MLE. I use this version now for two projects.

Re: language menu with flags and text

Posted: Thu Dec 11, 2008 6:48 pm
by alby
Andiministrator wrote: I have to build a template with a language menu, which has to show the flags and text at the same time. Therefore I added a parameter to the "lang"-Tag and did some changes to the file "function.lang.php". The file and my config_lang.php are attached (remove the ending ".txt").

Otherwise thanks for the great work on CMSms MLE. I use this version now for two projects.
I don't understand very well this case, I see that you have:
FLAG-EN Please select your language! | FLAG-DE Bitte wählen Sie Ihre Sprache! | FLAG-NL Kies Uw taal! ......

I see better an ajaxy text rotation (with all languages) type: [lang text rotation] FLAG-EN | FLAG-DE | FLAG-NL .......
but this is a my idea ....

Alby

Re: language menu with flags and text

Posted: Thu Dec 11, 2008 6:56 pm
by Andiministrator
Sure, this would make even more sense. My case is a customer requirement, the design was already there (see attachment).

Re: language menu with flags and text

Posted: Mon Mar 02, 2009 2:14 pm
by kotlik
alby: pls, can You explain me the method you describes? I am a newbie to CMSMS - I have installed CMSMS MLE and now I need to show flags with their text equivalent at the same time.

Re: language menu with flags and text

Posted: Wed Mar 04, 2009 7:37 am
by mobipk
alby wrote:
Andiministrator wrote: I have to build a template with a language menu, which has to show the flags and text at the same time. Therefore I added a parameter to the "lang"-Tag and did some changes to the file "function.lang.php". The file and my config_lang.php are attached (remove the ending ".txt").

Otherwise thanks for the great work on CMSms MLE. I use this version now for two projects.
I don't understand very well this case, I see that you have:
FLAG-EN Please select your language! | FLAG-DE Bitte wählen Sie Ihre Sprache! | FLAG-NL Kies Uw taal! ......

I see better an ajaxy text rotation (with all languages) type: [lang text rotation] FLAG-EN | FLAG-DE | FLAG-NL .......
but this is a my idea ....

Alby
alby: pls, can You explain me the method you describes? I am a newbie to CMSMS - I have installed CMSMS MLE and now I need to show flags with their text equivalent at the same time. ????????????????????

Help me i have to setup english and greek language with my mle cmsms

Re: language menu with flags and text

Posted: Fri Mar 06, 2009 5:33 pm
by alby
kotlik wrote: alby: pls, can You explain me the method you describes? I am a newbie to CMSMS - I have installed CMSMS MLE and now I need to show flags with their text equivalent at the same time.
- in plugins/ folder, edit function.lang.php

- search this: $link = ($text)?$mle['text']:$mle['flag']; (3 statements)

- change in (for: [FLAG IMAGE] Text of language): $link = ($text)?$mle['flag'].' '.$mle['text']:$mle['flag'];

- active with {lang text=true spacer="|"}

Alby