Welcome Guest, Not a member yet? Register   Sign In
language versus html markup?
#7

I think we both agree that we do not want to see any HTML markup in the language string files supported by CodeIgniter.

If you look at the example I gave in my original post and think about it, I think you'll see what I mean.
Code:
<p><b>Welcome to SiteX</b><.p>
<p>Dear <?php echo $username; ?>,</p>
<p>We are proud to welcome you to our awesome new website blah blah blah blah blah amazing features blah blah blah.</p>
<p>If you ever want to change your preferences please visit <a href="<?php echo $preference_url; ?>">The Preferences Control Panel</a>.</p>

To use the built in CI language functionality without any HTML tags in your strings means that translating this view (which is all in English) to Spanish is a pain in the ass. Look at my second example in the original post to see what I mean.
Reply


Messages In This Thread
language versus html markup? - by sneakyimp - 10-14-2016, 12:42 PM
RE: language versus html markup? - by InsiteFX - 10-14-2016, 01:18 PM
RE: language versus html markup? - by sneakyimp - 10-14-2016, 01:29 PM
RE: language versus html markup? - by Ivo Miranda - 10-14-2016, 03:05 PM
RE: language versus html markup? - by sneakyimp - 10-14-2016, 04:41 PM
RE: language versus html markup? - by Ivo Miranda - 10-14-2016, 04:57 PM
RE: language versus html markup? - by sneakyimp - 10-14-2016, 06:14 PM
RE: language versus html markup? - by Ivo Miranda - 10-15-2016, 03:50 AM
RE: language versus html markup? - by PaulD - 10-15-2016, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB