Jump to content

Translatable strings in if/else statements?


Roych
 Share

Recommended Posts

Hello,

Im having some problem translating some words in if/else statement. 

my code:

	<?php if ($single->fajli->url){
		echo "
        <span <span class='big'>>Velikost: <?= $out = __('Size:'); ?></span><br>
		<span>{$single->fajli->filesizeStr}</span>";
		}
		else{
		echo "<span class='big'><?= $out = __('link:'); ?></span>";
		}
	?>

but expl.: <?= $out = __('Size:'); ?> is not working. It wont show up in frontend nor in my backend, what am I doing wrong?

My php is not that good ... I also looked all over the forum but no luck.

Thank you

R

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...