How can I use HTML in language variables returned from the CI lamnguage class. To give you an example;
Normally I add tranlsated text link this:
In lang file:
$lang['login'] = 'Login';
In view:
<?= lang('login'); ?>
However some of my translated text needs to include links, for example:
"I agree to the <a href="" title="Terms of Use">terms of use</a>"
How can I translate this, the link might not appear in the same place in the sentence in different languages and my lang file will be translated by non technical staff. So i can’t just dump the link HTML into the lang file.
EDIT: completely agree with your comment @Alex. Here’s another choise
Now you don’t depend on phrase order. For example:
Another example changing order:
PS: I can’t speak basque, so I don’t know if ‘Ados termino’ means ‘Terms of use’. Anyways, I think that you can understand how I’m trying to do.