We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Better Meta and Multi Language Site

Development and Programming

bsjosten's avatar
bsjosten
100 posts
16 years ago
bsjosten's avatar bsjosten

Hi,

I’m running a dual-language site (Swedish(default)/English) using Mark Huot’s Simple Translator. Everything work pretty much ok.

I’m also using LG Better Meta, and what I would like to do is automatically change the meta for <title> and <language>. I tried putting this:

<title>
{if simple_language == "English"}
{title_en}
{if:else}
{title}
{/if}
</title>

in the LG Better Meta extension settings, but then the title attribute for English comes out as

<title>{title_en}<title>

It seems this is some sort of processing order problem. It seems the simple_language variable has been set, but {title_en} is not interpreted at all. If I switch languages to the default language (Swedish), {title} is interpreted correctly and everything works.

Any ideas on how to fix it?

Thanks,

/Bo

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.