Universalist

Описание

Universalist lets you pair any primary language with any secondary language and write your page titles, headings, text, and lists in both. It automatically detects a visitor’s browser language, but you can also force the switch to the secondary language whenever needed. Once your two languages are selected, you can set dedicated content for each—giving every visitor a seamless, localized experience.

Source Code

You can find the full source on GitHub:
https://github.com/distantjet/universalist

Скриншоты

  • Page title translation.
  • Title translation.
  • Text translation.
  • List translation.
  • Language switching links automatically generated for each available locale.

Блоки

Этот плагин предоставляет 5 блоков.

  • Universalist List Bilingual list
  • Universalist Text Bilingual text
  • Universalist Heading Bilingual heading
  • Universalist Page Title Bilingual page title
  • Universalist Settings Set initial settings

Часто задаваемые вопросы

Is there an example of how to programmatically select a language?

Yes. You can programmatically select a language by setting the plugin’s language cookie.
For example, the following links set the dj_universalist_lang_cookie to a specific language and reload the page so the change takes effect:
html
<a href="#" onclick="document.cookie='dj_universalist_lang_cookie=en;path=/;max-age=2592000';location.reload();return false;">English</a>
<a href="#" onclick="document.cookie='dj_universalist_lang_cookie=es;path=/;max-age=2592000';location.reload();return false;">Español</a>

The cookie persists for 30 days (max-age=2592000), so the user’s language choice is remembered across visits.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«Universalist» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Universalist» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.0

  • Release