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?
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.