0

I'm trying to translate a link in footer on my views .
the code is :

<?php
$link = l(t('Click to view all the writing categories'), 'somewhere', array('attributes' => array('class' => array('read-latest'))));
print $link;
?>

The problem is after tranlate it from admin/config/regional/translate .
the output is <div> no link and no <a> tag .
Any idea ?

  • 2
    Make a var_dump of $link. Is there any error in watchdog? Did you try to just print the translated string? Did it work? – Paul Jul 14 '14 at 14:46
  • @Paul how can i print the translated string ? THX anyway – user23811 Jul 14 '14 at 15:48
  • Instead of print $link; try print t('YOUR UNTRANSLATED TEXT'); first. Does this return the translated text? What's the result? – Paul Jul 15 '14 at 10:36
0

by this module String Overrides you can translate strings .
That's it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy