A
A
Alexander2015-06-04 19:24:16
CMS
Alexander, 2015-06-04 19:24:16

How to make static text multilingual in WordPress?

There is a static text that is not displayed on the site through the admin panel, how to make it multilingual?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Perin, 2015-06-04
@kentuck1213

If polylang - then here are the functions https://polylang.wordpress.com/documentation/docum...
We look at pll__ and pll_e

W
WP Panda, 2015-06-04
@wppanda5

<?php 

$locale = get_locale();
if($locale == 'ru_RU') {
 echo "Русский";
} elseif ($locale == 'en_US') {
 echo "English";
} elseif  ($locale == 'uk_UA') {
echo "солов`їна мова";
} else {
echo "ûÉÒÏËÁÑ ÜÌÅË";
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question