Using gettext for hyperlinks
-
I’m trying to localise my plugin and I have a hyperlink with this format:
<a href="myurl"> Link Text </a>
I tried replacing the Link Text as follows:
<a href="myurl"> __('Link Text','myplugin') </a>
but this results in an error.
What is the correct approach to localising the link text? Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using gettext for hyperlinks’ is closed to new replies.