CodeIgniter Forums
Include anchors on $lang['key'] text - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Include anchors on $lang['key'] text (/showthread.php?tid=49624)



Include anchors on $lang['key'] text - El Forum - 02-27-2012

[eluser]JuanG[/eluser]
Hi, I just added language localization to my web and everything is working as expected.

There's just one thing I haven't been able to figure out.

Before adding internationalization to my web I had the following string:

Code:
"...is called <strong>&lt;?php echo anchor('www.cnn.com', 'CNN'); ?&gt;;</strong>.  It's a news..."

Now it won't work when included into:

Code:
$lang['home_dilemma_intro'] = "...is called <strong>&lt;?php echo anchor('www.cnn.com', 'CNN'); ?&gt;;</strong>.  It's a news...";

I looked at some examples where you can use variables with "%s" but this case is a bit different.

Any ideas?

Thanks in advanced,


Include anchors on $lang['key'] text - El Forum - 02-27-2012

[eluser]ludo31[/eluser]
anchor(uri segments, text, attributes)
may be in attributes