P
P
Pavel2020-04-21 17:25:23
WordPress
Pavel, 2020-04-21 17:25:23

How to set default language for wordpress plugin?

I'm making a multilingual plugin for Wordpress. I put all the texts in Lang-files and everything works in English and Russian, but if you change the interface language, say, to Chinese (and I don’t have a translation for it), then not an English translation appears, but just variables. How to set the "default" language in such a case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Druzhaev, 2020-04-21
@igramnet

They did something wrong.
If in php files in the translation function, for example __(), English text, then when changing the language and not finding localization, WordPress will display them in English.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question