V
V
VANY2015-12-13 19:43:36
WordPress
VANY, 2015-12-13 19:43:36

How to output text from WP language pack?

Actually.
Is there
<a href title="Перейти на сайт"></a>
a correct way to write a title for this link so that when the language changes, the phrase from the language pack of this language is automatically pulled up?
There are a couple of lines in the ru_RU.po file
#: wp-includes/admin-bar.php:294 wp-includes/admin-bar.php:478
#: wp-includes/deprecated.php:2846
msgid "Visit Site"
msgstr " Go to site"
But I can't figure out how to link to them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2015-12-13
@vanyproduction

<a href title="<?php _e("Visit Site");?>"></a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question