Jump to content
Roych

Translatable strings inside echo" "?

Recommended Posts

Hello

this was probably asked a million times, but somehow couldn't find anything.

I need some help with translating some text inside of echo, I have expl.

elseif ($today >= $start AND $today <= $end) echo "
    <span class='editor-label' style='margin: -7px 0 0 -7px;background-color:#db152e;'><span style='font-size: 10px;'><?= html_entity_decode(__('UNTIL')); ?> $end</span></span>
";

I tried all sorts of things but it is not showing on the fronted.

Thank you

R

Share this post


Link to post
Share on other sites
elseif ($today >= $start AND $today <= $end) echo "
 <span class='editor-label' style='margin: -7px 0 0 -7px;background-color:#db152e;'><span style='font-size: 10px;'>" . html_entity_decode(__('UNTIL')) . $end . "</span></span>
";

You've got PHP shorttags inside an echo which is breaking things.

  • Like 2

Share this post


Link to post
Share on other sites

Will try to remember this one, thank you very much I'ts working great now 😉

  • Like 1

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...