Image
Image

Universalist

الوصف

Universalist lets you write page titles, headings, text, and lists in English and Spanish—side by side—and automatically shows visitors the version that matches their browser language. Stay tuned—more languages are on the way!

Source Code

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

لقطات الشاشة

  • Image
    Page title translation.
  • Image
    Title translation.
  • Image
    Text translation.
  • Image
    List translation.

المكوّنات

تقدّم هذه الإضافة 4 مكوّنات.

  • Universalist Page Title Bilingual page title
  • Universalist Heading Bilingual heading
  • Universalist List Bilingual list
  • Universalist Text Bilingual text

الأسئلة المتكررّة

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.

سجل التغييرات

0.1.0

  • Release

0.1.1

  • Language detection bug fixed

0.1.2

  • Title translation bug fixed

1.0.0

  • Fixed style conflict bugs