Jump to content

[SOLVED] select css file based on current language


prithvi007

Recommended Posts

Hi all,

I am trying to use 2 css files in a single template.

But at a single time one css file will be active based on what language the user has selected.

Like

{if $lang_iso == en}

<link href="en.css" rel="stylesheet" type="text/css" media="{$media}" />

{else}

<link href="fr.css" rel="stylesheet" type="text/css" media="{$media}" />

{/if}


Can you please tell me if this is the proper way in selecting a css file based on language selection.

Please suggest,

Thanks,
Raj

Link to comment
Share on other sites

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