language menu with flags and text

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
Andiministrator

language menu with flags and text

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

[The extension txt has been deactivated and can no longer be displayed.]

[The extension txt has been deactivated and can no longer be displayed.]

alby

Re: language menu with flags and text

Post 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
Andiministrator

Re: language menu with flags and text

Post by Andiministrator »

Sure, this would make even more sense. My case is a customer requirement, the design was already there (see attachment).
Attachments
index.jpg
kotlik

Re: language menu with flags and text

Post 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.
mobipk
New Member
New Member
Posts: 5
Joined: Tue Mar 03, 2009 11:36 am

Re: language menu with flags and text

Post 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
alby

Re: language menu with flags and text

Post 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
Locked

Return to “[locked] CMSMS MLE fork”