3

我有一个 WordPress 项目,用于多语言、多国网站。

我想要一个像这样的结构:

  • 域名.com
  • domain.com/es
  • domain.com/de
  • domain.com/fr


  • 域名.es

  • domain.es/en


  • 域名.fr

  • domain.fr/en


  • 域名.de

  • domain.de/en

我想知道是否有人有任何有用的文章、提示或见解。这个想法是 .com 站点是“父”站点。默认情况下,其他卫星站点将使用其母语,但可能有其他可用语言。理想情况下,每个单独的卫星站点都可以有一些余地来拥有与父站点不同的样式/内容。

我还希望父站点使用规范化,以便“卫星”(特定于国家/地区的顶级域)站点具有优先权。

我想我最想知道的是:

  • 域映射和与 WMPL 的兼容性

谢谢

4

2 回答 2

3

I use "Polylang" in all my projects and it works perfect for me. Polylang does 2 things:

1) Creates siblings for post and pages, connected through ID, so you may write a post in english and then a "spanish sibling" with different contents but connected to the other, so when you do the language switch it displays the desired languahe.

2) Automatically creates a sub route in your WordPress URL (like yourdomain.com/en and yourdomain.com/es) so it matches and changes the desired language interface. You may even use functions on your templates to switch some contents by language on the same template file. You may add and define as many languages as you want.

Important: this is not a plugin for "auto translate" contents, its more like an option to create multilingual sites.

You may find Polylang here: Download Polylang from WordPress Plugins

If you're interested on using Polylang on your templates, here you could find a solution for calling different contents according to the language selected by the user: Multiple headers by language using Polylang

I hope this work for you.

Greetings!

于 2012-03-27T23:48:32.050 回答
0

我想喜欢 WPML,因为我购买了它,但它对我来说从来都不是很好,而且我总是最终使用 Polylang。

更新我最近将 WPML 用于项目,最新版本对我来说非常好用。Polylang 仍然很棒,我最近对 ​​WPML 的体验甚至比 Polylang 还要好。

于 2013-04-10T16:21:16.553 回答