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 Multi Language Plugin issue

Development and Programming

Pete Eveleigh's avatar
Pete Eveleigh
31 posts
15 years ago
Pete Eveleigh's avatar Pete Eveleigh

Using EE 1.6.9 and version 1.1.0 of LG Multi Language

I’m using (and loving) the LG Multi language extension and plugin but I’m seeing
some really odd behaviour in just one place on my site.

Using the following tag

{exp:lg_ml:translate key="basket_subtotal", default="Subtotal"}

in 2 places on the same page.

In the second place instead of my translated text I’m seeing

“M100o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr”

However, if I remove the first instance of the tag it works fine.

Also, if I remove the default=”Subtotal” from either tag, then they
both work fine.

By adding a space at the end of the second tag, so the tags look like this…

{exp:lg_ml:translate key="basket_subtotal", default="Subtotal"}

{exp:lg_ml:translate key="basket_subtotal", default="Subtotal" }

…it works again which leads me to believe this is a tag caching issue.

Is this a bug within EE?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
15 years ago
Leevi Graham's avatar Leevi Graham

I just noticed you have a “,” in your tags. Probably bets if you remove those as well.

{exp:lg_ml:translate key="basket_subtotal" default="Subtotal" }
       
Pete Eveleigh's avatar
Pete Eveleigh
31 posts
15 years ago
Pete Eveleigh's avatar Pete Eveleigh

Hi Leevi,

I knew there was a reason I put the commas in the tag. Just came across this in the docs. In section 5.2 for the {exp:lg_ml:translate} tag.

{exp:lg_ml:translate key [, default]}

Which I mistakenly read as it needing a comma. It seems to work with or without it though.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
15 years ago
Leevi Graham's avatar Leevi Graham

Good point. I was trying the PHP documentation style. As you may know php requires that arguments (params) are spaced with commas. I’ll drop the commas to avoid any confusion in the future.

       

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.