最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - How to translate WP Blog (search, category etc.)?

programmeradmin3浏览0评论

We are running a site with WordPress and WooCommerce. We have used WPML to have the option of adding multiple languages.

Now we want to get rid of WPML :)

We have deleted it and set the WP language to "formal German". Everything looks good (plugins will be translated via loco translate).

But I cannot manage to translate our default WP blog. There are still buttons, search forms etc. that are not translatable (or at least I did not find were to look).

Do you have an idea?

We are running a site with WordPress and WooCommerce. We have used WPML to have the option of adding multiple languages.

Now we want to get rid of WPML :)

We have deleted it and set the WP language to "formal German". Everything looks good (plugins will be translated via loco translate).

But I cannot manage to translate our default WP blog. There are still buttons, search forms etc. that are not translatable (or at least I did not find were to look).

Do you have an idea?

Share Improve this question edited Jul 10, 2019 at 18:10 Nicolai Grossherr 18.9k8 gold badges64 silver badges109 bronze badges asked Jul 10, 2019 at 7:38 EleEle 1135 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

If you have bought a theme you should have support for other languages. See the chapter Internationalization in the theme developer handbook for more information, or e.g. more specific on translation functions like __() the Code Reference.

If you independently developed a theme, you probably forgot about this element. If not, check if your theme not have strings in theme without __(), if it is true, you should add all strings to functions like this – see above linked resource for an overview.

Furthermore, the Theme Handbook has an informative chapter on how to localize, with information about logic behind it and tools to use, you might find interesting.

发布评论

评论列表(0)

  1. 暂无评论