Jump to content

Translatable strings inside echo" "?


Roych
 Share

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

Link to comment
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
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...